![]() |
|
#2
|
|||
|
|||
|
If the target is a dll then the dll's base addresses are usually loaded on different offsets so you need to calculate the offset of the patch dynamically based on the base address of the target.
HMODULE hTarget = GetModuleHandle(TargetName); uintptr_t patch_VA = (uintptr_t)hTarget + 0x1000 + patch_RVA; or better use pattern search to directly find the patch VA: uintptr_t patch_VA = (uintptr_t)find_pattern(TargetName, pattern); |
| Thread Tools | |
| Display Modes | |
|
|