Results 1 to 11 of 11
  1. #1
    Devata25's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Location
    C:\WINDOWS\system32
    Posts
    38
    Reputation
    10
    Thanks
    139
    My Mood
    Cold

    Thumbs up Hook by Devata25

    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 ..

    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;
    }
    just click thank's ^^
    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

  2. The Following 2 Users Say Thank You to Devata25 For This Useful Post:

    Reivik (06-25-2012),Royce (06-23-2012)

  3. #2
    ramayudha's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    0
    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 ==========



  4. #3
    angahucu1's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    you owned this source code???
    why still error??

  5. #4
    lannyboy's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    97
    Reputation
    10
    Thanks
    420
    Quote Originally Posted by angahucu1 View Post
    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.

  6. #5
    joe0022's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    2
    are u shore thats work ? im not ... ;S

  7. #6
    sasuke08's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    43
    Reputation
    10
    Thanks
    2
    Yeah , you sure because the code seem wrong :S

  8. #7
    trapcode's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Earth
    Posts
    34
    Reputation
    10
    Thanks
    3
    My Mood
    Cool
    that is noobish coder, failed copy paster giving another hard work for self , coder wannabe fail
    see this

  9. #8
    bluelogic's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    Java
    Posts
    22
    Reputation
    10
    Thanks
    1
    My Mood
    Fine
    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.

  10. #9
    kJNR's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Location
    Australia
    Posts
    58
    Reputation
    10
    Thanks
    23
    My Mood
    Yeehaw
    Hm,

    Simple Copy & Paste Bullshit.
    GG - NO-RE

    kJNR

  11. #10
    ibeddbei's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    My Mood
    Amused
    wkwkwkwkwk fvck you!
    you embarrassing the indonesian

  12. #11
    PheonX's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    C|WINDOWS|System32
    Posts
    76
    Reputation
    10
    Thanks
    431
    My Mood
    Dead
    Quote Originally Posted by ramayudha View Post
    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 ==========


    the word is undeclared ..
    you must declared the inditifier..
    PM me , maybe i can help you..
    R.A Memory of Hacking : MPGH.NET

    Like Pheonx Eye's
    Like Pheonx Wing

    Pascal Hacking Coder



Similar Threads

  1. WR D3D Hook - =o - 03/22/07
    By Dave84311 in forum Hack/Release News
    Replies: 14
    Last Post: 10-06-2007, 09:59 AM
  2. tut How to hook tut 6
    By llvengancell in forum WarRock - International Hacks
    Replies: 1
    Last Post: 06-26-2007, 03:24 PM
  3. D3D hooking tutorial 5 i think
    By llvengancell in forum WarRock - International Hacks
    Replies: 7
    Last Post: 06-26-2007, 03:09 PM
  4. How can i hook the punkbuster?
    By TheRedEye in forum WarRock - International Hacks
    Replies: 5
    Last Post: 05-27-2007, 12:34 PM
  5. New Hacks Announced & Warrock DX Hook Update
    By Dave84311 in forum Hack/Release News
    Replies: 17
    Last Post: 03-02-2007, 03:54 PM