Results 1 to 5 of 5
  1. #1
    Alessandro10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,140
    Reputation
    215
    Thanks
    4,607
    My Mood
    Busy

    [Question] FindPattern in CodeDemons D3D Base

    The Basis of CodeDemon, giving this DC / Crash after a while, I think this is part of the code:

    Code:
    int D3Dinit(void) //Just a hook I used for testing, got it from Marko I believe.
    {
    	DWORD		hD3D, adr, *vtbl;
    
    	// wait for the d3dx dll
    	hD3D=0;
    	do {
    		hD3D = (DWORD)GetModuleHandle("d3d9.dll");
    		Sleep(10);
    	} while(!hD3D);
    	adr = FindPattern(hD3D, 0x128000, (PBYTE)"\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x00\x00\x89\x86", "xx????xx????xx");
    
    	if (adr) {
    		memcpy(&vtbl,(void *)(adr+2),4);
    		pReset	  = (oReset)	DetourFunction((PBYTE)vtbl[16]   , (PBYTE)Reset   ,5);
     		pEndScene = (oEndScene)	DetourFunction((PBYTE)vtbl[42], (PBYTE)EndScene,5);
     	}
    	return 0;
    }
    The problem of this DC in Bytes, I think lol

    Code:
    adr = FindPattern(hD3D, 0x128000, (PBYTE)"\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x00\x00\x89\x86", "xx????xx????xx");
    Last edited by Alessandro10; 11-06-2010 at 01:59 PM.

  2. #2
    seeplusplus's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Massachusetts
    Posts
    329
    Reputation
    8
    Thanks
    85
    Figure it out...
    Goals:
    Green = Done
    Blue = Getting Somewhere
    Red = Not Done
    • Mouse Grid
    • PTC Method
    • Trigger Bot

    I'm trying to think of more stuff!

  3. #3
    Amatowarrior's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    629
    Reputation
    14
    Thanks
    102
    My Mood
    Inspired
    Experitmenting, that's the keyword of coding. It's the source of Trial-and-Error. You will learn more if you do so. No one is going to help you do everything in life.
    Tools UNDETECTED - PATCHED [I will only have recent versions up!]
    Tapper V1.15: https://www.mpgh.net/forum/164-combat...r-v1-15-a.html
    Amato Inject V1.15: https://www.mpgh.net/forum/292-combat...t-v1-15-a.html

    Mods
    L96A1 - Arctic Wolf
    Super M416 CQB
    Super M16A3
    MW2 M92FS (M9)
    Starcraft 2 L96A1

    PVT VIP
    Aimbot: 65% (Have full source code)
    OPK: 100% (Uses Enemy Class)
    Telekill: 100% (Uses Enemy Class)
    Ghost Mode: 80% (In Semi-Stages)
    Super Bullets: 100% (Thanks Deadlinez/hahaz!)
    Menu Sprite: 100% (Thanks whit!)



  4. #4
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Well actually mate its not the byte its the detours prolly..

  5. #5
    BSOD's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    181
    Reputation
    31
    Thanks
    35
    Quote Originally Posted by Alessandro10 View Post
    The Basis of CodeDemon, giving this DC / Crash after a while, I think this is part of the code:

    Code:
    int D3Dinit(void) //Just a hook I used for testing, got it from Marko I believe.
    {
    	DWORD		hD3D, adr, *vtbl;
    
    	// wait for the d3dx dll
    	hD3D=0;
    	do {
    		hD3D = (DWORD)GetModuleHandle("d3d9.dll");
    		Sleep(10);
    	} while(!hD3D);
    	adr = FindPattern(hD3D, 0x128000, (PBYTE)"\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x00\x00\x89\x86", "xx????xx????xx");
    
    	if (adr) {
    		memcpy(&vtbl,(void *)(adr+2),4);
    		pReset	  = (oReset)	DetourFunction((PBYTE)vtbl[16]   , (PBYTE)Reset   ,5);
     		pEndScene = (oEndScene)	DetourFunction((PBYTE)vtbl[42], (PBYTE)EndScene,5);
     	}
    	return 0;
    }
    The problem of this DC in Bytes, I think lol

    Code:
    adr = FindPattern(hD3D, 0x128000, (PBYTE)"\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x00\x00\x89\x86", "xx????xx????xx");
    How is that the problem? That's a separate hook used for Test Environment. I believe in his base , he does not hook Cshell. Obviously you will crash without hooking it.
    Last edited by BSOD; 11-07-2010 at 12:21 PM.

Similar Threads

  1. [RELEASE]vb.net menue d3d base
    By GER-Domi. in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 12
    Last Post: 12-08-2010, 02:18 PM
  2. CodeDemon's Base still dc's
    By eXaLtIc™ in forum Combat Arms Coding Help & Discussion
    Replies: 12
    Last Post: 10-11-2010, 02:27 PM
  3. [REQUEST] D3D Base
    By AeroMan in forum C++/C Programming
    Replies: 0
    Last Post: 12-15-2009, 02:02 PM
  4. D3D base error, Why im i getting this?
    By HazXoD3D in forum C++/C Programming
    Replies: 5
    Last Post: 10-15-2009, 11:05 AM
  5. [QUESTION] Are retail codes pattern based?
    By iHack in forum WarRock - International Hacks
    Replies: 14
    Last Post: 08-04-2007, 03:51 PM