How to install Damn Vulnerable Web Application (DVWA) on Windows using XAMPP

 Step1: Download DVWA

https://github.com/digininja/DVWA/archive/master.zip

Step2: Extract the downloaded file: DVWA-master

Step3: Copy the extracted file "DVWA-master" (DVWA-master>DVWA-master) to "C:\xampp\htdocs"

Step4: Rename the file 

"C:\xampp\htdocs\DVWA-master\config\config.inc.php.dist" 

to

 "C:\xampp\htdocs\DVWA-master\config\config.inc.php"


Step 5: Launch XAMPP control panel as an administrator and click on MySQL > Admin : this will open the MySQL admin page 


Step 6: Click on new and create a new database table with the name "dvwa"

Step 7: Create a new user and password: username: 'dvwa'  password: 'p@ssw0rd'

###config from 

 "C:\xampp\htdocs\DVWA-master\config\config.inc.php"

$_DVWA[ 'db_database' ] = getenv('DB_DATABASE') ?: 'dvwa';
$_DVWA[ 'db_user' ]     = getenv('DB_USER') ?: 'dvwa';
$_DVWA[ 'db_password' ] = getenv('DB_PASSWORD') ?: 'p@ssw0rd';


Step 8: Access the DVWA website: http://x.x.x.x/DVWA-master/ or  https://x.x.x.x/DVWA-master/

eg. 

https://dvwa.sumit.com/DVWA-master/


Step 9: Login to the DVWA website using the username/password: admin/password

Step 10: Click on create/Reset Database:


Step 11: You should automatically get redirected to DVWA login dashboard if the setup is successful 

Step 12: Try to login using the username/password: admin/password

Comments

Popular posts from this blog

Configure IPsec site-to-site VPN in Linux Machine

TACACS+ Installation on Linux [CentOS]

Free Radius setup/configuration in Linux [Ubuntu/CentOS]