#!/bin/bash # Bootstrap the new VM # # echo "Bootstrapping attacker1" # Switching potential for the package configuration question "Restart services during package upgrades without asking?" echo '* libraries/restart-without-asking boolean true' | sudo debconf-set-selections # Update system apt -y update export DEBIAN_FRONTEND=noninteractive yes '' | apt -y -o DPkg::options::="--force-confdef" -o DPkg::options::="--force-confold" dist-upgrade cd ~ wget https://bootstrap.pypa.io/get-pip.py python3 get-pip.py apt -y install golang sphinx-common ip addr show eth1 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1 > /vagrant/attacker1/ip4.txt # reboot