I have written a simple Lossless compression algorithm in order to learn a little about compressions and how it is work and in order to check my algorithm I open a exe file read it to variable do the mathematical operation on it run the reverse mathematical operation and run it. (I saved the file and try to run it with subprocess.popen
This lead me to think if I have the uncorrupted EXE file in python variable can I run it directly from memory without save it to disk?
for example like this:
import example_run_exe_file_from_variable
a_file = open("example.exe", "rb")
full_file = a_file.read()
a_file.close()
.
.
.
.
example_run_exe_file_from_variable.run(full_file)
Thanks!