s0urabh (10-19-2009)
For all the nubs who want to learn a simple no menu hack. yes this addies are the new ones, just open a blank .dll file on c++ 2008. Then go to project>add new item> cpp file. on the blank file add this code. now build it and inject it and enjoy. PLEASE GIVE ME CREDIT WHEN U MAKE HACKS FOR PUBLIC IF U COPY N PASTE, AT LEAST THANK ME FOR BEING SO KIND AND RELEASING THIS!!
/*
Project : WARHACK PUB
Author : MATHEW BOSTON
*/
#include <stdio.h>
#include <windows.h>
// Adress List //
#define Playerpointer 0x00C93348
#define Serverpointer 0x00B1BEF8
#define OFS_Z 0x00000128
#define ADR_FAST_HEALTH 0x00AD81D4
#define ADR_FAST_AMMO 0x00AD81D0
#define ADR_FAST_FLAG 0x00AD81D8
#define ADR_FAST_REPAIR 0x00AD81DC
#define ADR_SPEED 0x00980C20
#define ADR_Spread 0x00AD821C
#define ADR_SP15 0x00AD8203
#define ADR_BOUNDS_1 0x00C4011C
#define ADR_BOUNDS_2 0x00C40120
#define ADR_SPAWN_1 0x00C2A5A8
#define ADR_SPAWN_2 0x00C8F0AC
HANDLE Warrock;
//================================================== =======================================//
DWORD *ingame= (DWORD*)Playerpointer;
DWORD *outgame= (DWORD*)Serverpointer;
////////////////
//================================HACKCODES========= ======================================//
void Jump() // superjump if hit control button
{
if(GetAsyncKeyState(VK_LCONTROL) &1)
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_Z) = 500;
}
}
}
void Fastall() //fast all
{
*(float*) ADR_FAST_HEALTH = 5000000;
*(float*) ADR_FAST_AMMO = 5000000;
*(float*) ADR_FAST_FLAG = 50000;
*(float*) ADR_FAST_REPAIR = 5000000;
}
void speed() // if u hit insert key, speed turns on
{
if(GetAsyncKeyState(VK_INSERT) &1)
{
*(float*) ADR_SPEED = 1500;
}
}
void speedoff() // if u hit delete key, speed goes to normal
{
if(GetAsyncKeyState(VK_DELETE) &1)
{
*(float*) ADR_SPEED = 100;
}
}
void Spread() // no spread
{
*(float*) ADR_Spread = 0;
}
void sp() // sp +15
{
*(float*) ADR_SP15 = 50000;
}
void nowait() // no spawn wait time
{
*(float*) ADR_SPAWN_1 = 0;
*(float*) ADR_SPAWN_2 = 0;
}
void nobound() // no boundries
{
*(float*) ADR_BOUNDS_1 = 5000000;
*(float*) ADR_BOUNDS_2 = 5000000;
}
void pawn()
{
for(;; )
{
if(*ingame) //check if we are ingame.. prevent crashs
{
Jump();
Fastall();
speed(); // player hacks go here
speedoff();
}
if(*outgame)
{
Spread();
sp();
nowait(); //server hacks go here
nobound();
}
Sleep(250); //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)pawn, 0, 0, 0); //create the hackthread
}
return TRUE;
}
s0urabh (10-19-2009)
If you are gonna release stuff like this. A. you should put it in the right section ^^ B. you should include screen shots to help new nub coders learn coding the wrong way by copy & paste -.- as this dont teach anything except copy n paste. And this is totally the ZEAS method.
And here are all source codes...
#include <windows.h>
#include <stdio.h>
/// Adress List \\\
#define Playerpointer Outdated
#define Serverpointer Outdated
#define Fast_Ammo Outdated
#define Fast_Health Outdated
#define Fast_Repair Outdated
#define Fast_Flag Outdated
#define No_Spread Outdated
#define No_Water Outdated
#define Speed Outdated
#define Near_Fog Outdated
#define GlassWalls_FarFog Outdated
#define Full_Bright_1 Outdated
#define Full_Bright_2 Outdated
#define Full_Bright_3 Outdated
#define No_Bounds_1 Outdated
#define No_Bounds_2 Outdated
#define ADR_QUICKSPAWN1 Outdated
#define ADR_QUICKSPAWN2 Outdated
#define Stamina_10Porcent Outdated
#define Extra_Ammo_1 Outdated
#define Extra_Ammo_2 Outdated
#define Stamina_OffSet Outdated
#define NoRecoil_1_OffSet Outdated
#define NoRecoil_2_OffSet Outdated
#define NoRecoil_3_OffSet Outdated
#define OFS_X Outdated
#define OFS_Y Outdated
#define OFS_Z Outdated
#define Slot5_OffSet Outdated
#define NFD_Player_OffSet Outdated
#define Premium_OffSet Outdated
#define Super_Master_OffSet Outdated
#define ADR_ANTIKICK Outdated
int Telx = 1;
int Tely = 1;
int Telz = 1;
DWORD *ingame= (DWORD*)Playerpointer;
DWORD *outgame= (DWORD*)Serverpointer;
// Hack Codes \\
void Supermaster ()
{
DWORD dwSrvrPtr = *(DWORD*)Serverpointer;
if(dwSrvrPtr != 0){
*(int*)(dwSrvrPtr+Super_Master_OffSet) = 1;
}
}
void Spawn ()
{
long t=0;
unsigned long Protection;
VirtualProtect((void*)ADR_QUICKSPAWN1, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)ADR_QUICKSPAWN1, &t , sizeof(t));
VirtualProtect((void*)ADR_QUICKSPAWN1, sizeof(t), Protection, 0);
VirtualProtect((void*)ADR_QUICKSPAWN2, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)ADR_QUICKSPAWN2, &t , sizeof(t));
VirtualProtect((void*)ADR_QUICKSPAWN2, sizeof(t), Protection, 0);
}
void Teleport ()
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer; /// Player Pointer Addie
if(dwPlayerPtr != 0)
{
float PositionY = 0.0; float PositionX = 0.0;float PositionZ = 0.0;
PositionX = *(float*)(dwPlayerPtr + OFS_X);
PositionY = *(float*)(dwPlayerPtr + OFS_Y);
PositionZ = *(float*)(dwPlayerPtr + OFS_Z);
if(GetAsyncKeyState(VK_NUMPAD4)&1){
Telx = PositionX;
Tely = PositionY;
Telz = PositionZ;}
if(GetAsyncKeyState(VK_NUMPAD5)&1){
*(float*)(dwPlayerPtr + OFS_X) = Telx;
*(float*)(dwPlayerPtr + OFS_Y) = Tely;
*(float*)(dwPlayerPtr + OFS_Z) = Telz;}
if(GetAsyncKeyState(VK_NUMPAD6)&1){
*(float*)(dwPlayerPtr + OFS_X) += 30;}}}
void FastAll ()
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0)
{
*(float*)Fast_Repair = 10.0f;
*(float*)Fast_Health = 5.0f;
*(float*)Fast_Flag = 10.0f;
*(float*)Fast_Ammo = 5.0f;
}}
void fullbright () //fullbright
{
if(GetAsyncKeyState(VK_NUMPAD9) &1<< 0xF)
{
*(int*)(Full_Bright_1) = 1092779973;
*(int*)(Full_Bright_2) = 1092779973;
*(int*)(Full_Bright_3) = 1092779973;
}
}
void nofog () //no fog
{
*(float*)0x00B0E148 = 1166127104;//far fog address
*(float*)0x00B0E144 = 0; //nearfog addres
}
void speedon1 ()
{
if(GetAsyncKeyState(VK_NUMPAD1) &1<< 0xF)
{
*(float*)(Speed) = 200.0f;
}
}
void speedon2 ()
{
if(GetAsyncKeyState(VK_NUMPAD2) &1<< 0xF)
{
*(float*)(Speed) = 300.0f;
}
}
void speedon3 ()
{
if(GetAsyncKeyState(VK_NUMPAD3) &1<< 0xF)
{
*(float*)(Speed) = 500.0f;
}
}
void speedoff ()
{
if(GetAsyncKeyState(VK_NUMPAD0) &1<< 0xF)
{
*(float*)(Speed) = 100.0f;
}
}
void jump () //super jump
{
if(GetAsyncKeyState(VK_CONTROL) &1)
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_Z) = 1000;
}
}
}
void stamina () //stamina
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+Stamina_OffSet) = 100;
}
}
void norecoil () //norecoil
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+0x00) = 0;
*(float*)(dwPlayerPtr+0x04) = 0;
*(float*)(dwPlayerPtr+0x08) = 0;
}
}
void nfd () //NFD
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+NFD_Player_OffSet) = -20000;
}
}
void nobounds () //nobounds
{
long t=0;
unsigned long Protection;
VirtualProtect((void*)No_Bounds_2, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)No_Bounds_2, &t , sizeof(t));
VirtualProtect((void*)No_Bounds_2, sizeof(t), Protection, 0);
VirtualProtect((void*)No_Bounds_2, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)No_Bounds_2, &t , sizeof(t));
VirtualProtect((void*)No_Bounds_2, sizeof(t), Protection, 0);
}
void nowater () //no water
{
long t=0;
unsigned long Protection;
VirtualProtect((void*)No_Water, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)No_Water, &t , sizeof(t));
VirtualProtect((void*)No_Water, sizeof(t), Protection, 0);
}
void PXItemSP2 ()
{
*(int*)(Stamina_10Porcent) = 1;
}//+ 5% hp
void Dig()
{
if(GetAsyncKeyState(VK_MENU) &1)
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_Z) = -2000;
}
}
}
void ExtraAmmo () //we want extrea clip allways =)
{
*(int*)(Extra_Ammo_1) = 1;
}
void ExtraAmmo2 () //we want extrea clip allways =)
{
*(int*)(Extra_Ammo_2) = 1;
}
void premium () //Gold Premium
{
DWORD dwPlayerPtr = *(DWORD*)Serverpointer;
if(dwPlayerPtr != 0)
{
*(long*)(dwPlayerPtr+Premium_OffSet) = 3, 10; // 1 = bronze 2 = silver 3 = gold
}
}
void spread () //no spread
{
*(float*) No_Spread = 0;
}
void Slots5 ()
{
DWORD dwPlayerPtr = *(DWORD*)Serverpointer;
if(dwPlayerPtr != 0)
{
*(long*)(dwPlayerPtr+Slot5_OffSet) = 1;
}
}
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)
{
jump();
nfd();
premium();
spread();
nowater();
nobounds();
norecoil();
stamina();
speedon1();
speedon2();
speedon3();
speedoff();
nofog();
Dig();
fullbright();
FastAll();
Teleport();
Slots5();
Spawn();
AntiKick();
}
if(*outgame)
{
premium();
ExtraAmmo();
ExtraAmmo2();
Slots5();
PXItemSP2();
Supermaster();
AntiKick();
}
}
Sleep(200); //prevent for overloading the cpu
}
BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res)
{
switch(DWORD_GRUND)
{
case 1:
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread , 0, 0, 0); //create the hackthread
break;
}
return TRUE;
}
Its the ZEAS method... thats who deserves credit. Copy n Paste is LAME though. All credits to ZEAS
Last edited by ghostracerx; 10-18-2009 at 01:04 PM.
<o>
s0urabh (10-19-2009)
yeahh an eaysy and nooby tutorial
nice...ill make a hack when i get home(not copy======> paste!
tdcoolboy and ghost u Deserve Many Thanks but i can giv u only 1 :/
forget that time one week ago i don't think so more
Thanks mate i am still a nub at this game lol xD