DVWA


DVWA (Damn Vulnerable Web Application)

Installation Steps

  1. Update System Packages

sudo apt update && sudo apt upgrade -y
  1. Install Required Packages

sudo apt install -y apache2 mariadb-server php php-mysqli php-gd libapache2-mod-php unzip
  1. Configure MySQL/MariaDB

sudo mysql_secure_installation

Follow the prompts to set a root password and secure your installation. 4. Create DVWA Database and User

sudo mysql -u root -p
CREATE DATABASE dvwa;
CREATE USER 'dvwa'@'localhost' IDENTIFIED BY 'p@ssw0rd';
GRANT ALL PRIVILEGES ON dvwa.* TO 'dvwa'@'localhost';
FLUSH PRIVILEGES;
exit
sudo apt install -y apache2 mariadb-server php php-mysqli php-gd libapache2-mod-php unzip
  1. Configure MySQL/MariaDB

  1. Configure MySQL/MariaDB

Follow the prompts to set a root password and secure your installation. 4. Create DVWA Database and User

  1. Download and Install DVWA

  1. Configure DVWA

Update these lines (use the credentials you created earlier): php

  1. Set Permissions

  1. Restart Apache

  1. Access DVWA

Open your web browser and navigate to:

  1. Access DVWA

Open your web browser and navigate to:

  1. On the DVWA login page:

Last updated