![]() |
#1
|
|||
|
|||
Running program from memory
Is there any way to run a program from memory, like say for example we have an exe stored in a resource and we load the resource into a byte array.. without saving the image to disk, is it possible to run it?
|
#2
|
|||
|
|||
If I remember correctly, on Win32ASM Community board, have a post and many discuss about this method. You can search on this board. Hope you will find the answer.
Regards, TQN |
#3
|
|||
|
|||
Funnily enough I came across a post about this when searching this morning:
hxxp://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=O4dx5Ej%24DHA.2576%40tk2msftngp13.phx.gbl |
#4
|
|||
|
|||
Yes you actually can do that. I remember doing it back in the 1995 days. You basically should download a program called RAMDrive. With that program you can use your computers RAM to store files.
I think there is more than one type of RAMDrive program out these days though. |
#5
|
|||
|
|||
hmm i cant think of anything why it shouldnt work. map into mem, resolve imports etc, jmp entrypoint. actually this wouldnt be much different as writing an loader stub for an pepacker. only problem might be relocation info. since .exe files normally use an std imagebase, reloc infos are stripped, without them you might have an hard time figuring out what actually is an offset and whats code.
an solution to this might be to compile the "loader" app onto nonstandard imagebase so the 0x400000 range is "free" (but then again how to alloc mem on exactly this address), or compile the "target" app with relocation info u can use. Last edited by crc32; 09-18-2004 at 08:29. |
#6
|
|||
|
|||
Quote:
|
#7
|
|||
|
|||
you can try to inject the code data in a app,then call createremotethread
|
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Running DeepSeek R1 locally | chants | General Discussion | 25 | 07-12-2025 20:44 |
How can I detect whether a 'Virtual machine' is currently running? | me0007 | General Discussion | 5 | 06-16-2004 17:44 |
Need to find a pattern in a running file | merlin | General Discussion | 14 | 07-20-2002 06:59 |