Skip to content

Instantly share code, notes, and snippets.

@zsarge
Last active October 31, 2023 03:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zsarge/d97d4cd097757a32bb4b033088e1f0d4 to your computer and use it in GitHub Desktop.
Save zsarge/d97d4cd097757a32bb4b033088e1f0d4 to your computer and use it in GitHub Desktop.
Install OWASP PyGoat and WebGoat VM from OneDrive
#!/bin/bash
set -e
# contains no hidden info, fyi
YOUR_ONEDRIVE_SHARE_LINK="https://mymailnku-my.sharepoint.com/:u:/g/personal/sargentz1_mymail_nku_edu/EVMxZ0hCDfZMnKpeqHpVpZQB-utsXsOBxYgVWtQuhyLUig?e=hPj1Zq&download=1"
install_path="/tmp/install_pygoat"
mkdir -p "$install_path"
cd "$install_path"
echo "installing Virtual Box & Juice Shop VM"
sudo apt-get update -y
sudo apt-get install virtualbox -y
echo "downloading..."
wget "$YOUR_ONEDRIVE_SHARE_LINK" -O PyGoat.ova
echo "importing..."
vboxmanage import PyGoat.ova
cd "/"
rm -rf "$install_path"
echo "Done!"
date
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment