Problem with locating and patching address at a dynamically allocated memory
Hello guys, I'm playing with Quake3Demo using an injected DLL. I've found out the address I want to patch for the infinite ammunition hack. The problem is that the asm instruction is located at a dynamically allocated memory inside the quake3.exe process. This region of memory is created only after the user starts a match (by pressing the Fight button). The address of this region may be different in every game execution. When I pass the base address of quake3 for the FindPattern(), the function never locates it for obvious reasons.
My DLL is very simple: in DllMain() it retrieves the baseaddr and its size and then creates a thread where it will try to find the existence of that asm instruction using FindPattern().
What can I do to solve this trouble?
My DLL is very simple: in DllMain() it retrieves the baseaddr and its size and then creates a thread where it will try to find the existence of that asm instruction using FindPattern().
What can I do to solve this trouble?
