01-30-2012, 11:43 AM
Suggestion for patching.
Use the function ReadProcessMemory, has same parameters as WriteProcessMemory.
If the client Unpacks correctly extract the byte from the Offset, and verify if it matches with the your data;
byte in;
ReadProcessMemory(PROC_HANDLE, offset, &in, sizeof(byte), null);
if(in == 0x75){
byte x=0xEB;
WriteProcessMemory(PROC_HANDLE, offset, &x, sizeof(byte), null);
Console.WriteLine("Done\n");
}
else{
Console.WriteLine("Wrong version or is Allready patched.\n");
}

