Code:
#include <windows.h>
#include <d3d9.h>
#include <d3dx9.h>
#include <process.h>
#include <stdio.h>
#include <process.h>
#include <fstream>
#define Knives (i == 5 || i == 35 || i == 74 || i == 120 || i == 132 || i == 176 || i == 177 || i == 178 || i == 182 || i == 189 || i == 195 || i == 196 || i == 197 || i == 198 || i == 199 || i == 223 || i == 224 || i == 225 || i == 226 || i == 227 || i == 228 || i == 239 || i == 244 || i == 261 || i == 269 || i == 270 || i == 271 || i == 302 || i == 303 || i == 304 || i == 305 || i == 306 || i == 307 || i == 345 || i == 346 || i == 372 || i == 376 || i == 381 || i == 404 || i == 405 || i == 406 || i == 407 || i == 408 || i == 409 || i == 417 || i == 437 || i == 455 || i == 456 || i == 457 || i == 488 || i == 517 || i == 518 || i == 540 || i == 541 || i == 548 || i == 561 || i == 576 || i == 584 || i == 587 || i == 620 || i == 647 || i == 693 || i == 700 || i == 718 || i == 719 || i == 728)
#pragma comment(lib, "d3d9.lib")
#pragma comment(lib, "d3dx9.lib")
DWORD dwI3EXEC;
UCHAR
szFileSys[255],
szVolNameBuff[255];
DWORD
dwMFL,
dwSysFlags,
dwSerial;
/*
#define Admin (1989371821)
#define HWID_1 (-292234291) //Arman
#define HWID_2 (1081128270)
#define HWID_3 (-118162594)
#define HWID_4 (-2064230969)
#define HWID_5 (7079183)
#define HWID_6 (-1911832480)
#define HWID_7 (-933738216)
#define HWID_8 (-1732365554) //Gusnaim
#define HWID_9 (136594201) //Gusnaim
#define HWID_10 (747488143) //Gading ababilgading@gmail.com
#define HWID_11 (276804765) //Zulfikar Rohim
#define HWID_12 (-1263890123) //Akbar
#define HWID_13 (1687383567) //Akbar
#define HWID_14 (-731854610) //Edward
#define HWID_15 (-198608297) //agung
#define HWID_16 (1579622333) //Gicel
#define HWID_17 (-1271384205) //Gicel
#define HWID_18 (552362123) //Hendrik
#define HWID_19 (747488143)*/
float Change = 100;
#define DIPEngine 0x004B62ED //nanti aku ajarin nyari pointer
#define WeaponMgr 0xD962F4 //nanti aku ajarin nyari pointer
DWORD retDIPEngine = ( DIPEngine + 0x8 );
INT wallhack;
INT seeghost;
INT cams;
INT wireframe;
bool Norecoil,knife,wallshot,noreload,onehit,bypass,wpnhack,speed,Nochange;
/*
void CheckValidHardwareID()
{
GetVolumeInformation("C:\\",(LPTSTR)szVolNameBuff,255,&dwSerial, &dwMFL,&dwSysFlags,(LPTSTR)szFileSys,255);
if (dwSerial == HWID_1 || dwSerial == HWID_2 || dwSerial == HWID_3|| dwSerial == HWID_4 || dwSerial == HWID_5 || dwSerial == HWID_6|| dwSerial == HWID_7 || dwSerial == HWID_8 || dwSerial == HWID_9 || dwSerial == HWID_10 || dwSerial == HWID_11 || dwSerial == HWID_12 || dwSerial == HWID_13 || dwSerial == HWID_14 || dwSerial == HWID_15 || dwSerial == HWID_16 || dwSerial == HWID_17 || dwSerial == HWID_18 || dwSerial == HWID_19|| dwSerial == Admin) //Ambil HWID kita di My_HWID
{
MessageBox(0," LOGIN SUKSES!","INDO-CROSSFIRE v1.7",MB_OK | MB_ICONINFORMATION);
}
else
{
MessageBox(0," !LOGIN FAILED!","INDO-CROSSFIRE v1.7",MB_OK | MB_ICONERROR);
MessageBox(0, "Maaf, anda tidak termasuk anggota INDO-CROSSFIRE, untuk mendaftar silahkan kontak Kami\nYM : darmjaya_x@yahoo.com\nHP : 087860680580 (sms only)\nWEB : www.indo-crossfire.********.com","INDO-CROSSFIRE v1.7", MB_OK | MB_ICONINFORMATION);
system("start http://indo-crossfire.********.com/2012/10/premium-cheat.html");
ExitProcess(1);
}
}*/
//------------------------------------------------------------------------------------//
BOOL Asembly (VOID *lpMem,VOID *lpSrc,DWORD len)//
{
DWORD lpflOldProtect, flNewProtect = PAGE_READWRITE;
unsigned char * pDst = (unsigned char *)lpMem,
*pSrc = (unsigned char *)lpSrc;
if (VirtualProtect(lpMem,len,flNewProtect,&lpflOldProtect))
{
while(len-- > 0) *pDst++ = *pSrc++;
return (0);
}
return (1);
}
void Bypass(void)
{
DWORD target;
do
{
target = (DWORD)GetModuleHandleW(L"CShell.dll");
Sleep(30);
}
while (!target);
Asembly((void *)(target + (0x2E91F5-0x2E9401)), (int*)(PBYTE)"\xC3\x00\x00\x00",4);
}
void BUDUH()
{
while(1)
{
if(GetModuleHandleW(L"CShell.dll") && GetModuleHandleW(L"ClientFx.fxd"))
{
Sleep(100);
DWORD CShell = (DWORD)GetModuleHandleW(L"CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell + 0xD962F4); //D0734C
DWORD PlayerLt = *(DWORD*)(CShell + 0x43EE8);
DWORD PlayerClient = *(DWORD*)(PlayerLt +0x54);
//------------------------------------------------------------------------//
if( GetAsyncKeyState(VK_F3)&1 ) Beep (500,100);
Norecoil = !Norecoil;
{
if( Norecoil )
{
if(pWeaponMgr!=NULL)
{
for(int i=0; i<677; i++)
{
DWORD rWeapon = *(DWORD*)(pWeaponMgr+(4*i));
if(rWeapon!=NULL)
{
for(int y=0; y<10; y++)
{
if(Knives)//Speed Ghosts
{
*(float*)(rWeapon + 0xB10) = -0.5f;
}
*(float*)(rWeapon + 0x3528+y*4) = 0.0f; //BulletPosOffset
*(float*)(rWeapon + 0x352C+y*4) = 0.0f; //BulletPosOffset
*(float*)(rWeapon + 0x3530+y*4) = 0.0f; //BulletPosOffset
*(float*)(rWeapon + 0x3708+y*4) = 0.0f; //ShotReactPitch%d_%d
*(float*)(rWeapon + 0x370C+y*4) = 0.0f; //ShotReactPitch%d_%d
*(float*)(rWeapon + 0x3710+y*4) = 0.0f; //ShotReactPitch%d_%d
//*(float*)(rWeapon + 0xEF8+y*4) = 0.0f; //DetailPerturbShot%d_%s
//*(float*)(rWeapon + 0x1060+y*4) = 0.0f; //DetailReactPitchShot%d_%s
//*(float*)(rWeapon + 0x11C8+y*4) = 0.0f; //DetailReactYawShot%d_%s
*(float*)(rWeapon + 0x3B74+y*4) = 0.0f;//no spread
*(float*)(rWeapon + 0x3514+y*4) = 0.0f;
*(float*)(rWeapon + 0x3518+y*4) = 0.0f;
*(float*)(rWeapon + 0x351C+y*4) = 0.0f;
*(float*)(rWeapon + 0x3520+y*4) = 0.0f;
*(float*)(rWeapon + 0x3524+y*4) = 0.0f;
*(float*)(rWeapon + 0x3528+y*4) = 0.0f;
*(float*)(rWeapon + 0x352C+y*4) = 0.0f;
*(float*)(rWeapon + 0x3530+y*4) = 0.0f;
*(float*)(rWeapon + 0x3534+y*4) = 0.0f;
*(float*)(rWeapon + 0x3538+y*4) = 0.0f;
*(float*)(rWeapon + 0x353C+y*4) = 0.0f;
*(float*)(rWeapon + 0x3540+y*4) = 0.0f;
*(float*)(rWeapon + 0x36F4+y*4) = 0.0f;
*(float*)(rWeapon + 0x36F8+y*4) = 0.0f;
*(float*)(rWeapon + 0x36FC+y*4) = 0.0f;
*(float*)(rWeapon + 0x3700+y*4) = 0.0f;
*(float*)(rWeapon + 0x3704+y*4) = 0.0f;
*(float*)(rWeapon + 0x3708+y*4) = 0.0f;
*(float*)(rWeapon + 0x370C+y*4) = 0.0f;
*(float*)(rWeapon + 0x3710+y*4) = 0.0f;
*(float*)(rWeapon + 0x39F8+y*4) = 0.0f;
*(float*)(rWeapon + 0x39FC+y*4) = 0.0f;
*(float*)(rWeapon + 0x3A00+y*4) = 0.0f;
*(float*)(rWeapon + 0x3A04+y*4) = 0.0f;
}
}
}Sleep(100);
}
}
//=======================================================//
if( GetAsyncKeyState(VK_DELETE)&1 )
wpnhack = !wpnhack;
{
if (wpnhack)
{
DWORD* m16 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr )) + 25*4);
DWORD* GatlingGun_Gold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr )) + 257*4);
{
*m16 = *GatlingGun_Gold;
Sleep(0);
}
}
}
//-----------------------------------------------------//
/*if( GetAsyncKeyState(VK_HOME)&1 )
speed = !speed;
{
if( speed )
{
DWORD GMPlayer = *(DWORD*)(CShell+0x4A8180); //D2F1BC D2F1C0
if(GMPlayer!=NULL)
{
*(float*)(GMPlayer + 0x28) = (float)1.8f;
*(float*)(GMPlayer + 0x28) = (float)1.8f;
*(float*)(GMPlayer + 0x08) = (float)1.8f;
*(float*)(GMPlayer + 0x04) = (float)1.4f;
}
}
}*/
if( GetAsyncKeyState(VK_HOME)&1 )
Nochange = !Nochange;
{
if(Nochange)
{
if (pWeaponMgr)
{
for(int i=0; i<560; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + 0xC3C) = Change;
}
}
}
}
//-------------------------------------------------------//
if( GetAsyncKeyState(VK_INSERT)&1 ) Beep (500,100);
wallshot = !wallshot;
{
if( wallshot )
{
DWORD Ptr = *(DWORD*)(CShell+0xD962DC);
if(Ptr!=NULL)
{
for(int i = 0;i<64;i++)
{
*(bool*)(Ptr+(i*0x574)+0x568) = 1; //EdgeShotEnabled
*(bool*)(Ptr+(i*0x574)+0x56C) = 1; //WallShotEnabled
*(bool*)(Ptr+(i*0x574)+0x570) = 1; //PerfectWallShotEnabled
}
}
}
}
//---------------------------------------------------//
if( GetAsyncKeyState(VK_F12)&1 )
noreload = !noreload;
{
if( noreload )
{
if (CShell + WeaponMgr)
for(int i=0; i<700; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
{
for (int j=0; j<10 ; j++)
{
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xC38 +j*4) = 100.0f;
}
}
}
}
}
//---------------------------------------------------------//
//---------------------------------------------------------//
if( GetAsyncKeyState(VK_F11)&1 )
knife = !knife;
{
if( knife )
{
if(pWeaponMgr)
{
for(int i=0; i<560; i++)
{
if((*(DWORD*)((*(DWORD*)(pWeaponMgr))+(4*i)) ) != NULL)
{
for (int j=0; j<9 ; j++)
{
*(float*)((*(DWORD*)((*(DWORD*)(pWeaponMgr)) +(4*i))) + 0xA6C+j*4) = 2.5;//fastknife1
*(float*)((*(DWORD*)((*(DWORD*)(pWeaponMgr)) +(4*i))) + 0xA90+j*4) = 2.5;//fastknife2
}
}
}
}
}
}
/*
//----------------------------------------------------------//
if( GetAsyncKeyState(VK_F7)&1 )
onehit = !onehit;
{
if( onehit )
{
for(int i = 0;i<512;i++)
{
if((*(DWORD*)((*(DWORD*)(pWeaponMgr))+(4*i)) ) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(pWeaponMgr)) +(4*i))) + 0x81C) = 99999.0f; //use 116.0 in TD/MM/HM (not OHK) , String is "AmmoDamage"
}
}
}*/
//------------------------------------------------------------//
}
}Sleep(50);
}
}
//------------------------------------------------------------------------------//
__declspec( naked ) HRESULT WINAPI DIPMidfunction( )
{
static LPDIRECT3DDEVICE9 pDevice;
__asm
{
MOV EDX, DWORD PTR DS:[EAX]
MOV EDX, DWORD PTR DS:[EDX + 0x148]
MOV DWORD PTR DS:[pDevice], EAX
PUSHAD
}
//-----------------------------------------------------------------------------------------------//
/*if(GetModuleHandleW(L"CShell.dll") && GetModuleHandleW(L"ClientFx.fxd"))
{
Sleep(100);
DWORD CShell = (DWORD)GetModuleHandleW(L"CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell + 0xD962F4); //D0734C
DWORD PlayerLt = *(DWORD*)(CShell + 0x43EE8);
DWORD PlayerClient = *(DWORD*)(PlayerLt +0x54);
DWORD M60 = *(DWORD*)(pWeaponMgr + 17*4);
DWORD VIP = *(DWORD*)(pWeaponMgr + 730*4);
if( Norecoil = !Norecoil )
{
if( Norecoil )
{
if(pWeaponMgr!=NULL)
{
for(int i=0; i<677; i++)
{
DWORD rWeapon = *(DWORD*)(pWeaponMgr+(4*i));
if(rWeapon!=NULL)
{
for(int y=0; y<10; y++)
{
*(float*)(rWeapon + 0x3528+y*4) = 0.0f; //BulletOffset
*(float*)(rWeapon + 0x352C+y*4) = 0.0f; //BulletOffset
*(float*)(rWeapon + 0x3530+y*4) = 0.0f; //BulletOffset
*(float*)(rWeapon + 0x3708+y*4) = 0.0f; //ShotReactPitch%d_%d
*(float*)(rWeapon + 0x370C+y*4) = 0.0f; //ShotReactPitch%d_%d
*(float*)(rWeapon + 0x3710+y*4) = 0.0f; //ShotReactPitch%d_%d
//*(float*)(rWeapon + 0xEF8+y*4) = 0.0f; //DetailPerturbShot%d_%s
//*(float*)(rWeapon + 0x1060+y*4) = 0.0f; //DetailReactPitchShot%d_%s
//*(float*)(rWeapon + 0x11C8+y*4) = 0.0f; //DetailReactYawShot%d_%s
*(float*)(rWeapon + 0x3B74+y*4) = 0.0f;//no spread
*(float*)(rWeapon + 0x3514+y*4) = 0.0f;
*(float*)(rWeapon + 0x3518+y*4) = 0.0f;
*(float*)(rWeapon + 0x351C+y*4) = 0.0f;
*(float*)(rWeapon + 0x3520+y*4) = 0.0f;
*(float*)(rWeapon + 0x3524+y*4) = 0.0f;
*(float*)(rWeapon + 0x3528+y*4) = 0.0f;
*(float*)(rWeapon + 0x352C+y*4) = 0.0f;
*(float*)(rWeapon + 0x3530+y*4) = 0.0f;
*(float*)(rWeapon + 0x3534+y*4) = 0.0f;
*(float*)(rWeapon + 0x3538+y*4) = 0.0f;
*(float*)(rWeapon + 0x353C+y*4) = 0.0f;
*(float*)(rWeapon + 0x3540+y*4) = 0.0f;
*(float*)(rWeapon + 0x36F4+y*4) = 0.0f;
*(float*)(rWeapon + 0x36F8+y*4) = 0.0f;
*(float*)(rWeapon + 0x36FC+y*4) = 0.0f;
*(float*)(rWeapon + 0x3700+y*4) = 0.0f;
*(float*)(rWeapon + 0x3704+y*4) = 0.0f;
*(float*)(rWeapon + 0x3708+y*4) = 0.0f;
*(float*)(rWeapon + 0x370C+y*4) = 0.0f;
*(float*)(rWeapon + 0x3710+y*4) = 0.0f;
*(float*)(rWeapon + 0x39F8+y*4) = 0.0f;
*(float*)(rWeapon + 0x39FC+y*4) = 0.0f;
*(float*)(rWeapon + 0x3A00+y*4) = 0.0f;
*(float*)(rWeapon + 0x3A04+y*4) = 0.0f;
}
}
}Sleep(100);
}
}
}
//-------------------------------------------------------//
if( wallshot = !wallshot )
{
if( wallshot )
{
DWORD Ptr = *(DWORD*)(CShell+0xD962DC);
if(Ptr!=NULL)
{
for(int i = 0;i<64;i++)
{
*(bool*)(Ptr+(i*0x574)+0x568) = 1; //EdgeShotEnabled
*(bool*)(Ptr+(i*0x574)+0x56C) = 1; //WallShotEnabled
*(bool*)(Ptr+(i*0x574)+0x570) = 1; //PerfectWallShotEnabled
}
}Sleep(100);
}
}
}*/
//Bypass();
//---------------------------------------------Wallhack--------------------------------------------//
if( wallhack = !wallhack ) // Hotkeys bisa kamu ganti
if( wallhack )
{
pDevice->SetRenderState( D3DRS_ZENABLE, D3DZB_FALSE );
pDevice->SetRenderState( D3DRS_FOGENABLE, D3DZB_FALSE );
}
//---------------------------------------------Seeghost--------------------------------------------//
//
if( seeghost = !seeghost ) // Hotkeys bisa kamu ganti
if( seeghost )
{
pDevice->SetRenderState( D3DRS_LIGHTING, D3DZB_FALSE );
}
//---------------------------------------------Cams Biru--------------------------------------------//
if( GetAsyncKeyState(VK_F1)&1 ) // Hotkeys bisa kamu ganti
cams = !cams;
if( cams )
{
pDevice->SetRenderState( D3DRS_LIGHTING, D3DZB_TRUE );
pDevice->SetRenderState( D3DRS_SHADEMODE, D3DSHADE_FLAT );
pDevice->SetRenderState( D3DRS_FOGENABLE, D3DZB_FALSE );
if( cams ) pDevice->SetRenderState( D3DRS_AMBIENT, 0xFFFF0000 );
//----------------//
}
//---------------------------------------------Bypass--------------------------------------------//
//-----------------------------------------------------------------------------------------------------//
if( GetAsyncKeyState(VK_F2)&1 ) // Hotkeys bisa kamu ganti
wireframe = !wireframe;
if ( wireframe )
{
if( wireframe ) pDevice->SetRenderState( D3DRS_FILLMODE, D3DFILL_WIREFRAME );
}
//------------------------------------------------------------------------------------------------//
__asm
{
POPAD
JMP retDIPEngine
}
}
void *DetourCreate( BYTE *src, const BYTE *dst, const int len )
{
BYTE *jmp =( BYTE * ) malloc( len + 5 );
DWORD dwBack;
VirtualProtect( src, len, PAGE_READWRITE, &dwBack );
memcpy( jmp, src, len );
jmp += len;
jmp[0] = 0xE9;
*( DWORD * )( jmp + 1 ) = ( DWORD )( src + len - jmp ) - 5;
src[0] = 0xE9;
*( DWORD * )( src + 1 ) = ( DWORD )( dst - src ) - 5;
for( int i = 5; i < len; i++ )
src[i] = 0x90;
VirtualProtect( src, len, dwBack, &dwBack );
return( jmp - len );
}
UINT WINAPI BOKONG(VOID *)
{
_asm CALL BUDUH;
}
DWORD WINAPI StartRoutine( LPVOID )
{
while( TRUE )
{
if( memcmp( ( void * )DIPEngine, ( void * )( PBYTE )"\x8B\x10", 2 ) == 0 )
{
Sleep(200);
DetourCreate( ( PBYTE )DIPEngine, ( PBYTE )DIPMidfunction, 8 );
}
}
return 0;
}
BOOL WINAPI DllMain( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
_beginthreadex(0, 0, BOKONG, 0, 0, 0);
if( dwReason == DLL_PROCESS_ATTACH )
//CheckValidHardwareID();
{
system("start http://indo-crossfire.********.com/2012/11/indo-crossfire-v19-release.html");
MessageBoxA(0, "Cheat Activated", "=|INDO-CROSSFIRE v1.9|=", MB_OK + MB_ICONWARNING );
MessageBoxA(0, " Fitur & Hotkeys :\n 1. Wallhack = Auto On\n 2. Seeghost = Auto On\n 3. Chams = Tekan F1\n 4. Wireframe = Tekan F2\n 5. Crosshair = Auto On\n 6. Wallshot = INSERT\n 7. No Recoil = F3\n 8. M16 - Gattling Gun Gold = DELETE\n\n ----------------------------------- \nThanks to : \n 1. Darma Jaya (Me) \n ----------------------------------- \nwww.*******.com ", "www.*******.com", MB_OK + MB_ICONINFORMATION );
system("start http://www.*******.com");
system("start http://www.*******.com");
CreateThread( 0, 0, ( LPTHREAD_START_ROUTINE )StartRoutine, 0, 0, 0 );
Sleep (5);
}
//----------------------------------MAIN------------------------------------------------------//
char strDLLName [_MAX_PATH];
GetModuleFileName(hDll, strDLLName , _MAX_PATH);
if (strstr(strDLLName,"INDO-CROSSFIRE v1.9.dll") <= 0) {
MessageBoxA(0, "CHEAT ERROR!\nSilahkan kembalikan nama DLL asli : INDO-CROSSFIRE v1.9\nSetelah itu cheat dapat digunakan lagi","PERINGATAN!", MB_OK + MB_ICONSTOP );
ExitProcess(1);
}
return TRUE;
}