End3D Hook
Hi Guys,
i want to show you my End3D hook. I just release it because now Xtrap is detecting it
Credits:
@lucifereviluser
@giniyat101
Have Fun^^

i want to show you my End3D hook. I just release it because now Xtrap is detecting it

Code:
typedef unsigned int uint32;
typedef uint32 LTRESULT;
DWORD ILTClient,FindDevice;
typedef LTRESULT (__cdecl *_End3D)();
_End3D oEnd3D;
LTRESULT __cdecl MyEnd3D ()
{
static LPDIRECT3DDEVICE9 pDevice;
if(!FindDevice)
FindDevice = FindPattern(0x400000, 0xFFFFFF,(PBYTE)"\x8B\x35\xFF\xFF\xFF\xFF\x8B\xEE\xE8\xFF\xFF\xFF\xFF\x8B\x45\x00\x8B\x08\x8B\x91\xFF\xFF\xFF\xFF\x57\x6A\xFF\x53","xx????xxx????xxxxxxx????xx?x");
if(FindDevice)
pDevice = *(LPDIRECT3DDEVICE9 *)(*(DWORD *)(*(DWORD *)(FindDevice + 0x2)));
if(pDevice)
{
// Your End3D Stuff //
}
return oEnd3D();
}
void End3DHook()
{
while(!(GetModuleHandleA(eCShell) != 0 && GetModuleHandleA(eClient) != 0))
Sleep(250);
DWORD CShell = (DWORD)GetModuleHandle(eCShell);
ILTClient = FindPattern(CShell, 0xFFFFFF, (PBYTE)"\x8B\x0D\x00\x00\x00\x00\x8B\x11\x8B\x82\x00\x00\x00\x00","xx????xxxx????");
ILTClient = *(DWORD*)(ILTClient + 0x2);
DWORD End3D = *(DWORD*)(*(DWORD*)ILTClient + 0xC8);//0xA0 = FlipScreen
oEnd3D = (_End3D)DetourFunction((PBYTE)End3D,(PBYTE)MyEnd3D);
}
@lucifereviluser
@giniyat101
Have Fun^^

![=]](/forum/images/emotions/=].gif)



