Wallhack

Posts 1–15 of 32 · Page 1 of 3
Wallhack
I'm writing a wallhack, but the X-trap is triggered. The problem in this code, what am I doing wrong?

Code:
int D3Dinit(void)
{
        DWORD           hD3D, adr, *vtbl;
        hD3D=0;
        do {
                hD3D = (DWORD)GetModuleHandle("d3d9.dll");
                Sleep(10);
        } while(!hD3D); 
        adr = FindPattern(hD3D, 0x128000, (PBYTE)"\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x00\x00\x89\x86", "xx????xx????xx");
        if (adr) {
                memcpy(&vtbl,(void *)(adr+2),4);
                pReset    = (oReset)    DetourFunction((PBYTE)vtbl[16]   , (PBYTE)Reset   ,5);
                pEndScene = (oEndScene) DetourFunction((PBYTE)vtbl[42], (PBYTE)EndScene,5);
  pDrawIndexedPrimitive  = (DrawIndexedPrimitive_t) DetourFunction((PBYTE)vtbl[82], (PBYTE)hkDrawIndexedPrimitive,5);
        }
        return 0;
}
Sorry for my english.
Midhook: Win7 - 64 bit : vtbl[152]
XP - Vista : vtbl[154]
Quote Originally Posted by lucifereviluser View Post
Midhook: Win7 - 64 bit : vtbl[152]
XP - Vista : vtbl[154]
show an example of my code, you can?
Code:
int D3Dinit(void)
{
        DWORD           hD3D, adr, *vtbl;
        hD3D=0;
        do {
                hD3D = (DWORD)GetModuleHandle("d3d9.dll");
                Sleep(10);
        } while(!hD3D); 
        adr = FindPattern(hD3D, 0x128000, (PBYTE)"\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x00\x00\x89\x86", "xx????xx????xx");
        if (adr) {
                memcpy(&vtbl,(void *)(adr+2),4);
                pReset    = (oReset)    DetourFunction((PBYTE)vtbl[152]   , (PBYTE)Reset   ,5);
                pEndScene = (oEndScene) DetourFunction((PBYTE)vtbl[154], (PBYTE)EndScene,5);
  pDrawIndexedPrimitive  = (DrawIndexedPrimitive_t) DetourFunction((PBYTE)vtbl[82], (PBYTE)hkDrawIndexedPrimitive,5);
        }
        return 0;
}
try this
Quote Originally Posted by MOHMED596 View Post
Code:
int D3Dinit(void)
{
        DWORD           hD3D, adr, *vtbl;
        hD3D=0;
        do {
                hD3D = (DWORD)GetModuleHandle("d3d9.dll");
                Sleep(10);
        } while(!hD3D); 
        adr = FindPattern(hD3D, 0x128000, (PBYTE)"\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x00\x00\x89\x86", "xx????xx????xx");
        if (adr) {
                memcpy(&vtbl,(void *)(adr+2),4);
                pReset    = (oReset)    DetourFunction((PBYTE)vtbl[152]   , (PBYTE)Reset   ,5);
                pEndScene = (oEndScene) DetourFunction((PBYTE)vtbl[154], (PBYTE)EndScene,5);
  pDrawIndexedPrimitive  = (DrawIndexedPrimitive_t) DetourFunction((PBYTE)vtbl[82], (PBYTE)hkDrawIndexedPrimitive,5);
        }
        return 0;
}
try this
if i run use bypass, it works.
And without:
d27b5f3a98db.png48 KB · 9 downloads
it's Detected>
Quote Originally Posted by MOHMED596 View Post
it's Detected>
how to created undetected )
PM pls )
sry but u dont even know what u are doing....Detours are patched for ever....and Reset is for Menu/.....not a wallhack..
Quote Originally Posted by Assassin's Creed View Post
sry but u dont even know what u are doing....Detours are patched for ever....and Reset is for Menu/.....not a wallhack..
fail?! detouring is not patched :P (if you don´t use any from google and microsoft crap)
Quote Originally Posted by Syn0tix View Post
fail?! detouring is not patched :P (if you don´t use any from google and microsoft crap)
aye Add me in msn @coderowns@.hotmail.com
Quote Originally Posted by Syn0tix View Post
fail?! detouring is not patched :P (if you don´t use any from google and microsoft crap)
dude add me 2 on MSN teto_mocble@Y ahoo.com
well it isnt patched on 64 bit...but it gives xtrap error on 32B
Why do you use endscene and reset?
Quote Originally Posted by Swag View Post
Why do you use endscene and reset?
true that's what i use.
Posts 1–15 of 32 · Page 1 of 3

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?