If
(VirtualProtectEx) (hProcess,lpAddr, 2, PAGE_EXECUTE_READWRITE, (PDWORD)&v (hProcess)&& ReadProcessMemory (hProcess, lpAddr, &buffer, 2, &dwRead))
{
if
(bPatch)
{
if(WORD)buffer == JNZ)
res = WriteProcessMemory (hProcess , lpAddr, &NOPs, 2, &dwWritten);
}
if(WORD)buffer == JNZ)
res = WriteProcessMemory (hProcess , lpAddr, &NOPs, 2, &dwWritten);
}
Else
{
If
((WORD)buffer == NOPs) res = WriteProcessMemory
(hProcess , lpAddr, &JNZ, 2, & dwWritten);
(hProcess , lpAddr, &JNZ, 2, & dwWritten);
}
If
(res)VirtualProtectEx (hProcess , lpAddr, 2, hProcess, &flOldProtect);
}
No comments:
Post a Comment