Page 1 of 2 12 LastLast
Results 1 to 15 of 26
  1. #1
    Pingo's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    687
    Reputation
    24
    Thanks
    865
    My Mood
    Blah

    New D3D Hook & Wireframe Example

    Made it about 30min ago, not the same hook i used in the hack i released.
    I left out one Include and moved two variables down so you can't just C&P.

    All the debugging and the hook was coded by me.
    I had a look online and couldn't find this one.

    Two downsides..
    -Im a win7 user so the byte pattern is for win7, xp users will need add their own pattern.
    -If you're one of those who can't inject a dll without getting a message, even if it contains no functions,
    i included my dll patcher.
    One file is a patcher only, the other also injects.

    If you create a hack and want to release it, put the patcher in the folder with the dll and run it.
    The dll should be good to release now.

    Do the same for the other file besides click the inject button then run CF.

     
    Code:
    #include <Windows.h>
    
    #pragma region D3D Stuff Here
    
    void Derp()
    { 
    	IDirect3DVertexBuffer9* pStreamData = NULL;
                  UINT pOffsetInBytes , pStride;
                  pDevice->GetStreamSource(0,&pStreamData,&pOffsetInBytes,&pStride);
    
    	if (pStride == 24 || pStride == 28)//Wireframe Example
    	{
                      pDevice->SetRenderState(D3DRS_FILLMODE,D3DFILL_WIREFRAME);
    	}
    }
    
    #pragma endregion
    
    #pragma region Mem Scanner/Detour/Hook
    bool Compare(const BYTE* pData, const BYTE* bMaskara, const char* szMaskara)
    {
    	for(;*szMaskara;++szMaskara,++pData,++bMaskara)
    		if(*szMaskara=='x' && *pData!=*bMaskara ) 
    			return false;
    	return (*szMaskara) == NULL;
    }
    DWORD FindPattern(DWORD dwAddress,DWORD dwLen,BYTE *bMask,char * szMask)
    {
    	 for (DWORD x = 0; x < dwLen; x++)
    		if( Compare( ( BYTE * )( dwAddress + x ), bMask, szMask ) )  
    		return ( DWORD )( dwAddress + x );
    	return 0;
    }
    void Detour(BYTE *pAddress, DWORD dwJumpTo, DWORD dwLen)
    {
        DWORD dwOldProtect, dwBkup, dwRelAddr;
        VirtualProtect(pAddress, dwLen, PAGE_EXECUTE_READWRITE, &dwOldProtect);
        dwRelAddr = (DWORD) (dwJumpTo - (DWORD) pAddress) - 5;
        *pAddress = 0xE9;
        *((DWORD *)(pAddress + 1)) = dwRelAddr;
        for(DWORD x = 0x5; x < dwLen; x++) *(pAddress + x) = 0x90;
        VirtualProtect(pAddress, dwLen, dwOldProtect, &dwBkup);    
    }
    __declspec( naked )VOID MidHook()
    {
    	__asm
    	{
    		MOV EDI,[EBP+10h]
    		MOV EAX, DWORD PTR SS:[EBP + 8]
    		MOV DWORD PTR DS:[pDevice], EAX
    		CALL Derp
    		CMP EDI,20h
    		JMP NxtInst
    	}
    }
    #pragma endregion
    
    #pragma region Storage
    LPDIRECT3DDEVICE9 pDevice;
    DWORD NxtInst;
    #pragma endregion
    
    #pragma region Find Address
    
    DWORD GetD3D()
    {
    	//No Windows 8 or xp byte pattern. I dont have access to those OS...
        DWORD hD3D = (DWORD)GetModuleHandle("d3d9");
      	//Windows 7 Scan d3d9.dll+EEFA
    	DWORD DIPD3D9;
    	if ((DIPD3D9 = FindPattern(hD3D,0x128000,( PBYTE )"\x8B\x7D\x10\x83\xFF\x20","xxxxxx")))
    	{
           NxtInst = DIPD3D9 + 6;
           return DIPD3D9;
    	}
      return 0;
    }
    
    #pragma endregion
    
    #pragma region DllMain/Thread
    
    void Hooker()
    {
    	while (GetModuleHandle("d3d9") == NULL)
    	Sleep(10);
    	DWORD DIPD3D9;
    	if (DIPD3D9 = GetD3D()) Detour((PBYTE)DIPD3D9, (DWORD)MidHook, 6);
    }
    
    BOOL WINAPI DllMain(HMODULE dHandle, DWORD nReason, LPVOID Reserved)
    {
    	if(nReason == DLL_PROCESS_ATTACH)
    	{
    		DisableThreadLibraryCalls(dHandle);
    		CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hooker, NULL, NULL, NULL);
    	}
    	return TRUE;
    }
    
    #pragma endregion


     
    [IMG]https://i203.photobucke*****m/albums/aa29/Baxter_esa/screen_zpsce46b09c.png[/IMG]


    Virus Total
    Jotti

    I'm not a D3D pro nor a C++ one, so if you see something wrong or noobish, dont scream at me
    <b>Downloadable Files</b> Downloadable Files

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

    159753cado25 (10-14-2016),599965128 (08-04-2013),6ixth (04-08-2013),a1323142 (05-11-2013),a390682381 (01-03-2018),a506096076 (11-01-2014),akudewa (06-06-2013),aladin111 (02-04-2013),AlexandraVera1991 (09-30-2022),alexvoinov1 (04-27-2013),ALI.KOGR (05-03-2013),angellhell (01-22-2016),badr alshimy (04-08-2013),bianss (01-23-2017),bogdanalex (02-06-2013),cf12345678 (05-02-2013),cmc5415 (09-22-2014),DarylPL01 (02-06-2013),david90 (05-13-2013),dewdevildead (09-17-2015),djzou123 (03-04-2013),eloading (02-17-2013),emem13 (02-04-2013),emyeusss7 (05-04-2013),estebanxiro1 (04-08-2013),faiz466 (02-22-2018),Fly3r (02-02-2013),fufyn~* (02-09-2013),gabriel4009 (02-11-2013),gentrayser (02-10-2013),GhostBehinYou (12-09-2017),gzsgcsv5 (12-24-2014),Hacker Fail (02-02-2013),hamzah2005 (02-03-2013),hilbert (03-25-2013),homerssi (12-17-2014),houxinff (02-23-2018),HumanWare (05-02-2013),ihabsick123 (05-30-2013),iNational (11-12-2017),john045 (06-23-2019),juny0102 (05-09-2013),kingo0o (05-03-2013),kitski (02-17-2013),kocka9 (04-01-2013),lhvip (06-29-2015),liujinze (07-21-2014),lolboy3D (04-12-2013),malvaro20 (04-08-2013),mamo007 (02-02-2013),marcio11 (05-23-2013),maxxell (02-09-2013),medarov2 (05-22-2013),MelvinFR85 (01-30-2016),mendbest (10-12-2015),Mesterano (02-09-2013),mido20099 (02-09-2013),mohamedadv (05-12-2013),mohamednsr (02-02-2013),momoibr (05-15-2013),Nanko23 (04-06-2013),nonglin (03-21-2014),nova0001 (03-06-2013),Overlord93 (11-22-2015),pakhsssss (05-01-2013),pamidoras (04-28-2013),phantomandy (02-09-2013),pointer3d (06-23-2015),poki97 (02-09-2013),ppspssss (07-06-2013),pr0bohol (05-12-2013),Problem ? (02-09-2013),pumpin (02-12-2013),rajawelas (04-15-2013),rebildegwapo (02-02-2013),remzkee0903 (02-09-2013),rhua0102 (05-05-2013),roma9823 (02-10-2013),ryanpaolo33 (04-18-2013),salamunited3 (06-19-2022),seahongheng (12-01-2014),spettah (02-03-2013),syyh (05-19-2013),tengkudanish (03-22-2015),TheGe2k (05-25-2021),themacrik (02-09-2013),tianz (02-02-2013),titrem (02-02-2013),tylafon26 (02-08-2013),umesh321 (03-10-2018),vargacata (02-12-2013),wangxin123 (02-09-2013),Want3dro01 (02-10-2013),whyliketat (02-24-2013),xfan2012 (08-05-2014),xMrProSniper (04-07-2018),Xplorer86 (02-21-2017),yueying (11-28-2013),ZephyrusX (08-11-2018),zolferno (02-10-2013),[NS]-GLiTcH (02-09-2013),]I[Shine (05-06-2013)

  3. #2
    Xkickme's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    2,790
    Reputation
    216
    Thanks
    4,560
    My Mood
    Devilish
    THANKS FOR SHARE
     
    THANKS/me IF I HELP


     

    Buy : farm bot from razvyx he go first trusted member .

    Trade:acc with Gale2008 he trusted member with mm approved.

    I BE MM FOR kennyltam AND Ticher

    Trade:ACC WITH kennyltam REALLY TRUSTED MEMBER +1 VOUCH NO MM

    sell:ACC FORM AccountforSale REALLY AWESOME +1 VOUCH WITHOUT MM

    BUY:ACC FROM Jannat Mahid REALLY TRUSTED +1 VOUCH WITHOUT MM

    BUY:ACC FROM NotAGMGhost X2 AWESOME ONE +1 VOUCH WITHOUT MM IT WAS VERY FAST

    BUY :ACC FROM Extreme_XB REALLY AWESOME +1 VOUCH MM (APPROVED.)

    BUY:ACC FROM |Master of Puppets WITH MM (HUGO BOSS) NICE TRADE +1

    BUY:ACC FROM -blaaze. GOOD TRADE +1 VOUCH FOR HIM .

    BUY:ACC Extoine TRUST MEMBER VOUCH +1 I WENT FIRST

    BUY:ACC Kone. TRUST MEMBER VOUCH +1 I WENT FIRST NICE TRADE

    BUY:ACC Xmen* TRUST MEMBER VOUCH +1 QUICKLY TRADE AND NICE

    BUY:ACC OmarMaged I WENT FIRST TRUSTED VOUCH +1

    GIVE AWAY: MY ACC FREE WITH ALL INFO TO dorinelbegu

     

    NotAGMGhost.

  4. #3
    Biesi's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    4,993
    Reputation
    374
    Thanks
    8,808
    My Mood
    Twisted
    Approved .

  5. #4
    bandi12's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    562
    Reputation
    30
    Thanks
    318
    My Mood
    Yeehaw
    @Pingo i can give you access to XP OS if you wanna search for XP
     




    MY Latest Aimbot on : Orbital Space (Video Comming Soon)'





     

    - @UltraPGNoob
    - @dicky88smd
    - @giniyat101

  6. #5
    Pingo's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    687
    Reputation
    24
    Thanks
    865
    My Mood
    Blah
    Quote Originally Posted by bandi12 View Post
    @Pingo i can give you access to XP OS if you wanna search for XP
    I PMed you my email

  7. #6
    -Dreamer-'s Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    1
    6 errors in the code!
    1 IntelliSense: идентификатор "IDirect3DVertexBuffer9" не определен c:\users\singatulin\documents\visual studio 2010\projects\wallhack\wallhack\dllmain.cpp 7 2 WallHack
    2 IntelliSense: идентификатор "pStreamData" не определен c:\users\singatulin\documents\visual studio 2010\projects\wallhack\wallhack\dllmain.cpp 7 26 WallHack
    3 IntelliSense: идентификатор "D3DRS_FILLMODE" не определен c:\users\singatulin\documents\visual studio 2010\projects\wallhack\wallhack\dllmain.cpp 13 43 WallHack
    4 IntelliSense: идентификатор "D3DFILL_WIREFRAME" не определен c:\users\singatulin\documents\visual studio 2010\projects\wallhack\wallhack\dllmain.cpp 13 58 WallHack
    5 IntelliSense: идентификатор "LPDIRECT3DDEVICE9" не определен c:\users\singatulin\documents\visual studio 2010\projects\wallhack\wallhack\dllmain.cpp 59 1 WallHack
    6 IntelliSense: аргумент типа "const char *" несовместим с параметром типа "LPCWSTR" c:\users\singatulin\documents\visual studio 2010\projects\wallhack\wallhack\dllmain.cpp 68 41 WallHack

  8. #7
    CoderCf's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Posts
    143
    Reputation
    10
    Thanks
    9
    Need to Include the D3D9.dll and D3Dx9.dll like :

    #include <d3d9.h>
    #include <d3dx9.h>

    #pragma comment(lib, "d3d9.lib")
    #pragma comment(lib,"d3dx9.lib")

    and you have to Include the Dicetx in your Project in the libory ....

  9. #8
    -Dreamer-'s Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    1
    1 IntelliSense: не удается открыть источник файл "d3dx9.h" c:\users\singatulin\documents\visual studio 2010\projects\wallhack\wallhack\dllmain.cpp 3 1 WallHack

  10. #9
    giniyat101's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Not telling.
    Posts
    1,935
    Reputation
    130
    Thanks
    1,380
    My Mood
    Dead
    Quote Originally Posted by -Dreamer- View Post
    1 IntelliSense: не удается открыть источник файл "d3dx9.h" c:\users\singatulin\documents\visual studio 2010\projects\wallhack\wallhack\dllmain.cpp 3 1 WallHack
    do you have got directx sdk installed?


     



    [img]https://i43.photobucke*****m/albums/e367/DeteSting/Steam-update.gif[/img]

  11. #10
    remzkee0903's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Philippines
    Posts
    294
    Reputation
    11
    Thanks
    368
    My Mood
    Angelic
    Is this scrambled source still "undetected"?
    -SiLent But DeadLy-

  12. #11
    Intellectual's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    GDI
    Posts
    5,389
    Reputation
    785
    Thanks
    16,091
    My Mood
    Yeehaw
    nice job

  13. #12
    I love myself
    나도 너를 사랑해

    Former Staff
    Premium Member
    Jhem's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Location
    167,646,447
    Posts
    5,150
    Reputation
    1220
    Thanks
    7,394
    My Mood
    Stressed
    thanks for this...

  14. #13
    RobinC's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    Mpgh.exe
    Posts
    1,768
    Reputation
    69
    Thanks
    3,697
    My Mood
    Aggressive
    Works fine .
    But I prefer my own hook.

  15. #14
    grannycrazy's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Beetlejuice
    Posts
    286
    Reputation
    10
    Thanks
    55
    My Mood
    Angelic
    Good to learn from!
    Thanks



  16. #15
    speedy7's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    1
    can someone help me to make this work with Windows 8? I tried this but the game crashed:

    Code:
    //win7
    //if ((DIPD3D9 = FindPattern(hD3D,0x128000,( PBYTE )"\x8B\x7D\x10\x83\xFF\x20","xxxxxx")))
    
    //win8
    if ((DIPD3D9 = FindPattern(hD3D,0x128000,( PBYTE )"\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x00\x00\x89\x86","xx????xx????xx")))
    {
           NxtInst = DIPD3D9 + 6;
           return DIPD3D9;
    }

Page 1 of 2 12 LastLast

Similar Threads

  1. [Detected] Standard New CyberRazzor D3D Hook after Update [18.05.2011] [Version:Normal]
    By raptors- in forum WarRock - International Hacks
    Replies: 11
    Last Post: 05-19-2011, 07:33 PM
  2. [Release] New Warrock Public D3D[HOOK]
    By IHelper in forum WarRock - International Hacks
    Replies: 20
    Last Post: 11-07-2009, 01:19 AM
  3. [Release] IHelpers New Public Hook!!!!!!!!!!!!D3D
    By IHelper in forum WarRock - International Hacks
    Replies: 26
    Last Post: 10-16-2009, 12:53 AM
  4. D3d Hook example
    By XGelite in forum C++/C Programming
    Replies: 4
    Last Post: 10-05-2009, 04:05 PM
  5. D3d Hook example
    By XGelite in forum C++/C Programming
    Replies: 2
    Last Post: 10-04-2009, 10:25 PM