Page 1 of 3 123 LastLast
Results 1 to 15 of 36
  1. #1
    -[I]fLuX's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    342
    Reputation
    112
    Thanks
    3,923
    My Mood
    Bored

    D3D9 Hook (WallHack)

    Hey Guys
    i want to share my d3d hook. I don't need this hook, thats why i am sharing this code. With this hook you can make WallHack, FullBright....

    So i don't share all my code only the main part. This isn't a Tutorial and only for guys who is knowing c++....

    Have Fun!

    WallHack (I think all of you can make this )
    Code:
    void WallHackD3D(LPDIRECT3DDEVICE9 pDevice)
    {
    	IDirect3DVertexBuffer9* pStreamData = NULL; 
    	UINT iOffsetInBytes,iStride;  
    	pDevice->GetStreamSource(0,&pStreamData,&iOffsetInBytes,&iStride); 
    
    	if (iStride == 44)
    	{
    		pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
    	}
    }
    The MidFunction
    Code:
    DWORD ret_MyMid;
    
    _declspec(naked) void MyMid()
    {
    	static LPDIRECT3DDEVICE9 pDevice;
    	__asm 
    	{
    		MOV EDI,EDI
    		PUSH EBP
    		MOV EBP,ESP
    		MOV EAX,DWORD PTR [EBP + 0x8]
    		MOV pDevice,EAX
    	}
    	WallHackD3D(pDevice);
    	__asm 
    	{
    		JMP ret_MyMid
    	}
    }
    and here you have the Main part

    Code:
    void Hook ()
    {
    	DWORD hD3D;
    		
    	do {
    		hD3D = (DWORD)LoadLibraryA("d3d9.dll");
    	} while(!hD3D);
    	
    	DWORD Address = FindPattern(hD3D, 0x128000,(PBYTE)"\x8B\xFF\x55\x8B\xEC\x6A\xFF\x68\x00\x00\x00\x00\x64\xA1\x00\x00\x00\x00\x50\x83\xEC\x10\x53\x56\x57\xA1\x00\x00\x00\x00","xxxxxxxx????xx????xxxxxxxx????");
    	if(Address)
    	{
    		ret_myMid = Address + 5;
    		MakeJMP((PBYTE)Address,(DWORD)MyMid,5);
    	}
    }
    •Contributor: June, 29th 2013


    My Sources:
    Injector
    Memory Base
    D3D9 Hook
    Hooked Memory Base




  2. The Following 8 Users Say Thank You to -[I]fLuX For This Useful Post:

    6ixth (02-18-2013),BEBOSAMIR (07-09-2013),grannycrazy (02-20-2013),Hacker Fail (03-01-2013),IliasR (05-20-2013),Oleg(96) (03-06-2013),Patryk65400 (05-22-2013),remzkee0903 (02-18-2013)

  3. #2
    6ixth's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    3,033
    Reputation
    661
    Thanks
    19,907
    nice work !

  4. The Following User Says Thank You to 6ixth For This Useful Post:

    Nine11 (02-12-2017)

  5. #3
    Margherita's Avatar
    Join Date
    Jan 2011
    Gender
    female
    Posts
    11,299
    Reputation
    783
    Thanks
    1,287
    My Mood
    Bashful
    Nice work if you wrote this
    PM Me | VM Me | Rules

    MARGHERITA

  6. #4
    remzkee0903's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Philippines
    Posts
    294
    Reputation
    11
    Thanks
    368
    My Mood
    Angelic
    @-[I]fLuX, Still detected by xtrap sir.. I'm using C++ 2010 Express and DirectX SDK June 2010. Someone told me that the version that I've use is the one that is detected by xtrap, Is this true? BTW, What version did you used? Thanks..
    -SiLent But DeadLy-

  7. #5
    sierra123's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    Arad
    Posts
    3
    Reputation
    10
    Thanks
    0
    My Mood
    Hot
    Nice work !

  8. #6
    mistermigas's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    aonde saco esse hack ?

  9. #7
    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,395
    My Mood
    Stressed
    Quote Originally Posted by -[I]fLuX View Post
    Hey Guys
    i want to share my d3d hook. I don't need this hook, thats why i am sharing this code. With this hook you can make WallHack, FullBright....

    So i don't share all my code only the main part. This isn't a Tutorial and only for guys who is knowing c++....

    Have Fun!

    WallHack (I think all of you can make this )
    Code:
    void WallHackD3D(LPDIRECT3DDEVICE9 pDevice)
    {
    	IDirect3DVertexBuffer9* pStreamData = NULL; 
    	UINT iOffsetInBytes,iStride;  
    	pDevice->GetStreamSource(0,&pStreamData,&iOffsetInBytes,&iStride); 
    
    	if (iStride == 44)
    	{
    		pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
    	}
    }
    The MidFunction
    Code:
    DWORD ret_MyMid;
    
    _declspec(naked) void MyMid()
    {
    	static LPDIRECT3DDEVICE9 pDevice;
    	__asm 
    	{
    		MOV EDI,EDI
    		PUSH EBP
    		MOV EBP,ESP
    		MOV EAX,DWORD PTR [EBP + 0x8]
    		MOV pDevice,EAX
    	}
    	WallHackD3D(pDevice);
    	__asm 
    	{
    		JMP ret_MyMid
    	}
    }
    and here you have the Main part

    Code:
    void Hook ()
    {
    	DWORD hD3D;
    		
    	do {
    		hD3D = (DWORD)LoadLibraryA("d3d9.dll");
    	} while(!hD3D);
    	
    	DWORD Address = FindPattern(hD3D, 0x128000,(PBYTE)"\x8B\xFF\x55\x8B\xEC\x6A\xFF\x68\x00\x00\x00\x00\x64\xA1\x00\x00\x00\x00\x50\x83\xEC\x10\x53\x56\x57\xA1\x00\x00\x00\x00","xxxxxxxx????xx????xxxxxxxx????");
    	if(Address)
    	{
    		ret_myMid = Address + 5;
    		MakeJMP((PBYTE)Address,(DWORD)MyMid,5);
    	}
    }
    ah???

    but @VI Already Post this...

    here

    https://www.mpgh.net/forum/242-crossf...-base-dip.html

    but.....thanks again!

  10. #8
    -[I]fLuX's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    342
    Reputation
    112
    Thanks
    3,923
    My Mood
    Bored
    Quote Originally Posted by Jheamuel123 View Post
    ah???

    but @VI Already Post this...

    here

    https://www.mpgh.net/forum/242-crossf...-base-dip.html

    but.....thanks again!
    no... look at the address he is using another address then me....
    •Contributor: June, 29th 2013


    My Sources:
    Injector
    Memory Base
    D3D9 Hook
    Hooked Memory Base




  11. #9
    [H]aaBX's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    277
    Reputation
    23
    Thanks
    1,085
    My Mood
    Asleep
    Quote Originally Posted by -[I
    fLuX;7572002]no... look at the address he is using another address then me....
    You just modified this shit a bit.

    Thanks @Scynix for this awesome picture
     


  12. #10
    RobinC's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    Mpgh.exe
    Posts
    1,768
    Reputation
    69
    Thanks
    3,697
    My Mood
    Aggressive
    You just modified it a litlle bit...But nice work anyway, this is a source code that noobs can't leech .

  13. #11
    Intellectual's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    GDI
    Posts
    5,389
    Reputation
    785
    Thanks
    16,091
    My Mood
    Yeehaw
    Quote Originally Posted by RobinC View Post
    You just modified it a litlle bit...But nice work anyway, this is a source code that noobs can't leech .

    Quote Originally Posted by [H
    aaBX;7572021]You just modified this shit a bit.
    you just copy + pasted what Habx said , that means you have no clue about that source code

  14. #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,395
    My Mood
    Stressed
    Quote Originally Posted by -[I]fLuX View Post
    no... look at the address he is using another address then me....
    ahhh ok

  15. #13
    RobinC's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    Mpgh.exe
    Posts
    1,768
    Reputation
    69
    Thanks
    3,697
    My Mood
    Aggressive
    Quote Originally Posted by Exicsion View Post




    you just copy + pasted what Habx said , that means you have no clue about that source code
    me or flux

  16. #14
    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,395
    My Mood
    Stressed
    Quote Originally Posted by -[I]fLuX View Post
    no... look at the address he is using another address then me....
    i try to find this in olly..

    Code:
    8B FF 55 8B EC 6A FF 68 ?? ?? ?? ?? 64 A1 ?? ?? ?? ?? 50 83 EC 10 53 56 57 A1 ?? ?? ?? ??
    but can't find...XD

  17. #15
    V I's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    Jewish land
    Posts
    1,440
    Reputation
    272
    Thanks
    2,442
    My Mood
    Aggressive
    Quote Originally Posted by Jheamuel123 View Post
    i try to find this in olly..

    Code:
    8B FF 55 8B EC 6A FF 68 ?? ?? ?? ?? 64 A1 ?? ?? ?? ?? 50 83 EC 10 53 56 57 A1 ?? ?? ?? ??
    but can't find...XD
    Are you retarded or what ?

Page 1 of 3 123 LastLast

Similar Threads

  1. Writememory d3d9 hook
    By deve48 in forum C++/C Programming
    Replies: 2
    Last Post: 03-30-2011, 01:00 PM
  2. [Release] NEW Public D3D9 Hook [22/07/10]
    By D3athBringer in forum WarRock - International Hacks
    Replies: 158
    Last Post: 07-25-2010, 11:52 PM
  3. D3D9 Hook problem [solved]
    By why06 in forum C++/C Programming
    Replies: 12
    Last Post: 03-28-2010, 08:02 PM
  4. D3D9 hook undetected
    By systemfiles in forum PunkBuster
    Replies: 1
    Last Post: 11-28-2009, 01:12 AM
  5. D3D9 Hooking
    By Someguytwo in forum C++/C Programming
    Replies: 9
    Last Post: 01-18-2008, 10:31 AM