Skip to content

Instantly share code, notes, and snippets.

@pxeger
Created October 28, 2021 08:47
Show Gist options
  • Save pxeger/238407c7e47c6680d68faa38248a08af to your computer and use it in GitHub Desktop.
Save pxeger/238407c7e47c6680d68faa38248a08af to your computer and use it in GitHub Desktop.
absolutely minimal python3.10 bytecode wrapper
#!/usr/bin/env python3.10
import binascii,sys,types
exec(types.CodeType(0,0,0,9999,9999,0,binascii.a2b_hex(open(sys.argv[1],"rb").read().strip()),(),("type",),tuple(map(str,range(9999))),"","",0,b"",(),()),{})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment