D3D Wall Hack

Posts 1–15 of 16 · Page 1 of 2
D3D Wall Hack
Code:
#include "d3d9.h"
#include <windows.h>
LPDIRECT3DDEVICE9 pDevice;
#pragma comment (lib, "d3d9.lib")
void MakeJMP(BYTE *pAddress, DWORD dwJumpTo, DWORD dwLen)
{
    DWORD dwOldProtect, dwBkup, dwRelAddr;
   // VirtualProtect(pAddress, dwLen, PAGE_EXECUTE_READWRITE, &dwOldProtect);
    dwRelAddr = (DWORD) (dwJumpTo - (DWORD) pAddress) - 5;
    *pAddress = 0xE9;
    *((DWORD *)(pAddress + 0x1)) = dwRelAddr;
    for(DWORD x = 0x5; x < dwLen; x++) *(pAddress + x) = 0x90;
  //  VirtualProtect(pAddress, dwLen, dwOldProtect, &dwBkup);
    return;
}

bool bCompare(const BYTE* pData, const BYTE* bMask, const char* szMask)
{
        for(;*szMask;++szMask,++pData,++bMask)
                if(*szMask=='x' && *pData!=*bMask)  
                        return 0;
        return (*szMask) == NULL;
}

DWORD FindPattern(DWORD dwAddress,DWORD dwLen,BYTE *bMask,char * szMask)
{
        for(DWORD i=0; i<dwLen; i++)
                if (bCompare((BYTE*)(dwAddress+i),bMask,szMask))  
                        return (DWORD)(dwAddress+i);
        return 0;
}
DWORD ndip1;

DWORD DIP;
__declspec( naked ) VOID WINAPI ndip( )  {
__asm
   {
	MOV EDX,DWORD PTR DS:[EAX];
    MOV DWORD PTR DS:[pDevice], EAX
	 PUSHAD

}
	if(pDevice!=0){
pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);

	}

__asm{
	 POPAD
jmp ndip1;

    }
}

HANDLE Thead;
int Hack123()
{
	Sleep(1000);
	DIP = FindPattern((DWORD)0x400000, 0x300000, (PBYTE)"\x8B\x10\x8B\x92\x00\x00\x00\x00\x51\x8B\x4C\x24\x00\x55\x51\x6A\x00\x6A\x00\x50\xFF\xD2\x8B\x43\x00\x8B\x8C\x24", "xxxx????xxxx?xxx?x?xxxxx?xxx");
if(memcmp( ( void * )DIP, ( void * )( PBYTE )"\x8B\x10", 2 ) == 0){
ndip1=DIP+0x2;
MakeJMP((PBYTE)(DIP+0x4D), (DWORD)ndip,5);
memcpy((VOID*)DIP, "\xeb\x4b", 2);
CloseHandle(Thead);
return 0;
}
	
	Hack123();

	return 0;
}


BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
					 )
{
	switch (ul_reason_for_call)
	{
	case DLL_PROCESS_ATTACH:
		{
				  
Thead = CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hack123, NULL, NULL, NULL); 
							}
	case DLL_THREAD_ATTACH:
	case DLL_THREAD_DETACH:
	case DLL_PROCESS_DETACH:
		break;
	}
	return TRUE;
}
PLEASE THANKS
CREDITS OHCF
Thanks for sharing
OneHitCF - f*cking leechers!
they steal other people's hooks and insert them in their f*cking cheat!
it is not their hook, and the damage to the ZM is also not their
Do not say you do not know.You a leecher and do not think the others like
Quote Originally Posted by hackerlovely View Post
Do not say you do not know.You a leecher and do not think the others like
Really? I make ZM 1 hit kill in november 2012 fo RU CF, after month - OHCF - make it.
i make 1hit ZM form september ? for VN CF

updated 22-09-2012 ? why you say i leecher ?
Quote Originally Posted by hackerlovely View Post
i make 1hit ZM form september ? for VN CF
updated 22-09-2012 ? why you say i leecher ?
because i use hook, that u post - half of year, and it created not OHCF!
this is not OHCF credited...
Quote Originally Posted by omarphanta View Post
how to use this code ?
So.........


---------- Post added at 09:59 AM ---------- Previous post was at 09:58 AM ----------

Quote Originally Posted by botlord View Post
how can i use this code and other ones?
where should i put that text you posted?
thnak you
Many.......


---------- Post added at 09:59 AM ---------- Previous post was at 09:59 AM ----------

Quote Originally Posted by flatling View Post
where do i put that code?
Many........


---------- Post added at 10:00 AM ---------- Previous post was at 09:59 AM ----------

Quote Originally Posted by Moudi5 View Post
Where do I add this code and how? Please reply would be really nice
Fail........
And 2 Egyptian.... What a shame....
I'm not Egyptian idiot.
how can i use this code and other ones?
where should i put that text you posted?
thnak you
where do i put that code?
Where do I add this code and how? Please reply would be really nice
Posts 1–15 of 16 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us