D3D9 Hook (WallHack)

Posts 115 of 36 · Page 1 of 3
D3D9 Hook (WallHack)
Hey Guys
i want to share my d3d hook. I don't need this hook, thats why i am sharing this code. With this hook you can make WallHack, FullBright....

So i don't share all my code only the main part. This isn't a Tutorial and only for guys who is knowing c++....

Have Fun!

WallHack (I think all of you can make this )
Code:
void WallHackD3D(LPDIRECT3DDEVICE9 pDevice)
{
	IDirect3DVertexBuffer9* pStreamData = NULL; 
	UINT iOffsetInBytes,iStride;  
	pDevice->GetStreamSource(0,&pStreamData,&iOffsetInBytes,&iStride); 

	if (iStride == 44)
	{
		pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
	}
}
The MidFunction
Code:
DWORD ret_MyMid;

_declspec(naked) void MyMid()
{
	static LPDIRECT3DDEVICE9 pDevice;
	__asm 
	{
		MOV EDI,EDI
		PUSH EBP
		MOV EBP,ESP
		MOV EAX,DWORD PTR [EBP + 0x8]
		MOV pDevice,EAX
	}
	WallHackD3D(pDevice);
	__asm 
	{
		JMP ret_MyMid
	}
}
and here you have the Main part

Code:
void Hook ()
{
	DWORD hD3D;
		
	do {
		hD3D = (DWORD)LoadLibraryA("d3d9.dll");
	} while(!hD3D);
	
	DWORD Address = FindPattern(hD3D, 0x128000,(PBYTE)"\x8B\xFF\x55\x8B\xEC\x6A\xFF\x68\x00\x00\x00\x00\x64\xA1\x00\x00\x00\x00\x50\x83\xEC\x10\x53\x56\x57\xA1\x00\x00\x00\x00","xxxxxxxx????xx????xxxxxxxx????");
	if(Address)
	{
		ret_myMid = Address + 5;
		MakeJMP((PBYTE)Address,(DWORD)MyMid,5);
	}
}
nice work !
Nice work if you wrote this
@-[I]fLuX, Still detected by xtrap sir.. I'm using C++ 2010 Express and DirectX SDK June 2010. Someone told me that the version that I've use is the one that is detected by xtrap, Is this true? BTW, What version did you used? Thanks..
Quote Originally Posted by -[I]fLuX View Post
Hey Guys
i want to share my d3d hook. I don't need this hook, thats why i am sharing this code. With this hook you can make WallHack, FullBright....

So i don't share all my code only the main part. This isn't a Tutorial and only for guys who is knowing c++....

Have Fun!

WallHack (I think all of you can make this )
Code:
void WallHackD3D(LPDIRECT3DDEVICE9 pDevice)
{
	IDirect3DVertexBuffer9* pStreamData = NULL; 
	UINT iOffsetInBytes,iStride;  
	pDevice->GetStreamSource(0,&pStreamData,&iOffsetInBytes,&iStride); 

	if (iStride == 44)
	{
		pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
	}
}
The MidFunction
Code:
DWORD ret_MyMid;

_declspec(naked) void MyMid()
{
	static LPDIRECT3DDEVICE9 pDevice;
	__asm 
	{
		MOV EDI,EDI
		PUSH EBP
		MOV EBP,ESP
		MOV EAX,DWORD PTR [EBP + 0x8]
		MOV pDevice,EAX
	}
	WallHackD3D(pDevice);
	__asm 
	{
		JMP ret_MyMid
	}
}
and here you have the Main part

Code:
void Hook ()
{
	DWORD hD3D;
		
	do {
		hD3D = (DWORD)LoadLibraryA("d3d9.dll");
	} while(!hD3D);
	
	DWORD Address = FindPattern(hD3D, 0x128000,(PBYTE)"\x8B\xFF\x55\x8B\xEC\x6A\xFF\x68\x00\x00\x00\x00\x64\xA1\x00\x00\x00\x00\x50\x83\xEC\x10\x53\x56\x57\xA1\x00\x00\x00\x00","xxxxxxxx????xx????xxxxxxxx????");
	if(Address)
	{
		ret_myMid = Address + 5;
		MakeJMP((PBYTE)Address,(DWORD)MyMid,5);
	}
}
ah???

but @V I Already Post this...

here

http://www.mpgh.net/forum/242-crossf...-base-dip.html

but.....thanks again!
Quote Originally Posted by -[I]fLuX View Post
no... look at the address he is using another address then me....
ahhh ok
Quote Originally Posted by -[I]fLuX View Post
no... look at the address he is using another address then me....
i try to find this in olly..

Code:
8B FF 55 8B EC 6A FF 68 ?? ?? ?? ?? 64 A1 ?? ?? ?? ?? 50 83 EC 10 53 56 57 A1 ?? ?? ?? ??
but can't find...XD
Quote Originally Posted by Jhem View Post
i try to find this in olly..

Code:
8B FF 55 8B EC 6A FF 68 ?? ?? ?? ?? 64 A1 ?? ?? ?? ?? 50 83 EC 10 53 56 57 A1 ?? ?? ?? ??
but can't find...XD
Are you retarded or what ?
Quote Originally Posted by -[I
fLuX;7572002]no... look at the address he is using another address then me....
You just modified this shit a bit.
You just modified it a litlle bit...But nice work anyway, this is a source code that noobs can't leech .
Quote Originally Posted by RobinC View Post
You just modified it a litlle bit...But nice work anyway, this is a source code that noobs can't leech .

Quote Originally Posted by [H
aaBX;7572021]You just modified this shit a bit.
you just copy + pasted what Habx said , that means you have no clue about that source code
Quote Originally Posted by Intellectual View Post




you just copy + pasted what Habx said , that means you have no clue about that source code
me or flux
Posts 115 of 36 · Page 1 of 3
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?