Skip to content

Instantly share code, notes, and snippets.

@galiminus
Last active August 29, 2015 14:10
Show Gist options
  • Save galiminus/97afa8e6d0702d2e6fb6 to your computer and use it in GitHub Desktop.
Save galiminus/97afa8e6d0702d2e6fb6 to your computer and use it in GitHub Desktop.
{
"ami": "ami-dvwa",
"commands": [
"sudo yum -y update",
"wget http://downloads.sourceforge.net/project/xampp/XAMPP%20Linux/5.5.19/xampp-linux-x64-5.5.19-0-installer.run -O /tmp/xampp.run",
"chmod 755 /tmp/xampp.run",
"sudo /tmp/xampp.run --mode unattended --disable-components xampp_developer_files",
"sudo /opt/lampp/lampp start",
"sudo ln -s /opt/lampp/lampp /etc/rc3.d/S99lampp",
"sudo ln -s /opt/lampp/lampp /etc/rc3.d/K01lampp",
"wget https://github.com/RandomStorm/DVWA/archive/v1.0.8.zip -O /tmp/dvwa.zip",
"unzip /tmp/dvwa.zip",
"sudo mv DVWA-1.0.8 /opt/lampp/htdocs/dvwa",
"sudo /opt/lampp/bin/mysqladmin -u root password *AWSLabRoot*",
"sudo sed -i \"s/p@ssw0rd/*AWSLabRoot*/g\" /opt/lampp/htdocs/dvwa/config/config.inc.php",
"curl -L -X POST --data \"create_db=Create / Reset Database\" http://127.0.0.1/dvwa/setup.php"
],
"description": "Damn Vulnerable Web App",
"rules": [
[
"tcp",
80,
80,
"0.0.0.0/0"
]
],
"ssh_user": "ec2-user",
"type": "t1.micro",
"first_run": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment