• We just launched and are currently in beta. Join us as we build and grow the community.

Web Application Lab Setup on Windows

omaralatar

Funny Strategy Wizard
O Rep
0
0
0
Rep
0
O Vouches
0
0
0
Vouches
0
Posts
106
Likes
106
Bits
2 MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1 400 XP
Hello friends! Today we are going to show you how you can set up a vulnerable web application server in a Windows system using Xampp. Here we will be configuring the most popular web applications (DVWA, bwapp, SQLI, Mutillidae). So, let’s do that.

Table of Content

Requirement

  • Web application
  • Xampp Server Installation in Windows
  • DVWA
  • bWAPP
  • Sqli
  • Mutillidae

Requirement-Xampp server (Windows-X64)

Web Application

A web application is a computer program that utilizes web browsers and web technology to perform tasks over the Internet. Web apps can be built for a wider use which can be used by anyone; from an enterprise to an entity for a variety of reasons. Frequently used Web applications can include webmail.

Xampp Server Installation

XAMPP stand for Apache + MariaDB + PHP + Perl

XAMPP is a free and open-source cross-platform web server solution stack package developed by Apache Friends, consisting mainly of the Apache HTTP Server, MariaDB database, and interpreters for scripts written in the PHP and Perl programming languages. Since most actual web server deployments use the same components as XAMPP, it makes transitioning from a local test server to a live server possible. (read more from Wikipedia)

Download from here

Once the installation is done, we need to start the service of Mysql and Apache service in Xampp server.

1.jpg


DVWA

DVWA is a web application that is damn sensitive to PHP / MySQL. The main objectives are to provide security professionals with assistance to test their skills and resources in a legal environment, enable web developers to better understand the processes of protecting web applications and assist teachers/students to teach/learn protection in the classroom.

Download from here

Once the dvwa is installed completely then we will navigate to C:/
Xampp/htdocs/dvwa/config.inc.php.dist
to change the username and password for the database.

Open the configuration file to set the Username and Password.

3.jpg


Here, you can notice that the default username is root and password is password which we will modify.

4.jpg


Now here you may notice that we have set the password “blank” for user “root”. Now save these settings and quit.

5.jpg


Rename the file as “config.inc.php” after making above changes and save it.

6.jpg


Now we need to open the DVWA application in our localhost to create the database.

Code:
http://localhost/dvwa/setup.php

Now click on create database and database is created.

7.jpg


Now click on login and you are done with the setup.

8.jpg


For login, we will use the DVWA username which is admin and password which is DVWA password by default.

9.jpg


Bwapp

Now let’s set up a new lab which is BWAPP.

BWAPP is a free, open-source and intentionally unreliable web application, or a web buggy program. It helps security enthusiasts, designers and students discover Web bugs and stop them from doing so. BWAPP plans for positive penetration tests and cyber ethics initiatives.

Download it from here.

Now navigate to “C:/
Xampp/htdoc/bwapp/admin”
folder to change the default username and password for the database.

10.jpg


Now you can see that the default username is root and password is bug which we will modify.

11.jpg


Now here the username is root and password we have set blank. Now save the settings and quit.

12.jpg


Now let’s open “bwapp/install.php” in the localhost and click on “here” to complete the installation.

13.jpg


Now the installation is complete.

14.jpg


When you will login as bee:bug; you will get the portal to test your penetration testing skill

15.jpg


Here you can click on bugs and all bugs will be displayed to you which are there in bwapp web application.

16.jpg


SQLI

SQLi: A facility that provides a robust testing environment for those involved in SQL injection acquisition and enhancement. Let’s start. First, we will download the SQLI lab through GitHub.

Now we will navigate
to C:/htdocs/sqlilabs/sqli-connections
to edit the setup-db.php.

17.jpg


Now here we will set the password “blank” and save the changes and then quit.

18.jpg


Now browse this web application from through this
URL: localhost/sqli
and click on Setup/reset Databases for labs.

19.jpg


Now the sqli lab is ready to use. Now a page will open up in your browser which is an indication that we can access different kinds of Sqli challenges

20.jpg


Now you can see that we have opened lesson 1. So, we have successfully set Sqli labs for practice.

21.jpg


Mutillidae

OWASP Mutillidae is an open-source web application that is intentionally vulnerable and actively aims at web security. It’s a laboratory for those involved in SQL injection acquisition and development, which offers a full test environment. This internet hacking framework is simple to use and is designed for labs, safety lovers, schools, CTFs and vulnerability assessments.

First, we will navigate to “C:/Xampp/htdocs/mutillidae/includes” to edit the “database-config.php” as shown below.

22.jpg


Here we can see that password is set mutillidae which we will replace with blank.

23.jpg


You can view that we have set the password “blank”. Now save the settings and quit.

24.jpg


Now you can see the page where you need to click on opt out tap.

25.jpg


Now we will open this our local browser by the following
URL: localhost/mutillidae
where we will find an option of reset database. Just click on it to reset the database. So, In this way, we can setup our vulnerable web application lab for penetration testing.

26.jpg


Now you will be redirected to a page which will ask you to click ok to proceed. Here you need to click on OK and you are done with the configuration of the Mutillidae lab.

27.jpg


We have successfully set all the web applications in Xampp server in Windows.

Author: Geet Madan is a Certified Ethical Hacker, Researcher and Technical Writer at Hacking Articles on Information Security. Contact here
 

436,452

314,393

314,402

Top