Installs Damn Vulnerable Web Application to a XAMPP installation (recommended by the DVWA documentation).
To run in a Vagrant Environment, install VirtualBox here and then install Vagrant here. Run the following commands to get started with this cookbook:
git clone https://github.com/rapid7-cookbooks/dvwa
cd dvwa
bundle install
vagrant plugin install bindler
vagrant bindler setup # Only needed once
vagrant plugin bundle
vagrant up xampp # or you can run standalone to install without XAMPP
When finished using the Vagrant instance simply run vagrant destroy -f xampp
.
- apache2
- mysql
- xampp
- Debian (Untested)
- Ubuntu (Tested on 12.04)
- Includes attributes from xampp::default.
node[:dvwa][:dir]
Where to install DVWA, defaults to /opt/lampp/htdocsnode[:dvwa][:flavor]
The type of install to use, defaults to :xampp, alternatively use :apache2node[:dvwa][:url]
From where to install DVWA, defaults to http://downloads.sourceforge.net/project/dvwa/DVWA-1.0.7.zipnode[:dvwa][:version]
What version of DVWA to install, defaults to 1.0.7node[:dvwa][:zip_name]
The name of the archive to install from, DVWA-1.0.7.zip
Installs DVWA on a web server. Select the install method by explicitly calling the following recipes or by setting node[:dvwa][:flavor] to :xampp (default) or :standalone.
Includes the XAMPP recipe and unarchives DVWA inside of /opt/lampp/htdocs.
Downloads packages used by DVWA and includes the apache2 and mysql recipes to run a web server.
- Erran Carey (erran_carey@rapid7.com)