Hack gets abnormal memory access
This code (for see ghosts) causes xtrap to detect an abnormal memory access:
Code:
void h4ck()
{
Sleep(200);
DWORD CShell = (DWORD)GetModuleHandleW(L"CShell.dll");
DWORD PlayerInfo = NULL;
while(CShell == NULL)
{
CShell = (DWORD)GetModuleHandleW(L"CShell.dll");
Sleep(100);
}
while(1)
{
CShell = (DWORD)GetModuleHandleW(L"CShell.dll");
PlayerInfo = *(DWORD*)(CShell + 0xC52850);
Sleep(100);
if(PlayerInfo != NULL)
{
*(float*)(PlayerInfo + 0x88) = 300.0f;
*(float*)(PlayerInfo + 0x8C) = 300.0f;
*(float*)(PlayerInfo + 0x90) = 300.0f;
}
}
}
NOTE: That is not all the code. DllMain is not shown.
What is wrong?