Update Vagrantfile

This commit is contained in:
Omar Santos 2019-09-26 22:35:51 -04:00 committed by GitHub
parent ff638bbc27
commit b947137a92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,20 +26,20 @@ Vagrant.configure("2") do |config|
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
# documentation for more information about their specific syntax and use. # documentation for more information about their specific syntax and use.
config.vm.provision "shell", inline: <<-SHELL config.vm.provision "shell", inline: <<-SHELL
apt-get update sudo apt-get update
#installing Docker #installing Docker
apt-get install -y docker.io sudo apt-get install -y docker.io
# setup containers # setup containers
docker run --name webgoat -d --restart unless-stopped -p 6661:8080 -t santosomar/webgoat sudo docker run --name webgoat -d --restart unless-stopped -p 6661:8080 -t santosomar/webgoat
docker run --name juice-shop --restart unless-stopped -d -p 6662:3000 santosomar/juice-shop sudo docker run --name juice-shop --restart unless-stopped -d -p 6662:3000 santosomar/juice-shop
docker run --name dvwa --restart unless-stopped -itd -p 6663:80 santosomar/dvwa sudo docker run --name dvwa --restart unless-stopped -itd -p 6663:80 santosomar/dvwa
docker run --name mutillidae_2 --restart unless-stopped -d -p 6664:80 santosomar/mutillidae_2 sudo docker run --name mutillidae_2 --restart unless-stopped -d -p 6664:80 santosomar/mutillidae_2
docker run --name bwapp2 --restart unless-stopped -d -p 6665:80 santosomar/bwapp sudo docker run --name bwapp2 --restart unless-stopped -d -p 6665:80 santosomar/bwapp
docker run --name dvna --restart unless-stopped -d -p 6666:9090 santosomar/dvna sudo docker run --name dvna --restart unless-stopped -d -p 6666:9090 santosomar/dvna
docker run --name hackazon -d --restart unless-stopped -p 6667:80 santosomar/hackazon sudo docker run --name hackazon -d --restart unless-stopped -p 6667:80 santosomar/hackazon
docker run --name hackme-rtov -d --restart unless-stopped -p 9000:80 santosomar/hackme-rtov sudo docker run --name hackme-rtov -d --restart unless-stopped -p 9000:80 santosomar/hackme-rtov
# for bwapp - go to /install.php then user/pass is bee/bug # for bwapp - go to /install.php then user/pass is bee/bug
# not ready for prod: # not ready for prod:
@ -51,19 +51,19 @@ Vagrant.configure("2") do |config|
gsettings set org.gnome.desktop.background picture-uri "file:///root/Pictures/h4cker_wallpaper.png" gsettings set org.gnome.desktop.background picture-uri "file:///root/Pictures/h4cker_wallpaper.png"
#cloning H4cker github #cloning H4cker github
cd /root sudo cd /root
git clone https://github.com/The-Art-of-Hacking/h4cker.git sudo git clone https://github.com/The-Art-of-Hacking/h4cker.git
#getting test ssl script #getting test ssl script
curl -L https://testssl.sh --output testssl.sh sudo curl -L https://testssl.sh --output testssl.sh
chmod +x testssl.sh sudo chmod +x testssl.sh
#Installing Jupyter Notebooks #Installing Jupyter Notebooks
apt install -y jupyter-notebook sudo apt install -y jupyter-notebook
#Installing radamnsa #Installing radamnsa
cd /root sudo cd /root
git clone https://gitlab.com/akihe/radamsa.git && cd radamsa && make && sudo make install sudo git clone https://gitlab.com/akihe/radamsa.git && cd radamsa && make && sudo make install
clear clear
echo "All set! Have fun! - Ωr" echo "All set! Have fun! - Ωr"