My remotekill
My remotekill keep crashing when i turn it on and shot only when i shot it crashs pls help
Code:
void cBase::RemoteKill( bool Kill )
{
if( test3 )
{
DWORD dwOldVProtection;
VirtualProtect( (void*) ADDR_REMOTEKILL1, 5, PAGE_EXECUTE_READWRITE, &dwOldVProtection );
*(BYTE*)ADDR_REMOTEKILL1 = 0xE8;
*(DWORD*)ADDR_REMOTEKILL2 = ( (DWORD)IntersectAndPenetrateSegment ) - ( (DWORD)ADDR_REMOTEKILL2 + 0x4 );
VirtualProtect( (void*) ADDR_REMOTEKILL1, 5, dwOldVProtection, &dwOldVProtection);
VirtualProtect( (void*) ADDR_REMOTEKILL3, 5, PAGE_EXECUTE_READWRITE, &dwOldVProtection );
*(BYTE*)ADDR_REMOTEKILL3 = 0xE8;
*(DWORD*)ADDR_REMOTEKILL4 = ( (DWORD)IntersectAndPenetrateSegment ) - ( (DWORD)ADDR_REMOTEKILL4 + 0x4 );
VirtualProtect( (void*) ADDR_REMOTEKILL3, 5, dwOldVProtection, &dwOldVProtection);
}
else
{
memcpy( (PBYTE)ADDR_REMOTEKILL1, (PBYTE)"\x8B\x51\x64\xFF\xD2", 5 );
memcpy( (PBYTE)ADDR_REMOTEKILL3, (PBYTE)"\x8B\x51\x64\xFF\xD2", 5 );
}
}
