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 › CrossFire Hacks & Cheats › CrossFire Latin America / Brazil Hacks › CrossFire Latin America / Brazil Hack Source Code › Pattern Scan Fail :c

UnhappyPattern Scan Fail :c

Posts 1–3 of 3 · Page 1 of 1
CaET
CaET
Pattern Scan Fail :c
Eu consigo usar uma array no C.E normalmente:

https://i.imgur.com/8Naa5XB.png

?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? DB 0F 49 40 35 FA 8E 3C ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? DB 0F C9

\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x DB\x0F\x49\x40\x35\xFA\x8E\x3C\x00\x00\x00\x00\x00 \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x 00\x00\x00\xDB\x0F\xC9

????????????xxxxxxxx????????????????????xxx

https://i.imgur.com/dtZSGCq.png


Code:
const bool bDataCompare(const BYTE *pData, const BYTE *bMask, const char *szMask)
{
	for (; *szMask; ++szMask, ++pData, ++bMask)
		if (*szMask == 'x' && *pData != *bMask)
			return 0;
	return (*szMask) == NULL;
}

DWORD FindPattern(DWORD dwModule, DWORD dwLen, BYTE *bMask, char *szMask)
{
	for (DWORD i = 0; i < dwLen; i++)
		if (bDataCompare((BYTE *)(dwModule + i), bMask, szMask))
			return (DWORD)(dwModule + i);
	return 0;
}

Code:
#define WEAPONMGR_PATTERN "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xDB\x0F\x49\x40\x35\xFA\x8E\x3C\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xDB\x0F\xC9"

#define WEAPONMGR_MASK "????????????xxxxxxxx????????????????????xxx"

ADDR_WEAPONMGR =
		FindPattern((DWORD)GetModuleHandleA("CShell.dll"), 0xFFFFFF,
		(PBYTE)WEAPONMGR_PATTERN, (char *)WEAPONMGR_MASK);

	char szMyDword2[10];
	sprintf(szMyDword2, "0x%08x", ADDR_WEAPONMGR);



	MessageBox(0, szMyDword2, TEXT("weapon mgr"), MB_OK);

Alguém sabe o que ta de errado? e são várias AoB's que funcionam no C.E mas na DLL não =/

Obrigado desde já \õ

#1 · 8y ago
VA
vaisefud3
Quote Originally Posted by CaET View Post
Eu consigo usar uma array no C.E normalmente:

https://i.imgur.com/8Naa5XB.png

?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? DB 0F 49 40 35 FA 8E 3C ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? DB 0F C9

\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x DB\x0F\x49\x40\x35\xFA\x8E\x3C\x00\x00\x00\x00\x00 \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x 00\x00\x00\xDB\x0F\xC9

????????????xxxxxxxx????????????????????xxx

https://i.imgur.com/dtZSGCq.png


Code:
const bool bDataCompare(const BYTE *pData, const BYTE *bMask, const char *szMask)
{
	for (; *szMask; ++szMask, ++pData, ++bMask)
		if (*szMask == 'x' && *pData != *bMask)
			return 0;
	return (*szMask) == NULL;
}

DWORD FindPattern(DWORD dwModule, DWORD dwLen, BYTE *bMask, char *szMask)
{
	for (DWORD i = 0; i < dwLen; i++)
		if (bDataCompare((BYTE *)(dwModule + i), bMask, szMask))
			return (DWORD)(dwModule + i);
	return 0;
}

Code:
#define WEAPONMGR_PATTERN "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xDB\x0F\x49\x40\x35\xFA\x8E\x3C\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xDB\x0F\xC9"

#define WEAPONMGR_MASK "????????????xxxxxxxx????????????????????xxx"

ADDR_WEAPONMGR =
		FindPattern((DWORD)GetModuleHandleA("CShell.dll"), 0xFFFFFF,
		(PBYTE)WEAPONMGR_PATTERN, (char *)WEAPONMGR_MASK);

	char szMyDword2[10];
	sprintf(szMyDword2, "0x%08x", ADDR_WEAPONMGR);



	MessageBox(0, szMyDword2, TEXT("weapon mgr"), MB_OK);

Alguém sabe o que ta de errado? e são várias AoB's que funcionam no C.E mas na DLL não =/

Obrigado desde já \õ

Procurando no olly, seu pattern joga pro endereço do WeaponMgr diretamente. Eu prefiro pegar a localização de um pointer.
Code:
WeaponMgr = FindPattern(CShell, 0xFFFFFF, (PBYTE)"\x8B\x0D\x00\x00\x00\x00\x8B\x04\xB1\xD9\xE8", "xx????xxxxx");
if (WeaponMgr != NULL)
	WeaponMgr = *(DWORD*)(WeaponMgr + 0x2);
Isso irá retornar o endereço do WeaponMgr sem ter um pattern gigante para lagar o programa.
#2 · 8y ago
YA
yaago
FindPattern(CShell, 0xFFFFFFF..
#3 · 8y ago
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

  • Pattern Scan fails but CE finds valueBy lolomat in C++/C Programming
    0Last post 11y ago
  • Pattern scan failedBy zeper666 in Counter-Strike 2 Coding & Resources
    5Last post 9y ago
  • Pattern ScanBy GoldWhite in Combat Arms Coding Help & Discussion
    11Last post 13y ago
  • How to fix olly if scanning failsBy lauwy in CrossFire Hack Coding / Programming / Source Code
    0Last post 15y ago
  • [Help] Pattern scanningBy pyton789 in Visual Basic Programming
    27Last post 15y ago

Tags for this Thread

None