I am learning DLL injection basics and different techniques to achieve it, like using CreateProcess
and LoadLibrary
for example, or simply replacing a .dll in folder where the application to inject into resides.
I was able to perform some basic tasks after having loaded the .dll into application's memory space like invoking a MessageBox
on DLLEntry
and some others.
But how can one manipulate with the code of the application itself, eg. calling a certain procedure that is part of the application, or simply modifying a variable?
Most tutorials I have read online discuss only injection process itself, but not the actual manipulations with applications. Or at least I am having trouble finding that information.
So, how to find/extract the memory parts of the application you are interested in and then modify/alter them?