Quote:
Originally Posted by *M*
K, but is it possible?
|
O, you typed "It it" so you confused me there.
Anyways yes and no.
It will not make it the static that you want. Why? Well because LoadLibrary tries to place the DLL at it's default ImageBase but if that is not free it will relocate it to another region in memory.
So to read the address you will need to get the address to the "static" value and remove the base. Once you do that to use you just add the injected dlls image base.
GetRemoteModuleBaseAddress() will get the base address of a remote module.
personally I would just VirtualAlloc some memory and write the instructions to it like a codecave for that amount of code.