News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Threaded executable?

Started by Retsim_X, February 07, 2007, 09:00:21 PM

Previous topic - Next topic

Retsim_X

hey ppls... i have been thinking recently about a program that can read the data in an execuaable file and then load it into memory. then using CreateThread tell it to point to the first instruction obtainable in the Optional Header. will this work? it would be a handy app for school since we have a software restriction policy.

i am not sure if the memory it allocates will make the program fault.... also i do not know if it will need to have external seh.
also i dont know if it would be better to read one instruction at a time and inject that into the code (lol BIG project)

thanks guys

Mister X

Vortex

Retsim,

To run an executable in memory, you need to load and initialize all the sections of your executable according MS's PE specification.

Loading and running EXEs and DLLs from memory

http://www.masm32.com/board/index.php?topic=3150.0