BaseAddress nach Injektion rausbekommen

07/04/2012 20:57 theredvex#1
Guten Abend liebe Community,

Ich habe gerade mal ein altes Projekt von mir aufgegriffen und wollte es von vorn beginnen um es kürzer zu coden.
Eine frage, gibt es eine Möglichkeit wenn ich (m)eine Dll in einen Prozess injiziere die BaseAddress des Prozesses herrausfinden?
07/04/2012 21:06 .SkyneT.#2
GetModuleHandle(NULL), meinst du das ?
07/04/2012 21:10 theredvex#3
Jow Danke hat Super geholfen
07/04/2012 22:19 Nightblizard#4
Wichtig sind folgende Sätze aus der msdn:
Quote:
If this parameter is NULL, GetModuleHandle returns a handle to the file used to create the calling process (.exe file).
Quote:
If lpModuleName does not include a path and there is more than one loaded module with the same base name and extension, you cannot predict which module handle will be returned.
Sprich, das muss nicht überall funktionieren.

Mehr Infos:
[Only registered and activated users can see links. Click Here To Register...]