• Welcome to Valhalla Legends Archive.
 

Run a file from memory?

Started by l2k-Shadow, August 18, 2007, 10:57 PM

Previous topic - Next topic

l2k-Shadow

let's say i have a buffer that holds the contents of an executable... what would be the best way to map that buffer inside memory and run the exe which it holds, without writing it to a file?
Quote from: replaced on November 04, 2006, 11:54 AM
I dunno wat it means, someone tell me whats ix86 and pmac?
Can someone send me a working bot source (with bnls support) to my email?  Then help me copy and paste it to my bot? ;D
Já jsem byl určenej abych tady žil,
Dával si ovar, křen a k tomu pivo pil.
Tam by ses povídaj jak prase v žitě měl,
Já nechci před nikym sednout si na prdel.

Já nejsem z USA, já nejsem z USA, já vážně nejsem z USA... a snad se proto na mě nezloběj.

rabbit

Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.

Camel

Make a function pointer to the entry point and call it?

l2k-Shadow

Quote from: Camel on August 19, 2007, 01:00 AM
Make a function pointer to the entry point and call it?

yeah well that wouldn't work if you use other segments of the file other than the code segment, would it.
Quote from: replaced on November 04, 2006, 11:54 AM
I dunno wat it means, someone tell me whats ix86 and pmac?
Can someone send me a working bot source (with bnls support) to my email?  Then help me copy and paste it to my bot? ;D
Já jsem byl určenej abych tady žil,
Dával si ovar, křen a k tomu pivo pil.
Tam by ses povídaj jak prase v žitě měl,
Já nechci před nikym sednout si na prdel.

Já nejsem z USA, já nejsem z USA, já vážně nejsem z USA... a snad se proto na mě nezloběj.

iago

Quote from: l2k-Shadow on August 19, 2007, 01:24 AM
Quote from: Camel on August 19, 2007, 01:00 AM
Make a function pointer to the entry point and call it?

yeah well that wouldn't work if you use other segments of the file other than the code segment, would it.

Wow, is it really necessary to be an asshole when somebody tries to help?
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


MyndFyre

This might be a related or relevant topic.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.