
Originally Posted by
krellooo
I used that one btw this is my code:
Only thing i didn't do how the tutorial did is that i made antikick.
Antikick works btw no errors no warnings etc
but only i get detected after 5min.
btw this is my code:
//
#include <stdio.h>
#include <windows.h>
//
// Addresses
#define ADR_ANTIKICK 0x004BD49F //WarRock.exe[0x00400000] + 0x000BD49F
#define Playerpointer 0x00CCA6A8 //Found at: 0x0043FE4F ( WarRock.exe[0x00400000] + 0x0003FE4F )
#define Serverpointer 0x00BD3B70 //Found at: 0x004D0689 ( WarRock.exe[0x00400000] + 0x000D0689 )
// End Addresses
/////////////////
DWORD *ingame= (DWORD*)Playerpointer;
DWORD *outgame= (DWORD*)Serverpointer;
////////////////
void spread () // no spread
{
if(GetAsyncKeyState(VK_NUMPAD7) &1)
{
*(float*) ADR_NOSPREAD = 0;
}
}
void AntiKick ()
{
const BYTE KICKON [] = {0xEB, 0x0D};
{
DWORD dwProtect;
VirtualProtect((void*)(ADR_ANTIKICK), 1, PAGE_EXECUTE_READWRITE, &dwProtect);
memcpy((void*)(ADR_ANTIKICK), &KICKON, 1);
VirtualProtect((void*)(ADR_ANTIKICK), 1, dwProtect, NULL);}}
void HackThread()
{
for(;; )
{
if(*ingame)
{
AntiKick();
}
Sleep(200); //prevent for overloading the cpu
}
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0); //create the hackthread
}
return TRUE;
}