Install DVWA on a Kali VM – VirtualBox
Website for detailed information: www.techbeatz.co.uk
Github rep:
Commands in order;
Step 1: Download Damn Vulnerable Web Application (DVWA) – pulling the Github repo
cd /var/www/html
sudo git clone
sudo mv DVWA dvwa
Step 2: Configure DVWA
chmod -R 777 dvwa/
cd dvwa/config
sudo cp config.inc.php.dist config.inc.php
sudo nano config.inc.php
Step 3: Install MySQL on Kali Linux (should be already installed)
sudo apt install default-mysql-server
Step 4: Configure MySQL Database (should be already installed)
sudo service mysql start
systemctl status mysql
sudo mysql -u root -p
create user ‘user’@’127.0.0.1’ identified by ‘pass’;
grant all privileges on dvwa.* to ‘user’@’127.0.0.1’ identified by ‘pass’;
Step 5: Install PHP (should be already installed)
sudo apt install php7.4 -y
Step 6: Configure the Apache Server (should be already installed)
cd /etc/php/7.4/apache2
sudo nano php.ini
sudo service apache2 start
systemctl status apache2
Step 7: Access DVWA on the web browser
or
#kalilinux #dvwa #installDVWA #KaliVirtualMachine
[ad_2]
source