#include <stdio.h>
#include <windows.h>
//Address go Here
#define Playerpointer 0x00CB11C8 //these are current
#define Serverpointer 0x00B39BE0 // as of 8-11-09
#define OFS_X 0x0000023C // on Warrock int
#define OFS_Y 0x00000244 // change them when needed
#define OFS_Z 0x00000240
#define ADR_FAST_HEALTH 0x00AF5404
#define ADR_FAST_AMMO 0x00AF5400
#define ADR_FAST_FLAG 0x00AF5408
#define ADR_FAST_REPAIR 0x00AF540C
#define ADR_SPEED 0x0099ADA8
#define ADR_SPAWN_1 0x00C48320
#define ADR_SPAWN_2 0x00CACF2C
#define ADR_BOUNDS_1 0x00C5DF9C
#define ADR_BOUNDS_2 0x00C5DFA0
#define ADR_SCOPE 0x00AF53F6
#define ADR_Spread 0x00AF5458
HANDLE Warrock;
DWORD *ingame= (DWORD*)Playerpointer;
DWORD *outgame= (DWORD*)Serverpointer;
//Hack Codes Go Here
//Fast All
void Fastall()
{
*(float*) ADR_FAST_HEALTH = 5000000;
*(float*) ADR_FAST_AMMO = 5000000;
*(float*) ADR_FAST_FLAG = 50000;
*(float*) ADR_FAST_REPAIR = 5000000;
}
//Speed
void speed() // insert key, speed on
{
if(GetAsyncKeyState(VK_F1) &1)
{
*(float*) ADR_SPEED = 1500;
}
}
void speedoff() // delete key, speed normal
{
if(GetAsyncKeyState(VK_F2) &1)
{
*(float*) ADR_SPEED = 100;
}
}
//No Spawn Wait
void nowait()
{
*(float*) ADR_SPAWN_1 = 0;
*(float*) ADR_SPAWN_2 = 0;
}
//No Boundries
void nobound()
{
//if (nobound)
{
long t=0;
unsigned long Protection;
VirtualProtect((void*)ADR_BOUNDS_1, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)ADR_BOUNDS_1, &t , sizeof(t));
VirtualProtect((void*)ADR_BOUNDS_1, sizeof(t), Protection, 0);
VirtualProtect((void*)ADR_BOUNDS_2, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)ADR_BOUNDS_2, &t , sizeof(t));
VirtualProtect((void*)ADR_BOUNDS_2, sizeof(t), Protection, 0);
}
}
//Scope
void scope()
{
if(GetAsyncKeyState(VK_F3))
{
int t=1;
unsigned long Protection;
VirtualProtect((void*)ADR_SCOPE, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)ADR_SCOPE, &t , sizeof(t));
VirtualProtect((void*)ADR_SCOPE, sizeof(t), Protection, 0);
}
else
{
int t=0;
unsigned long Protection;
VirtualProtect((void*)ADR_SCOPE, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)ADR_SCOPE, &t , sizeof(t));
VirtualProtect((void*)ADR_SCOPE, sizeof(t), Protection, 0);
}
}
//No Spread
void Spread()
{
*(float*) ADR_Spread = 0;
}
//Any other hacks you decide to add go above here
//Hack are put into the game here
void snip()
{
for(;; )
{
if(*ingame) //check if we are ingame.. prevent crashs
{
Fastall();
speed(); // player hacks go here
speedoff();
scope();
}
if(*outgame)
{
Spread();
nowait(); //server hacks go here
}
Sleep(200); //prevent for overloading the cpu
}
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
MessageBoxA(NULL, "maxhax195", "Credits", MB_OK); // Put your
//name where Your Name Here is but leave the ""
MessageBoxA(NULL, "Sniper8ce's base", "Credits", MB_OK); // Do not
// edit this
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)snip, 0, 0, 0); //create
// the hackthread
}
return TRUE;
}