#include <windows.h>
#include <stdio.h>
// ***************** ADRESS ***************** //
#define AD_RHAWKMODE 0x008E41D0
#define MEMUNLAMMO 0xB36720
#define ADR_PLAYERPOINTER 0x00C7D918
#define ADR_SERVERPOINTER 0x00B78290
#define ADR_BASEPOINTER 0x00BB28F0
#define OFS_X 0x00102D4
#define OFS_Y 0x00102DC
#define OFS_Z 0x00102D8
#define OFS_NFD 0x00103A8
#define Gravity_X 0x00C498
#define Gravity_Y 0x00C4A0
#define Gravity_Z 0x00C49C
#define OFS_NORECOIL1 0x001C
#define OFS_NORECOIL2 0x0020
#define OFS_NORECOIL3 0x0024
#define OFS_LEVEL 0x0011A288
#define OFS_DINAR 0x0011A298
#define OFS_ROOMMASTER 0x00FD148
#define OFS_SUPERMASTER 0x00FCD30
#define OFS_PREM 0x0057C
#define OFS_PREMIUM1 0x00580
#define ADR_FASTAMMO 0x00B01E74
#define ADR_FASTREPAIR 0x00B01E78
#define OFS_MAXPLAYERS 0x0FD14C
#define ADR_FASTHEALTH 0x00B01E7C
#define ADR_FASTFLAG 0x00B01E80
#define ADR_NOBOUNDS1 0x00B290E8
#define ADR_NOBOUNDS2 0x00B290EC
#define ADR_NOBOUNDS3 0x00B290F0
#define ADR_SPAWN1 0x00B31CF8
#define ADR_SPAWN2 0x00B31CFC
#define ADR_SPAWN3 0x00B31D00
#define OFS_NOSPREAD 0x00AFE9C8
#define ADR_SPEED 0x0099BAD4
#define ADR_STRUCTSIZE 0x001CE8
#define CQCPRONE 0x00A220B8
#define OFS_1SLOT 0x001021A0
#define OFS_2SLOT 0x001021A1
#define OFS_3SLOT 0x001021A2
#define ADR_IMDRUNK 0x00B2DF00
#define OFS_4SLOT 0x001021A3
#define OFS_5SLOT 0x001021A4
#define OFS_6SLOT 0x001021A5
#define OFS_7SLOT 0x001021A6
#define OFS_8SLOT 0x001021A7
#define OFS_X 0x00102D4
#define OFS_Y 0x00102DC
#define OFS_Z 0x00102D8
#define OFS_NFD 0x00103A8
#define Gravity_X 0x00C498
#define Gravity_Y 0x00C4A0
#define Gravity_Z 0x00C49C
#define OFS_NORECOIL1 0x001C
#define OFS_NORECOIL2 0x0020
#define OFS_NORECOIL3 0x0024
#define OFS_LEVEL 0x0011A288
#define OFS_DINAR 0x0011A298
#define OFS_ROOMMASTER 0x00FD148
#define OFS_SUPERMASTER 0x00FCD30
#define OFS_PREMIUM1 0x00580
#define OFS_PREM 0x0057C
// ************** END ANDRESS ***************** //
DWORD *playerfunction= (DWORD*)ADR_PLAYERPOINTER;
DWORD *serverfunction= (DWORD*)ADR_SERVERPOINTER;
//-------------All Player Hacks------------------//
void PlayerHacks()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
// Fast All
*(float*)ADR_FASTREPAIR = 10.0f;
*(float*)ADR_FASTHEALTH = 5.0f;
*(float*)ADR_FASTFLAG = 10.0f;
*(float*)ADR_FASTAMMO = 5.0f;
// SuperJump
if (GetAsyncKeyState(VK_CONTROL))
*(float*)(dwPlayerPtr+OFS_Z) = 2000.0;
//NoFallDamage
*(float*)(dwPlayerPtr +OFS_NFD) = -500;
}
}
//-------------All Server Hacks------------------//
void ServerHacks()
{
DWORD dwServerPtr= *(DWORD*)ADR_SERVERPOINTER;
*(DWORD*)(dwServerPtr+OFS_SUPERMASTER) = 1; //Super Master
*(DWORD*)(dwServerPtr+OFS_PREM) = 1; // Premium
}
void Slot5()
{
DWORD dwServerPtr= *(DWORD*)ADR_SERVERPOINTER;
*(DWORD*)(dwServerPtr+OFS_5SLOT) = 1; //5 slot
}
// ----------------------------------------
// THREAD principale con loop delle hacks
// ----------------------------------------
void HackThread ()
{
bool fServerHacks_active = false;
for(;; )
{
// Funzioni basate sul PLAYER POINTER
//-------------------------------------------------------
if(*playerfunction)
{
PlayerHacks ();
}
// Funzioni basate sul SERVER POINTER
//-------------------------------------------------------
if (*serverfunction)
{
Slot5();
if (!fServerHacks_active)
{
ServerHacks ();
fServerHacks_active=true;
}
}
Sleep(200); // non occupiamo inutilmente la CPU
}
}
BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res)
{
switch(DWORD_GRUND)
{
case DLL_PROCESS_ATTACH:
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread , 0, 0, 0);
break;
}
return TRUE;
}