Part 1- DVWA SETUP IN XAMPP - KALI LINUX
1, First Download DVWA file from www.dvwa.co.uk2, Unzip the DVWA file using (unzip) command.
3, Copy the extracted folder to xampp's folder.
4, Fire up xampp (start every server)
5, Fire up Browser and open localhost/DVWA-master. You can see different errors over there.
Let's Fix these Errors
Error 1: Unable to connect to database!
1, To fix this, open /opt/lamp/htdocs/DVWA-master/config/config.inc.php file in your favorite text editor.
2, Change the configuration as following
Error 2: Re-captcha
1, First, we need to solve the recaptcha key missing problem. Go to this URL https://www.google.com/recaptcha/admin2, Go to the URL, you’ll see a form like this.
3, Fill form, values don’t matter much.
4, You obtain site key and secret key. Site key = Private key,
secret key = private key. Open the config.ini.php file in your
favourite text editor. Edit the recaptcha public key and private key
fields. Here is what I did.
Error 3: Fixing disabled allow_url_include
2, Locate the allow_url_include line by using search feature of
your text editor.
3, Change Off to On.
Error 4: File Ownership
We need to give www-data user write access totwo directories. We will use chmod for this. The
two directories are:-
- /opt/lampp/htdocs/DVWA-master/hackable/uploads/
- /opt/lampp/htdocs/DVWAmaster/external/phpids/0.6/lib/IDS/tmp/phpids_log.txt
Now we are good to go
1, Click on create database.2, The database is created. Now, Let's Login username=admin and password=password.
PDF VERSION >> http://bit.ly/321IoZw
DONE!!
0 Comments