re: Execute a child process that is not on the filesystem but in memory? VIEW POST

FULL DISCUSSION
 

As has been noted - using techniques like this will make your code smell like malware, and probably set off a heap of heuristic alerts, however for learning purposes, Joachim Bauch provides a good tutorial on Windows, and of course SO has things to say:

joachim-bauch.de/tutorials/loading...
stackoverflow.com/questions/305203...

Effectively you are re-implementing the binary loader (PE/COFF or ELF usually) that's built into the kernel.

Note that this becomes waay easier with a runtime like the JVM, which explicitly supports creating new executable objects from memory buffers:
docs.oracle.com/javase/7/docs/api/...

code of conduct - report abuse