Hello MPGH ,
your D3D Menu is DC ? use my own hook ...
that's Free
just compile in your main base
Info :
Hook Type : vTable
Don't Leech ..
just click thank's ^^Code://================================= Hook by Devata25 ============================================// LRESULT CALLBACK MsgProc(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam){return DefWindowProc(hwnd, uMsg, wParam, lParam);} void DX_Init(DWORD* table) { WNDCLASSEX wc = {sizeof(WNDCLASSEX),CS_CLASSDC,MsgProc,0L,0L,GetModuleHandle(NULL),NULL,NULL,NULL,NULL,"DX",NULL}; RegisterClassEx(&wc); HWND hWnd = CreateWindow("DX",NULL,WS_OVERLAPPEDWINDOW,100,100,300,300,GetDesktopWindow(),NULL,wc.hInstance,NULL); LPDIRECT3D9 pD3D = Direct3DCreate9( D3D_SDK_VERSION ); D3DPRESENT_PARAMETERS d3dpp; ZeroMemory( &d3dpp, sizeof(d3dpp) ); d3dpp.Windowed = TRUE; d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD; d3dpp.BackBufferFormat = D3DFMT_UNKNOWN; LPDIRECT3DDEVICE9 pd3dDevice; pD3D->CreateDevice(D3DADAPTER_DEFAULT,D3DDEVTYPE_HAL,hWnd,D3DCREATE_SOFTWARE_VERTEXPROCESSING,&d3dpp,&pd3dDevice); DWORD* pVTable = (DWORD*)pd3dDevice; pVTable = (DWORD*)pVTable[0]; table[ES] = pVTable[42]; //EndScene address table[DIP] = pVTable[82]; //DrawIndexedPrimitive address table[RES] = pVTable[16]; //Reset address Sleep(218);// } /********************************************************************************/ /* /********************************************************************************/ DWORD WINAPI VirtualMethodTableRepatchingLoopToCounterExtensionRepatching( LPVOID Param ) { while(1) { Sleep(100); HookVTableFunction((PDWORD*)npDevice, (PBYTE)0x4FF505C0,82); HookVTableFunction((PDWORD*)npDevice, (PBYTE)0x4FF50270,42); Sleep(97-8-31);// } return 1; } /********************************************************************************/ // HOOK UNDETEK //- HOOK D3D9 /********************************************************************************/ bool hooked = false; DWORD WINAPI FelixHook(LPVOID lpParam) { if( hooked == false) { DWORD VTable[3*3*10] = {0}; while(LoadLibraryA("d3d9.dll")==NULL) { } DX_Init(VTable); HOOK(EndScene,VTable[ES]); //Hook EndScene as a device discovery hook while(!npDevice) { Sleep(218);// } UNHOOK(EndScene, VTable[ES]); void* d3DIP = (void*)(dwD3D9 + (DWORD) + (DWORD) + (DWORD) + (PDWORD)BaseD3D + 1024);//0x4FF50A4B[82]<~~ header ini mn?? yoda buat z void* d3ES = (void*)(dwD3D9 + (DWORD) + (DWORD) + (DWORD) + (PDWORD)BaseD3D + 1036);//0x4FF19FEA[42] { int i; for (i = 0 ; i <= 0 ; i++){ DWORD d,ds; VirtualProtect((void*)(d3ES), 4, PAGE_EXECUTE_READWRITE, &d); memcpy(d3ES,(void*)(d3ES), 4); VirtualProtect((void*)(d3ES), 4, d, &ds); } } int C; for (C = 0 ; C <= 0 ; C++){ { DWORD d,ds; VirtualProtect((void*)(d3DIP), 4, PAGE_EXECUTE_READWRITE, &d); memcpy(d3DIP,(void*)(d3DIP), 4); VirtualProtect((void*)(d3DIP), 4, d, &ds); } } //------------------// CreateDetour((DWORD)hkDrawIndexedPrimitive, (DWORD)d3DIP*C,Detour_Type_0xB8,7); CreateDetour((DWORD)hkEndScene, (DWORD)d3ES*C,Detour_Type_0xB8,7); *(PDWORD)&oDrawIndexedPrimitive = VTable[DIP]; *(PDWORD)&oEndScene = VTable[ES]; //-----------------// hooked = true; DxInit = true; // ESP } Sleep(10); void* d3DIP = (void*)(dwD3D9 + (DWORD) + (DWORD) + (DWORD) + (PDWORD)BaseD3D + 1024);//0x4FF505B0[82] void* d3ES = (void*)(dwD3D9 + (DWORD) + (DWORD) + (DWORD) + (PDWORD)BaseD3D + 1036);//0x4FF50260[42] { DWORD Dark,ds; VirtualProtect((void*)(d3ES), 4, PAGE_EXECUTE_READWRITE, &Dark); memcpy((void*)d3ES, (const void*)d3ES, 4); VirtualProtect((void*)(d3ES), 4, Dark, &ds); Sleep(97-8-31);// } int i; for (i = 0 ; i <= 15 ; i++){ { DWORD d,ds; VirtualProtect((void*)(d3DIP), 4, PAGE_EXECUTE_READWRITE, &d); memcpy((void*)d3DIP, (const void*)d3DIP, 4); VirtualProtect((void*)(d3DIP), 4, d, &ds); Sleep(97-8-31);// } } for (i = 0 ; i <= 15 ; i++){ if(memcmp((void *)d3DIP, (void *)d3DIP, 82) == 0 ) // Protect Hook Draw Indexed Primitive HookVTableFunction((LPDWORD*)npDevice, (PBYTE)d3DIP, 82); Sleep(97-8-31);// } for (i = 0 ; i <= 15 ; i++){ if(memcmp((void *)d3ES, (void *)d3ES, 42) == 0 ) // Protect Hook End Scene HookVTableFunction((LPDWORD*)npDevice, (PBYTE)d3ES, 42); Sleep(97-8-31);// } { Sleep(100*2); } return 0; }
Don't Forget MPGH & Me...
Respect :
@Burgessjr
@Dave84311
Last edited by Devata25; 06-22-2012 at 10:24 PM.
Devata|Code'Rian
Legend Coder@DeCode
error pak . . .
1>------ Build started: Project: reborn, Configuration: Release Win32 ------
1> D3dbase.cpp
1>D3dbase.cpp(185): error C2065: 'ES' : undeclared identifier
1>D3dbase.cpp(186): error C2065: 'DIP' : undeclared identifier
1>D3dbase.cpp(187): error C2065: 'RES' : undeclared identifier
1>D3dbase.cpp(198): error C2065: 'npDevice' : undeclared identifier
1>D3dbase.cpp(198): error C3861: 'HookVTableFunction': identifier not found
1>D3dbase.cpp(199): error C2065: 'npDevice' : undeclared identifier
1>D3dbase.cpp(199): error C3861: 'HookVTableFunction': identifier not found
1>D3dbase.cpp(218): error C2065: 'ES' : undeclared identifier
1>D3dbase.cpp(218): error C3861: 'HOOK': identifier not found
1>D3dbase.cpp(219): error C2065: 'npDevice' : undeclared identifier
1>D3dbase.cpp(222): error C2065: 'ES' : undeclared identifier
1>D3dbase.cpp(222): error C3861: 'UNHOOK': identifier not found
1>D3dbase.cpp(223): error C2065: 'dwD3D9' : undeclared identifier
1>D3dbase.cpp(223): error C2065: 'BaseD3D' : undeclared identifier
1>D3dbase.cpp(224): error C2065: 'dwD3D9' : undeclared identifier
1>D3dbase.cpp(224): error C2065: 'BaseD3D' : undeclared identifier
1>D3dbase.cpp(244): error C2065: 'hkDrawIndexedPrimitive' : undeclared identifier
1>D3dbase.cpp(244): error C2065: 'Detour_Type_0xB8' : undeclared identifier
1>D3dbase.cpp(244): error C3861: 'CreateDetour': identifier not found
1>D3dbase.cpp(245): error C2065: 'hkEndScene' : undeclared identifier
1>D3dbase.cpp(245): error C2065: 'Detour_Type_0xB8' : undeclared identifier
1>D3dbase.cpp(245): error C3861: 'CreateDetour': identifier not found
1>D3dbase.cpp(247): error C2065: 'oDrawIndexedPrimitive' : undeclared identifier
1>D3dbase.cpp(247): error C2065: 'DIP' : undeclared identifier
1>D3dbase.cpp(248): error C2275: 'oEndScene' : illegal use of this type as an expression
1> c:\documents and settings\mrs. sumini\my documents\visual studio 2010\projects\reborn\reborn\zenixMenuClass.h(39) : see declaration of 'oEndScene'
1>D3dbase.cpp(248): error C2275: 'oEndScene' : illegal use of this type as an expression
1> c:\documents and settings\mrs. sumini\my documents\visual studio 2010\projects\reborn\reborn\zenixMenuClass.h(39) : see declaration of 'oEndScene'
1>D3dbase.cpp(248): error C2065: 'ES' : undeclared identifier
1>D3dbase.cpp(251): error C2065: 'DxInit' : undeclared identifier
1>D3dbase.cpp(254): error C2065: 'dwD3D9' : undeclared identifier
1>D3dbase.cpp(254): error C2065: 'BaseD3D' : undeclared identifier
1>D3dbase.cpp(255): error C2065: 'dwD3D9' : undeclared identifier
1>D3dbase.cpp(255): error C2065: 'BaseD3D' : undeclared identifier
1>D3dbase.cpp(275): error C2065: 'npDevice' : undeclared identifier
1>D3dbase.cpp(275): error C3861: 'HookVTableFunction': identifier not found
1>D3dbase.cpp(281): error C2065: 'npDevice' : undeclared identifier
1>D3dbase.cpp(281): error C3861: 'HookVTableFunction': identifier not found
1>D3dbase.cpp(296): error C2065: 'D3Dinit' : undeclared identifier
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
![]()
you owned this source code???
why still error??
Devata25 knows nothing. All his previous posts are copy pasta.
Regarding to this codes, it was made by Jomel from [UC] forum with thread => Soldier Front DFI Undetected Source Code.
And this is not the successfully way to detour. He (Jomel) knows nothing too...
I had it successfully compiled and tested, but this is a fail version.
The detoured addresses are not actually correct. You have to find your own.
are u shore thats work ? im not ... ;S
Yeah , you sure because the code seem wrong :S
that is noobish coder, failed copy paster giving another hard work for self , coder wannabe fail
see this
missing include section maybe..
and miss some function like UNHOOK, HOOK..
this base is not complate..
Im a new Forumer, just a newbie.
but i wanted to share what i have. and learn kind of stuff here.
If need help with some stuff or project i'll help as i can.
Hope i can be useful here.
Hm,
Simple Copy & Paste Bullshit.
GG - NO-RE
kJNR
wkwkwkwkwk fvck you!
you embarrassing the indonesian