O.P. DLL Injection (ASM and API)
i need to create a hook in another program to a dll i create.
im gonna open the process using the OpenProcess API call.
then free-up some memory using the VirtualAllocEx API.
then write in that memory with the WriteProcessMemory api call.
then get addy of the LoadLibrary using the GetProcAddress api
then create a remote thread in the process using API.
then get rid of the memory in the process.
is this the correct way to Inject dlls or is there an easier way?
thanks in advance.
|