nice man thanks for sharing
CrossFire Simple WallHack Source
Patched, and leeched

My get d3d device , work for all crossfire and it undetected.
I use d3d device to make wall hack , crosshair , chams, d3d menu
__declspec(naked) void GetD3D_Device()
{
__asm
{
mov pDevice,eax
pushad
call call_addr
popad
push dword ptr [ebp + 0xC]
mov ecx,esi
jmp esReturn;
}
}
I use d3d device to make wall hack , crosshair , chams, d3d menu
__declspec(naked) void GetD3D_Device()
{
__asm
{
mov pDevice,eax
pushad
call call_addr
popad
push dword ptr [ebp + 0xC]
mov ecx,esi
jmp esReturn;
}
}
#include "stdafx.h"
#include <Windows.h>
#include "d3d9.h"
#include "detours.h"
#include "stdio.h"
#pragma comment (lib, "d3d9.lib")
#pragma comment (lib, "detours.lib")
bool hlWall=1;
bool hlSTART=1;
typedef HRESULT(WINAPI* DrawIndexedPrimitive_)(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE Type, INT BaseVertexIndex, UINT MinIndex, UINT NumVertices, UINT StartIndex, UINT PrimitiveCount);
DrawIndexedPrimitive_ pDrawIndexedPrimitive;
HRESULT WINAPI nDrawIndexedPrimitive(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE Type, INT BaseVertexIndex, UINT MinIndex,UINT NumVertices, UINT StartIndex, UINT PrimitiveCount)
{
IDirect3DVertexBuffer9* pStreamData = NULL;
UINT iOffsetInBytes,iStride;
pDevice->GetStreamSource(0,&pStreamData,&iOffsetInBytes,&i Stride);
if ( iStride == 40 &&hlSTART==1)
{
pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
pDevice->SetRenderState(D3DRS_ZFUNC,D3DCMP_NEVER);
}
return pDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinIndex, NumVertices, StartIndex, PrimitiveCount);
}
int hlMAIN ();
BOOL APIENTRY DllMain( HANDLE hModule,DWORD ul_reason_for_call, LPVOID lpReserved )
{
if (hlWall)
{
hlWall=0;
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)hlMAIN, NULL, NULL, NULL);
}
return TRUE;
}
int hlMAIN()
{
char s[1000];
DWORD ******OffS=0x4FE571A0;<<<Update that
for(;; Sleep(100))
{
******OffS=(DWORD)GetModuleHandle ("d3d9.dll");
if (******OffS)
break;
}
DWORD a[2];
a[0]=******OffS+0x88830;
OutputDebugString (s);
pDrawIndexedPrimitive = (DrawIndexedPrimitive_)DetourFunction((PBYTE)a[0],(PBYTE)nDrawIndexedPrimitive);
for (;;Sleep (500))
{
if (GetAsyncKeyState (VK_F9)!=0)
{
Beep (2000,200);
hlSTART=1; // Turn ON
}
if (GetAsyncKeyState (VK_F10)!=0)
{
Beep (3000,200);
hlSTART=0; // Turn OFF
}
}
return 1;
}
#include <Windows.h>
#include "d3d9.h"
#include "detours.h"
#include "stdio.h"
#pragma comment (lib, "d3d9.lib")
#pragma comment (lib, "detours.lib")
bool hlWall=1;
bool hlSTART=1;
typedef HRESULT(WINAPI* DrawIndexedPrimitive_)(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE Type, INT BaseVertexIndex, UINT MinIndex, UINT NumVertices, UINT StartIndex, UINT PrimitiveCount);
DrawIndexedPrimitive_ pDrawIndexedPrimitive;
HRESULT WINAPI nDrawIndexedPrimitive(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE Type, INT BaseVertexIndex, UINT MinIndex,UINT NumVertices, UINT StartIndex, UINT PrimitiveCount)
{
IDirect3DVertexBuffer9* pStreamData = NULL;
UINT iOffsetInBytes,iStride;
pDevice->GetStreamSource(0,&pStreamData,&iOffsetInBytes,&i Stride);
if ( iStride == 40 &&hlSTART==1)
{
pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
pDevice->SetRenderState(D3DRS_ZFUNC,D3DCMP_NEVER);
}
return pDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinIndex, NumVertices, StartIndex, PrimitiveCount);
}
int hlMAIN ();
BOOL APIENTRY DllMain( HANDLE hModule,DWORD ul_reason_for_call, LPVOID lpReserved )
{
if (hlWall)
{
hlWall=0;
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)hlMAIN, NULL, NULL, NULL);
}
return TRUE;
}
int hlMAIN()
{
char s[1000];
DWORD ******OffS=0x4FE571A0;<<<Update that
for(;; Sleep(100))
{
******OffS=(DWORD)GetModuleHandle ("d3d9.dll");
if (******OffS)
break;
}
DWORD a[2];
a[0]=******OffS+0x88830;
OutputDebugString (s);
pDrawIndexedPrimitive = (DrawIndexedPrimitive_)DetourFunction((PBYTE)a[0],(PBYTE)nDrawIndexedPrimitive);
for (;;Sleep (500))
{
if (GetAsyncKeyState (VK_F9)!=0)
{
Beep (2000,200);
hlSTART=1; // Turn ON
}
if (GetAsyncKeyState (VK_F10)!=0)
{
Beep (3000,200);
hlSTART=0; // Turn OFF
}
}
return 1;
}
hahahah nice hack code that the one i have from other site
Its not a very good code,
And then in the dll main
Why did you do that?
And then this:
You you don't put it in the top? And why int? You don't use that type... Why not a bool if you only use 1 and 0? And in this case, why not void?
And then the strange loop
Why not a do loop? Or is this detected?
And then hotkey's... Why not name = !name? Now you use 2 hotkey's for 1 function...
And do you call the detourt function?
Code:
bool hlWall=1;
Code:
hlWall=0;
And then this:
Code:
int hlMAIN ();
And then the strange loop
Code:
for(;; Sleep(100))
{
******OffS=(DWORD)GetModuleHandle ("d3d9.dll");
if (******OffS)
break;
}
And then hotkey's... Why not name = !name? Now you use 2 hotkey's for 1 function...
And do you call the detourt function?
TY VERY MUCH !!!!!!!!!!!!!! IM BANNED !
:@
:@hahha it seems old
semms very ld from where you leeched it ?
semms very ld from where you leeched it ?
missing strides
include 20/32/44
include 20/32/44
This thread is closed for replies.
Similar Threads
CrossFire Hack Coding / Programming / Source Codecrossfire wallhack source for hook
9 Call of Duty 4 - Modern Warfare (MW) HacksSimple WallhackHA 3 Combat Arms Hacks & Cheats[REQUEST] Can someone give me the link to simple newb(me)-friendly simple wallhack?US 3 CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) HacksSimple Wallhack for Counter Strike 1.6
4 General Game HackingCrossFire D3D wallhack is coming...AS 3

) [noob]! 
