-
Notifications
You must be signed in to change notification settings - Fork 8
Deployment
John Torakis edited this page Oct 18, 2018
·
1 revision
Wormnest has been developed in the context of a C2 infrastructure design, so it was made with disposable deployments in mind.
This is why it can be configured by Environment Variables, as they can be sourced to all shells by writing to /etc/environment
in most distributions, hence having a persistent configuration after reboot.
It comes with a sample deploy script, initially developed for my Terraform deployments:
#!/bin/bash
# Generate a big and random Management URI
# Bash-Fu taken from https://unix.stackexchange.com/questions/230673/how-to-generate-a-random-string
export MANAGE_URL_DIR="$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 13 ; echo '')"
echo "$MANAGE_URL_DIR" > $HOME/wormnest_management.key
export REDIRECT_URL="https://google.com"
export DEFAULT_FILENAME="SpotifyFree_premium_crack" # No file extension here if USE_ORIGINAL_EXTENSION is set!
apt update && apt install -y python3 git # Let's assume Debian
git clone https://github.com/operatorequals/wormnest -b <some_tag> --depth 1 # depth 1 for copying just the tagged commit
cd wormnest
pip3 install -r requirements.txt
echo '{
"download_now":{
"path":"metasploit/generated/meter_pinning_443.exe",
"filename":"CrazyTaxi_cracked_singlefile_by_Raz0r_team_2006.exe"
},
}' > basic_routes.json
export DEFAULT_PATHS_FILE="basic_routes.json"
mkdir -p ~/generated_payloads/
export SRV_DIR="$HOME/generated_payloads"
python3 app.py