Exetools  

Go Back   Exetools > General > General Discussion

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-14-2005, 16:25
redbull redbull is offline
Friend
 
Join Date: Mar 2004
Posts: 160
Rept. Given: 17
Rept. Rcvd 5 Times in 4 Posts
Thanks Given: 3
Thanks Rcvd at 6 Times in 6 Posts
redbull Reputation: 5
Allocating memory at a specific location

Hi Guys,

Here is a question and I figure it might be possible to implement cause the windows LOADER seems to do this. (maybe i am just a fool )

I have a code generator which generates a code packet in memory. I want to take that code packet and a corresponding data packet and send it to clients, get them to perform the operations and send the results back (yes its a distributed processing application).

However the problem is I want to carry the data seperate to the code packet so I need to be able to allocate a data block in memory at a specific location (hard coded into the code packet). As opposed to carrying the code and data together and using "virus like" techniques to find out where I am in memroy (eg a call <addr> and a pop ebp pair).

I guess (from what I know about the PE header format) the windows loader uses this technique to put the required EXE code in the correct memory location.

How is this done?

Thanks for your help

REDBull (MOO!)
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Allocating BSTR strings in IE9 r00t General Discussion 4 01-31-2013 12:47
VirtualAlloc fails on specific memory address MarkusO General Discussion 7 01-22-2006 18:11


All times are GMT +8. The time now is 16:26.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )