View Poll Results: Usefull

Voters
67. This poll is closed
  • Yes UseFul

    45 67.16%
  • Not UseFull

    22 32.84%
Page 1 of 4 123 ... LastLast
Results 1 to 15 of 57
  1. #1
    Dead(H)ell's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Location
    Earth
    Posts
    471
    Reputation
    37
    Thanks
    715
    My Mood
    Flirty

    How To Make A D3D Hook [ Complete Tutorial ]

    First of all i m not like those who afraid on giving a hook..i don't care about this i care bout helping people

    First of all include those [they may have smth rong if any corrections i suggest @Swag to tell me]
    Code:
    #include <windows.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <d3d9.h>
    #include <d3dx9.h>

    okay first lets start naked function
    Code:
    DWORD* DIP_hook = NULL;
    DWORD DIP_return = NULL;
    
    bool  wallhack = true;
    
    void myDIP(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE Type,INT BaseVertexIndex,UINT MinVertexIndex,UINT NumVertices,UINT startIndex,UINT primCount)
    {
        IDirect3DVertexBuffer9* pStreamData = NULL;
        UINT iOffsetInBytes,iStride;
        pDevice->GetStreamSource(0,&pStreamData,&iOffsetInBytes,&iStride);
    
        if(wallhack)
        if ((iStride==40)||(iStride==44))
        {
            pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE );
            pDevice->SetRenderState(D3DRS_ZFUNC,   D3DCMP_NEVER);
        }
    }
    
    _declspec(naked) void dwmyDIP()
    {
        __asm
        {
            //Call myDIP
            MOV EAX, DWORD PTR [ESP+40];
            PUSH EAX;
            MOV EAX, DWORD PTR [ESP+40];
            PUSH EAX;
            MOV EAX, DWORD PTR [ESP+40];
            PUSH EAX;
            MOV EAX, DWORD PTR [ESP+40];
            PUSH EAX;
            MOV EAX, DWORD PTR [ESP+40];
            PUSH EAX;
            MOV EAX, DWORD PTR [ESP+40];
            PUSH EAX;
            MOV EAX, DWORD PTR [ESP+40];
            PUSH EAX;
            CALL myDIP;
            ADD ESP, 28;
    Then Restore EAX original value:
    Code:
    MOV EAX,DWORD PTR FS:[0];
    Then put back the Original code:
    Code:
    PUSH EAX;
            SUB ESP,0x20;
    Then Return ur JMP Back:
    Code:
    JMP DIP_return;
    Then Close ur naked Function:
    Code:
        }
    }
    Then We Use The bCompare() Method:
    Code:
    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;
    }
    Then We Find The Pattern For Our Wall Hack:
    Code:
    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;
    }
    Then We start our 5 Bytes Hunting:
    Code:
    void MakeJMP(BYTE *pAddress, DWORD dwJumpTo, DWORD dwLen)
    {
        DWORD dwOldProtect, dwBkup, dwRelAddr;
    Then we give the paged memory read/write permissions:
    Code:
        VirtualProtect(pAddress, dwLen, PAGE_EXECUTE_READWRITE, &dwOldProtect);
    Then We calculate the distance between our address and our target location and subtract the 5bytes, which is the size of the JMP:
    Code:
        dwRelAddr = (DWORD) (dwJumpTo - (DWORD) pAddress) - 5;
    Then We overwrite the byte at pAddress with the jmp opcode (0xE9):
    Code:
        *pAddress = 0xE9;

    Then We overwrite the next 4 bytes (which is the size of a DWORD) with the dwRelAddr:

    Code:
        *((DWORD *)(pAddress + 0x1)) = dwRelAddr;
    Then we overwrite the remaining bytes with the NOP opcode (0x90):
    Code:
        for(DWORD x = 0x5; x < dwLen; x++) *(pAddress + x) = 0x90;
    Then we restore the paged memory permissions saved in dwOldProtect:
    Code:
        VirtualProtect(pAddress, dwLen, dwOldProtect, &dwBkup);
    Then We close the JMPHook:
    Code:
        return;
    
    }
    Then Create Our Hack Thread:thx to @giniyat101 for the wall hack and to @Coder[Vb10e] for telling me how to put the wallhack
    Code:
    void WallHack()
    {
        LoadLibraryA("d3d9.dll");
        DWORD D3D9, adr, *VTable;
        do
        {
            D3D9 = (DWORD)LoadLibraryA("d3d9.dll");
            Sleep(100);
        } while (D3D9 == NULL);
    
        adr = FindPattern(D3D9, 0x128000, (PBYTE)"\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x00\x00\x89\x8", "xx????xx????xx");
        if (adr) {
            memcpy(&VTable,(void *)(adr+2),4);
    
        MakeJMP((BYTE *)0x4FF51658, (DWORD)dwmyDIP, 0x6);
        DWORD dwJMPback = 0x4FF51658;
        }
    }
    Then Finally The DLLMAIN:
    Code:
    //you put one ur self :)


    credits to:
    @giniyat101
    @Brimir
    @Coder[Vb10e]

    @Scata
    @Royku
    @Hero
    @Jigsaw
    worthes a sticky again?

  2. The Following 13 Users Say Thank You to Dead(H)ell For This Useful Post:

    -iFaDy..* (03-29-2012),Abdelrahman2051 (11-25-2019),amro3000 (06-21-2012),Fly3r (03-28-2012),FNV (05-23-2012),j4mp3r (04-12-2015),jeroldcamacho (09-22-2014),mohamedmido3 (09-09-2012),mslol (06-18-2012),nunox10 (04-12-2012),TheBeast13 (04-19-2012),willcpc2 (04-07-2012),zizomosad (05-29-2012)

  3. #2
    Austin's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Great White North
    Posts
    30,484
    Reputation
    6104
    Thanks
    8,326
    My Mood
    Lurking
    GJ, and I've talked with hero. Not gonna sticky, you already have one. If you want this stickied combine the other one and this thread.




    VIP Support // May 2011
    CF Minion // January 2012
    Newsforce // August 2012
    Minion+ // March 2013
    Moderator // August 2014
    Former Staff // January 2015
    General Minion // July 2015
    Publicist // December 2015





  4. #3
    Dead(H)ell's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Location
    Earth
    Posts
    471
    Reputation
    37
    Thanks
    715
    My Mood
    Flirty
    Quote Originally Posted by Scata View Post
    GJ, and I've talked with hero. Not gonna sticky, you already have one. If you want this stickied combine the other one and this thread.
    ok,i ll think bout that and ty


    Quote Originally Posted by Scata View Post
    GJ, and I've talked with hero. Not gonna sticky, you already have one. If you want this stickied combine the other one and this thread.
    @Scata remove the first sticky and stick this one its better than the first & not easy to get
    Last edited by Austin; 03-28-2012 at 08:22 PM.

  5. #4
    DeepShyt's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    187
    Reputation
    10
    Thanks
    6
    Quote Originally Posted by Dead(H)ell View Post


    @Scata remove the first sticky and stick this one its better than the first & not easy to get
    Can you help me make one d3d hook please.. my msn is deepshytmpgh@hotmail.com

  6. #5
    Reflex-'s Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    192.168.1.01
    Posts
    6,625
    Reputation
    584
    Thanks
    2,267
    My Mood
    Dead
    Quote Originally Posted by DeepShyt View Post
    Can you help me make one d3d hook please.. my msn is deepshytmpgh@hotmail.com
    If you follow the Tutorial.

  7. #6
    Coder[Vb10e]'s Avatar
    Join Date
    Jul 2011
    Gender
    male
    Location
    Crossfire Alaska
    Posts
    1,577
    Reputation
    -10
    Thanks
    349
    My Mood
    Fine
    @Dead(H)ell (i hope you did not stoled my hook, cause thats the string i made) good tutorial btw

  8. #7
    CFhackerfree's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    Germany
    Posts
    801
    Reputation
    22
    Thanks
    4,417
    My Mood
    Happy
    LOL i have a Hook with DIp Pointer and my 2. hook without any pointers ^^
    nice job
    Last edited by CFhackerfree; 03-29-2012 at 06:28 AM.

  9. #8
    Skrillex's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    701
    Reputation
    103
    Thanks
    4,749
    My Mood
    Fine
    nice good job

  10. #9
    -iFaDy..*'s Avatar
    Join Date
    Mar 2012
    Gender
    male
    Location
    C++/Mpgh.net/CF/devenv.exe
    Posts
    201
    Reputation
    22
    Thanks
    87
    My Mood
    Cool
    Good Job
    Need Any Help in C++/CrossFire? Just Pm me.

    My FB : Www.FaceBook.com/FaDiAtefAhlawy

    My Yahoo : Dodo_CrazyChat@yahoo.com

    My Hotmail : Dodo_CrazyChat@hotmail.com

  11. #10
    Swag's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Location
    Netherlands
    Posts
    1,619
    Reputation
    19
    Thanks
    1,865
    My Mood
    Amused
    Very good job

  12. #11
    Dead(H)ell's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Location
    Earth
    Posts
    471
    Reputation
    37
    Thanks
    715
    My Mood
    Flirty
    Quote Originally Posted by Coder[Vb10e] View Post
    @Dead(H)ell (i hope you did not stoled my hook, cause thats the string i made) good tutorial btw
    no i swear i didnt..i just used ur hok to update the addies but the hook is from another forum dats wy i credited u

  13. #12
    Coder[Vb10e]'s Avatar
    Join Date
    Jul 2011
    Gender
    male
    Location
    Crossfire Alaska
    Posts
    1,577
    Reputation
    -10
    Thanks
    349
    My Mood
    Fine
    Quote Originally Posted by Dead(H)ell View Post


    no i swear i didnt..i just used ur hok to update the addies but the hook is from another forum dats wy i credited u
    ok , nice tut it helps many pp

  14. #13
    MysteryCoder's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    31
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Coder[Vb10e] View Post


    ok , nice tut it helps many pp
    Bro I Need Your Help, I Think Hugo Send You A Message, So Please Can You Help Me?

    ---------- Post added at 07:31 PM ---------- Previous post was at 07:22 PM ----------

    Cool Job Dude

  15. #14
    ramo's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    A.R.E
    Posts
    291
    Reputation
    82
    Thanks
    4,076
    My Mood
    Blah
    Perfect tut - WOW Job
    @Dead(H)ell open ur mail

  16. #15
    goold1's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    152
    Reputation
    10
    Thanks
    76
    My Mood
    Busy
    i can use it for d3d menu ?
    InComing V6 GoldHack

Page 1 of 4 123 ... LastLast

Similar Threads

  1. [Tutorial] How To Make A D3D Menu in VB.NET for CF[Doesnt Require A Hook]
    By Dead(H)ell in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 68
    Last Post: 08-04-2012, 10:48 AM
  2. [Tutorial] -How to make .dll[Vtable Hook]-
    By gokhanw in forum All Points Bulletin Reloaded Hacks
    Replies: 16
    Last Post: 10-06-2011, 09:22 AM
  3. [Tutorial] How to Make a D3D Crosshair
    By sam22 in forum Alliance of Valiant Arms (AVA) Hacks & Cheats
    Replies: 7
    Last Post: 11-29-2010, 11:13 AM
  4. How To Make Warrock D3d Menu Hack with all hack functions
    By srinuv in forum Programming Tutorial Requests
    Replies: 5
    Last Post: 09-15-2010, 08:12 AM
  5. How to make skins in CoD:MW2 tutorial on PC
    By ChrisOoO in forum Call of Duty Modern Warfare 2 Discussions
    Replies: 8
    Last Post: 05-08-2010, 02:34 AM