Advertisement
Guest User

How to install DVWA in Kali 2016.1

a guest
Sep 14th, 2016
739
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. Tested 15 September 2016
  2.  
  3. First, download Kali 2016.1 from:
  4. https://www.offensive-security.com/kali-linux-vmware-virtualbox-image-download/
  5.  
  6. Then run the following commands:
  7. apt-get clean
  8. apt-get update
  9. apt-get install apache2 mysql-server php5 php5-mysql php-gd
  10.  
  11. service apache start
  12. service mysql start
  13.  
  14. Then obtain and prepare DVWA:
  15. Download DVWA-1.9.zip from www.dvwa.co.uk
  16. unzip DVWA-1.9.zip
  17.  
  18. cd /var/www/html
  19. cp -R ~/Downloads/DVWA-1.9/* ./
  20.  
  21. nano config/config.inc.php
  22.  
  23. Set blank password at:
  24. $_DVWA[ 'db_password' ] = '';
  25.  
  26. Browse to:
  27. http://localhost/setup.php
  28.  
  29. Click Create / Reset Database.
  30.  
  31. Yes I'm aware that it says:
  32. PHP module php-gd: Missing
  33.  
  34. This is for the CAPTCHA. You don't need this unless you've enabled CAPTCHA, and is trying to break it.
  35.  
  36.  
  37. One item you may want to fix is:
  38. PHP function allow_url_include: Disabled
  39.  
  40. Because you will otherwise not be able to perform most traditional RFI (Remote File Inclusion) attacks.
  41.  
  42. You'll need to edit this file:
  43. /etc/php5/apache2/php.ini
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement