Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

Hello Guys

Welcome To Our Channel "Flawless Programming"

Today I'm gonna tell you


How To Install DVWA in Kali linux 2018.1

You can Download This file From The Description Below.

So Follow These Steps:


First Of All, Update Repositories By Using Command "apt-get update".

1. Download DVWA Using This Command.

"git clone https://github.com/ethicalhack3r/DVWA.git"

Then Move It To This Directory "/var/www/html/".

2. Download Php gd From This Link.

"apt-get install php-gd"

3. Now open terminal and Type These commands.

"cd /var/www/html/DVWA/"
"chmod 777 hackable/uploads/"
"chmod 777 external/phpids/0.6/lib/IDS/tmp/phpids_log.txt"
"chmod 777 config/"

4. Now Goto "/etc/php/7.2/apache2/" and open "php.ini" file.

Replace "allow_url_include = Off" with "allow_url_include = on"

Replace "display_errors = Off" with "display_errors = on"

5. Now Goto "/var/www/html/DVWA/config" And Open "config.inc.php.dist" File.

Change Its Name From "config.inc.php.dist" To "config.inc.php"


Insert These Lines Of Code:
Public Key: "6LdeZUkUAAAAAAY1QOrOiYXdrr-aN8qGNXDB6wJk" (Create Your Own
Key From The Link Below)
Private Key: "6LdeZUkUAAAAANiTzUHGju_hvcivHCfdGoi0YJlF" (Create Your
Own Key From The Link Below)
Link: "https://www.google.com/recaptcha/admin/create"

You Can Change The Username And The Password If You Like.(I Recommend You To
Follow Me.)

6. Open Terminal And Type These commands To Start Apache & Mysql.

"service apache2 start"


"service mysql start"

7. Now Type "mysql -u root -p" Then Type "toor" As Password (Password is
invisible).

Mysql Menu Will Open. Now Type These Commands:html/DVWA/c

"create user dvwa;" (Username Must Match With The Username In Config
File)
"grant all on dvwa.* to dvwa@localhost identified by 'password';"
(Password Must Match With The Password In Config File)
"flush privileges;"
"GRANT ALL ON dvwa.* To 'dvwa'@'%';"
"FLUSH PRIVILEGES;"
"EXIT"

Restart Apache And Mysql Services After It.

8. Now Open This Link In Your Browser "localhost/DVWA".

9. Click On "Create/Reset Database" Button.

Now You Are Ready To Go.

Username is : admin
Passdword is : password

Subscribe Our Channel For More Videos.

Thanks For Watching.

You might also like