echo "[*] Checking Linux OS type" && \ [[ "$OSTYPE" == *"linux"* ]] || exit && \ echo "[*] Downloading Hak5 Cloud C2 Community Edition" && \ wget https://c2.hak5.org/com -q -O c2.zip || exit && \ echo "[*] Extracting archive" && \ unzip -qq c2.zip || exit && \ echo "[*] Checking Public IP address" && \ IP=$(curl -s https://checkip.amazonaws.com) || exit && \ echo "[*] Copy the setup token below and browse to http://$IP:8080" && \ [[ $(uname -m) == 'x86_64' ]] && ./c2_community-linux-64 -hostname $IP-listenip $IP || ./c2_community-linux-32 -hostname $IP-listenip $IP