Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SetupDetour( HMODULE, WINAPI, LoadLibraryA, (LPCSTR dll) )
- {
- if(!strcmp(dll, "hlss.dll"))
- {
- HMOULE ret = call_trampoline(LoadLibraryA, (dll));
- DWORD Base = (DWORD)ret;
- add_log("------- Found a base of %x -------",Base);
- add_log("------- DLL Patch Address is %x -------", Base + 0x0008A68);
- BYTE On[2] = {0x90, 0x90};
- DWORD addy = Base + 0x0008A68;
- VirtualProtect((void*)addy, 2, PAGE_READWRITE, &Prote);
- RtlMoveMemory((void*)addy,(void*)On,2);
- VirtualProtect((void*)addy, 2, Prote, 0);
- add_log("----- Addy Contains: %x ------",addy);
- add_log("------- Patching of hlss ends here... -------")
- }
- return call_trampoline(LoadLibraryA, (dll));
- }
Add Comment
Please, Sign In to add comment