Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Combat Arms Hacks & Cheats › Combat Arms Hack Coding / Programming / Source Code › Combat Arms Coding Help & Discussion › [Question] FindPattern in CodeDemons D3D Base

[Question] FindPattern in CodeDemons D3D Base

Posts 1–5 of 5 · Page 1 of 1
Alessandro10
Alessandro10
[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");
#1 · edited 15y ago · 15y ago
seeplusplus
seeplusplus
Figure it out...
#2 · 15y ago
Amatowarrior
Amatowarrior
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.
#3 · 15y ago
WH
whit
Well actually mate its not the byte its the detours prolly..
#4 · 15y ago
BS
BSOD
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.
#5 · edited 15y ago · 15y ago
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

  • [QUESTION] Are retail codes pattern based?By iHack in WarRock - International Hacks
    14Last post 19y ago
  • D3D base error, Why im i getting this?By HazXoD3D in C++/C Programming
    5Last post 16y ago
  • [RELEASE]vb.net menue d3d baseBy GER-Domi. in CrossFire Hack Coding / Programming / Source Code
    12Last post 15y ago
  • [REQUEST] D3D BaseBy AeroMan in C++/C Programming
    0Last post 16y ago
  • CodeDemon's Base still dc'sBy eXaLtIc™ in Combat Arms Coding Help & Discussion
    12Last post 15y ago

Tags for this Thread

None