HelpHow To Make This HOOK Perfectly

Posts 19 of 9 · Page 1 of 1
How To Make This HOOK Perfectly
Hello Everyone Who Know Foe Hooking For Crossfire I Want To Use This Code And i Want Share Some Hack hack In This Site

If You Interested TO Help Me Just PM Me

Please Help Me For This

I Need Hook


Code:
DWORD retPRESENT10;
__declspec(naked) void Present10()
{

	static LPDIRECT3DDEVICE9 pDevice;

	__asm
	{
		MOV EDI,EDI
			PUSH EBP
			MOV EBP,ESP
			MOV ESI,DWORD PTR SS:[EBP + 0x8]
		MOV pDevice,ESI
	}
	if(pDevice)
	{
	    pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
	    //..
	    pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_TRUE);
	}
	__asm
	{
		JMP retPRESENT10
	}
}
DWORD retPRESENT7;
__declspec(naked) void Present7()
{

	static LPDIRECT3DDEVICE9 pDevice;

	__asm
	{
		MOV EDI,EDI
        PUSH EBP
        MOV EBP,ESP
		PUSH ESI
		PUSH EDI
		MOV EDI,DWORD PTR SS:[EBP+8]
		MOV pDevice,EDI
	}
	if(pDevice)
	{
	    pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
	    //..
	    pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_TRUE);
	}
	__asm
	{
		JMP retPRESENT7
	}
}

DWORD retPRESENT8;
__declspec(naked) void Present8()
{

	static LPDIRECT3DDEVICE9 pDevice;

	__asm
	{
		MOV EDI, EDI
		PUSH EBP
		MOV EBP, ESP
		MOV EAX, DWORD PTR SS : [EBP + 0x8]
		MOV pDevice, EAX
	}
	if(pDevice)
	{
	    pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
	    //...
	    pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_TRUE);
	}
	__asm
	{
		JMP retPRESENT8
	}
}

void Mamo()
{
	DWORD hD3D = (DWORD)LoadLibraryA(ed3d9);
	GetAddressP10 = FindPattern(hD3D, 0x128000, (PBYTE)"\x8B\xFF\x55\x8B\xEC\x83\xE4\xF8\x83\xEC\x0C\x56\x8B\x75\x08\x85\xF6\x74\x05\x8D\x46\x04\xEB\x02\x33\xC0\x6A\x00\x50\x8D\x4C\x24\x10\xE8\x00\x00\x00\x00\xF7\x46\x00\x00\x00\x00\x00\x74\x07\xBE\x00\x00\x00\x00\xEB\x17", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx????xx?????xxx????xx");
	if(GetAddressP10)
	{
		retPRESENT10 = GetAddressP10 + 0xC;
		DetourFunction((PBYTE)GetAddressP10,(PBYTE)Present10);
	}
    GetAddressP7 = FindPattern(hD3D, 0x128000, (PBYTE)"\x8B\xFF\x55\x8B\xEC\x56\x57\x8B\x7D\x08\x85\xFF\x74\x44\x8D\x77\x04\x83\x7E\x18\x00\x0F\x85\x00\x00\x00\x00\xF6\x47\x2C\x02", "xxxxxxxxxxxxxxxxxxxxxxx????xxxx");
	if(GetAddressP7)
	{
		retPRESENT7 = GetAddressP7 + 0x7;
		DetourFunction((PBYTE)GetAddressP7,(PBYTE)Present7);
	}
	GetAddressP8 = FindPattern(hD3D, 0x128000, (PBYTE)"\x8B\xFF\x55\x8B\xEC\x83\xE4\xF8\x83\xEC\x0C\x56\x8B\x75\x08\x85\xF6\x74\x48\x8D\x46\x04\x83\x64\x24\x0C\x00\x83\x78\x18\x00\x89\x44\x24\x08\x75\x3A\xF7\x46\x00\x00\x00\x00\x00\x0F\x85\x00\x00\x00\x00\x6A\x00\xFF\x75\x18\x8B\xCE\xFF\x75\x14\xFF\x75\x10\xFF\x75\x0C\xE8\x00\x00\x00\x00\x8B\xF0\x8D\x4C\x24\x08\xE8\x00\x00\x00\x00", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx?????xx????xxxxxxxxxxxxxxxxx????xxxxxxx????");
	if(GetAddressP8)
	{
		retPRESENT8 = GetAddressP8 + 0xC;
		DetourFunction((PBYTE)GetAddressP8,(PBYTE)Present8);
	}
}
lol learn C+P CODING A DLL

- - - Updated - - -

lol learn C+P CODING A DLL
its offsets detected
Quote Originally Posted by D2-DEV View Post
lol learn C+P CODING A DLL

- - - Updated - - -

lol learn C+P CODING A DLL
its offsets detected
offset ??

where i get the updated offset ?
Quote Originally Posted by dreamers0911 View Post
offset ??

where i get the updated offset ?
find the addys of the hack feature from loadlib and olly dbg
Quote Originally Posted by D2-DEV View Post
find the addys of the hack feature from loadlib and olly dbg
yay there addy it not on cshell.dll
Quote Originally Posted by dreamers0911 View Post
yay there addy it not on cshell.dll
no its on cshell.dll find c3
Quote Originally Posted by D2-DEV View Post
no its on cshell.dll find c3
Hook Is On Cshell.dll ? Did You Try It ?
Posts 19 of 9 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?