mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-08-26 00:00:09 +02:00
Tweaks to the recipes to avoid repetition of work, and ub1404 dev, * let apt cookbook handle apt-update globally * do not download, configure, make, make install if the package is already installed * add guards for file deletion to first check whether file is present * use docker cookbook for image building and running, to only build if not alrady built and only run if not already running * drop mysql table and recreate each time Also, * bump Docker cookbook to 4.9.3 * bump mysql cookbook to 8.5.1 * add apt cookbook for better apt-update management * bump depends versions and add apt * modify readme with customization instructions * modify all chef runlists to call apt first in the runlist * add a vagrantfile for dev of ub1404
58 lines
1.6 KiB
JSON
58 lines
1.6 KiB
JSON
{
|
|
"builders": [
|
|
{
|
|
"type": "amazon-ebs",
|
|
"region": "us-east-1",
|
|
"source_ami": "ami-86562dee",
|
|
"instance_type": "t2.small",
|
|
"ssh_username": "ubuntu",
|
|
"ami_name": "metasploitable3-ub1404-{{user `box_version`}}"
|
|
}
|
|
],
|
|
"provisioners": [
|
|
{
|
|
"type": "chef-solo",
|
|
"cookbook_paths": [
|
|
"{{template_dir}}/../../../chef/cookbooks"
|
|
],
|
|
"run_list": [
|
|
"apt::default",
|
|
"metasploitable::vm_tools",
|
|
"metasploitable::users",
|
|
"metasploitable::mysql",
|
|
"metasploitable::apache_continuum",
|
|
"metasploitable::apache",
|
|
"metasploitable::php_545",
|
|
"metasploitable::phpmyadmin",
|
|
"metasploitable::proftpd",
|
|
"metasploitable::docker",
|
|
"metasploitable::samba",
|
|
"metasploitable::sinatra",
|
|
"metasploitable::unrealircd",
|
|
"metasploitable::chatbot",
|
|
"metasploitable::payroll_app",
|
|
"metasploitable::readme_app",
|
|
"metasploitable::cups",
|
|
"metasploitable::drupal",
|
|
"metasploitable::knockd",
|
|
"metasploitable::iptables",
|
|
"metasploitable::flags",
|
|
"metasploitable::sshd"
|
|
]
|
|
},
|
|
{
|
|
"type": "shell",
|
|
"execute_command": "echo '{{user `ssh_pass`}}' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'",
|
|
"inline": [
|
|
"apt-get remove chef"
|
|
]
|
|
}
|
|
],
|
|
"variables": {
|
|
"iso_url": "http://old-releases.ubuntu.com/releases/14.04.1/ubuntu-14.04.1-server-amd64.iso",
|
|
"iso_checksum_type": "md5",
|
|
"iso_checksum": "ca2531b8cd79ea5b778ede3a524779b9",
|
|
"box_version": "0.1.18"
|
|
}
|
|
}
|