there might be no (useful) answere to this Questions, but whatever. I want to inject code into an application via DLL code injection. The plan is:
Find the address of the LoadLibrary function in the target process.
Write a string with the name/filepath of the DLL i want to load using WriteProcessMemory() somewhere in the target process address space.
Start a remote thread using CreateRemoteThread() with the address of LoadLibrary() as entry point and a pointer to the string containing the name/filepath of the DLL to be loaded as the Argument for the LoadLibrary() function.
The problem is at no. 2. Where in the target process address space do i store the string (without corrupting something)?
If this question has been asked before, feel free to point me there.
Thanks a lot for any help.