How to run an executable file (.exe
), which will be the program code, from memory without saving to disk?
I have an
.exe
file stored as bytes. It was obtained usingopen('1.exe', 'rb').read()
.I put the byte literal in the Python code of a script:
byteCode = b'\x00\x00\x00\...'
.Now I need to run this executable. But from memory, without saving to disk.