DVWA: Difference between revisions

188 bytes added ,  5 years ago
no edit summary
No edit summary
No edit summary
Line 1:
[[Category:Hacking]]
__TOC__
<br />
 
Source: [https://linuxsecurityblog.com/2016/01/28/install-dvwa-on-ubuntu/ linuxsecurityblog.com], [https://th3phantoms.blogspot.in/2017/04/install-dvwa-on-ubuntu-server-1604.html th3phantoms.blogspot.in]
 
Installation:
 
 
sudo apt update && sudo apt upgrade
 
sudo apt install apache2 mysql-server libapache2-mod-php7.0 libapache2-mod-fastcgi php7.0-fpm php7.0 php-mysql php7.0-mbstring php7.0-gd
 
 
 
 
Edit PHP function:
Line 21 ⟶ 15:
https://github.com/ethicalhack3r/DVWA/archive/master.zip
 
Rename config.inc.php and Edit MySQL password:
sudo mv /var/www/html/dvwa/config/config.inc.php.dist /var/www/html/dvwa/config/config.inc.php
vim /var/www/html/dvwa/config/config.inc.php
find this line $_DVWA[ 'db_password' ] = 'dbpassword';
 
Give the write permission to folder and file:
chmod 777 /var/www/html/dvwa/hackable/uploads/
 
If there are access related issue then only make the directory globally writeable:
chmod -R 777 /var/www/html/dvwa
 
Create DVWA database:
Line 34 ⟶ 31:
exit
 
ScrollingOpen the application & scrolling down and find the button Create / Reset Database
OPen the application
http://10.10.10.1/dvwa/setup.php
 
Restart Apache:
Scrolling down and find the button Create / Reset Database
service apache2 restart
 
OPenAccess the application:
username: admin
http://10.10.10.1/dvwa/
password: password
username: admin
password: password