These instructions assume you have a fresh Ubuntu server available and are logged in as a user with sudo rights. This is the default setup for an EC2 Ubuntu instance.
Log into the server (not as root) and do the following:
# Optionally set the time zone if needed
sudo timedatectl set-timezone Europe/AmsterdamDownload install-scripts.zip from the latest release at:
https://github.com/n-of-one/attack_vector_2/releases
cd ~
curl -LO https://github.com/n-of-one/attack_vector_2/releases/latest/download/install-scripts.zip
unzip install-scripts.zip -d ~/av
cd ~/av
chmod +x install.sh
./install.shThis installs MongoDB, Java, and sets up the scripts. After installation, download and start Attack Vector with:
./upgrade.shOnce installed, start Attack Vector with:
cd ~/av
./run.shTo update to the latest version:
cd ~/av
./upgrade.shsudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
sudo certbot certonly --standalone -d attackvector.nl --register-unsafely-without-email
sudo openssl pkcs12 -export -in /etc/letsencrypt/live/attackvector.nl/fullchain.pem -inkey /etc/letsencrypt/live/attackvector.nl/privkey.pem -out ~/av/keystore.p12 -name tomcat -CAfile /etc/letsencrypt/live/attackvector.nl/chain.pem -caname root