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 › Steam Games Hacks & Cheats › Counter-Strike 2 Hacks › Counter-Strike 2 Coding & Resources › Trying external but I can't get the client module

Trying external but I can't get the client module

Posts 1–8 of 8 · Page 1 of 1
SI
SilentWarp
Trying external but I can't get the client module
So I am trying to do some stuff externally for a while (just private). I am trying to get the client base address using this code:

Code:
int GetClient() {
		mEntry.dwSize = sizeof(MODULEENTRY32);
		snap = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, pID);
		if (Module32First(snap, &mEntry) == TRUE)
		{
			while (Module32Next(snap, &mEntry) == TRUE)
			{
				if (_stricmp(mEntry.szModule, "client.dll") == 0)
				{
					client = (DWORD)mEntry.modBaseAddr;
					CloseHandle(snap); 
					return (1);
				}
			}
		}
		CloseHandle(snap);
		return 0;
	}
I haven't gone and copied this so it could just be completely the wrong method of getting it but... I tried.

It is always returning 0 so therefore it is never finding the module. I have the correct process ID so that isn't the issue. Any help would be appreciated.

Variables:

Code:
MODULEENTRY32 mEntry;
HANDLE module;
HANDLE snap;
int pID;
I get the process ID from my process handle and it matches that given by cheat engine.
#1 · edited 9y ago · 9y ago
samlarenskoog
samlarenskoog
Code:
DWORD GetClient() {
		mEntry.dwSize = sizeof(MODULEENTRY32);
		snap = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, pID);
		if (Module32First(snap, &mEntry) == TRUE)
		{
			while (Module32Next(snap, &mEntry) == TRUE)
			{
				if (strcmp(mEntry.szModule, "client.dll") == 0)
				{
					client = (DWORD)mEntry.modBaseAddr;
					break;
					
				}
			}
		}
		CloseHandle(snap);
		return client;
	}
#2 · 9y ago
SI
SilentWarp
Quote Originally Posted by samlarenskoog View Post
Code:
DWORD GetClient() {
		mEntry.dwSize = sizeof(MODULEENTRY32);
		snap = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, pID);
		if (Module32First(snap, &mEntry) == TRUE)
		{
			while (Module32Next(snap, &mEntry) == TRUE)
			{
				if (strcmp(mEntry.szModule, "client.dll") == 0)
				{
					client = (DWORD)mEntry.modBaseAddr;
					break;
					
				}
			}
		}
		CloseHandle(snap);
		return client;
	}
There is basically no different here and I use _strcmp because strcmp is deprecated. They perform the same functions.

And it doesn't matter if it returns or not I am still setting my client to the base address even if I'm not returning it

- - - Updated - - -

Might I add that if anyone wants to see the rest of my code I will show high rep people privately. I don't want 1000's of kids using it
#3 · 9y ago
ImWhacky
ImWhacky
Try procmem until you can make your own class for this stuff... then it's just 3 lines:
Code:
Procmem Mem;
Mem.Process("csgo.exe");
ClientDLL = Mem.Module("client.dll");
#4 · 9y ago
SI
SilentWarp
Quote Originally Posted by ImWhacky View Post
Try procmem until you can make your own class for this stuff... then it's just 3 lines:
Code:
Procmem Mem;
Mem.Process("csgo.exe");
ClientDLL = Mem.Module("client.dll");
Not here to copy stuff and use others stuff, here for some info on stuff like this
#5 · 9y ago
ImStyL
ImStyL
Try this,

Code:
MODULEENTRY32 GetClient(char* mName) {
	MODULEENTRY32 mEntry;
	mEntry.dwSize = sizeof(MODULEENTRY32);
	snap = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, pID);


	if (Module32First(snap, &mEntry) == true)
	{
		while (Module32Next(snap, &mEntry) == true)
		{
			if (strcmp(mEntry.szModule, (LPSTR)mName) == 0)
			{
				client = (DWORD)mEntry.hModule, mEntry.modBaseSize;
				break;
			}
		}
	}
	CloseHandle(snap);
	return client;
}
#6 · edited 9y ago · 9y ago
ImWhacky
ImWhacky
Quote Originally Posted by SilentWarp View Post
Not here to copy stuff and use others stuff, here for some info on stuff like this
Should have read first my bad
#7 · 9y ago
Smoke
Smoke
Been over a week since last update/bump after answers, assuming solved.

/Closed.
#8 · 9y ago
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

  • Can i get the steam account gen???By domin8666 in WarRock - International Hacks
    1Last post 19y ago
  • Can you get the blacked out weapons?By xTwilightD in Combat Arms Hacks & Cheats
    17Last post 17y ago
  • For those who can't get the hack to work!!By rey1235 in CrossFire Hacks & Cheats
    3Last post 17y ago
  • Where can i get the free hacks ?By ReLapse45 in Combat Arms Discussions
    2Last post 16y ago
  • were can i get the patch ?By ballin22 in WarRock Korea Hacks
    13Last post 19y ago

Tags for this Thread

None