Disable Resource Guard in GameServer 1.01.06
Dear all
I've download GameServer 1.01.06 from topic : http://forum.ragezone.com/showthread.php?t=1007717 and i've can connect to Server to play game ^^
I want make some features like : /post , /add command...etc but can't hook DLL because have function protect GameServer
When I hook dll, the statement regarding the impact of offsets on GameServer been omitted...
Ex :
PHP Code:
case DLL_PROCESS_ATTACH:
*(DWORD*)((0x004010D3 + 1)) = (DWORD)&ProtocolCore - 0x004010D8;
MessageBoxA(NULL, "Hooked", "Warning!", MB_OK);
break;
If add // before *(DWORD*)((0x004010D3 + 1)) = (DWORD)&ProtocolCore - 0x004010D8; . The MessageBoxA function will be show.... but remove // , message will be don't show ?
Anyone interested in this, and I can help and discussion..
Sorry my bad English :D
Re: Disable Resource Guard in GameServer 1.01.06
you need to enable Memory writing with VirtualProtect.
DWORD Protect;
if(VirtualProtect(LPVOID(0x401000),sizeofgsinbytes,PAG_EXECUTE_READWRITE,&Protect))
{
//Do all your Code here
}
and sorry for some errors, i writed it without looking to any code =]
[]'s