You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PurpleDome/systems/attacker1/bootstrap.sh

26 lines
661 B
Bash

#!/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