How To Install DVWA IN KALI

Опубликовано: 14 Июнь 2026
на канале: IRB0T
759
7

1)Download DVWA application
http://www.dvwa.co.uk/

2)Create DVWA Project
cd Downloads
unzip DVWA-master.zip -d /var/www/html/
mv /var/www/html/DVWA-master /var/www/html/dvwa
chmod -R 777 /var/www/html/dvwa

3)Setting SQL server
mysql -u root -p
(If you find error
"ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)"
Then type command service mysql restart"
create database test;
create user 'toor'@'localhost' identified by 'toor';
grant all on test.* to 'toor'@'localhost';
flush privileges;
exit

4)Some PHP changes
enter Recaptcha_keys (optional)
move to directory : /var/www/html/dvwa/config/config.inc.php.dist
/var/www/html/dvwa/config/config.inc.php

5)Installation of php7-gd (optional)
apt-get update
apt-get install php7.3-gd

6)Changes in apache2 configuration file
/etc/php/7.3/apache2/php.ini
allow_url_fopen == on
allow_url_include == on

7)Starting Server and Be ready to go
service apache2 start
127.0.0.1/dvwa/setup.php
or
localhost/dvwa/setup.php

8)Enter the Default credentials
“admin / password” and press Enter