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 › Use C++ code and make hacks

Thumbs upUse C++ code and make hacks

Posts 1–15 of 100 · Page 1 of 7
…
Ch40zz-C0d3r
Ch40zz-C0d3r
Use C++ code and make hacks
Hey guys.
I saw much much posts here about making hacks. So here is a tutorial how to make them. Please press the thanksbutton

Downloads
1. Microsoft Visual C++ 2010/2008. Link: Visual C++ 2010 Express - Download - CHIP Online
2. Microsoft DirectX SDK. Link: Download Details - Microsoft Download Center - DirectX SDK - (June 2010)
3. Some source code. Link: http://www.mpgh.net/forum/207-combat...menu-base.html

How To Use the Files
After you downloaded the files, open them. So install Visual C++ and DIrectX SDK and extract the menubase to your desktop. After you installed all, open up MSV C++. Than click "File" -> "New" -> "Project" and it should popup a new window. Screenshot:


Now a new window popup. Just click "Next". Another window will popup. Screenshot:


Now we can add the code. If you want to open the menu base just open the project. But here we must add own code. So i will give you for example a hotkey code. Rightclick source files -> add -> new element and add a new .cpp file. Now you can add the code:

[html]#include <windows.h>


void testTH()
{
MessageBoxA(NULL, "This is my MsgBox WOO ", "My MsgBox", MB_OK);
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)testTH, 0, 0, 0);

}

return TRUE;
}[/html]

Now choose at top instead of "Debug" "Release" and press the green button. Now it compile the code. After compiling it had created the Dll-File which you easilly can inject with an injector. Look on mpgh for Injectors. The Dll-File's path should be: C:\Users\[Username]\Documents\Visual Studio 2010\Projects\[Projectname]\Release\[Projectname].dll

I hope I could help you. Please press the "thanksbutton" on the buttom on the right if it worked for you
#1 · edited 15y ago · 15y ago
flameswor10
flameswor10
Code:
#include <windows.h>

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
	DisableThreadLibraryCalls(hDll);
	if ( dwReason == DLL_PROCESS_ATTACH )
	{
		MessageBoxA(NULL, "This is my MsgBox WOO :D", "My MsgBox", MB_OK);
	}

	return TRUE;
}
If you use this code, you can attach OllyDbg to Engine.exe
#2 · 15y ago
MarissaMonily
MarissaMonily
I iz confused
#3 · 15y ago
flameswor10
flameswor10
Quote Originally Posted by MarissaMonily View Post
I iz confused
Then you obviously shouldn't be in this section.
#4 · 15y ago
MarissaMonily
MarissaMonily
Quote Originally Posted by flameswor10 View Post
Then you obviously shouldn't be in this section.
Wel obviously i try to learn things but im too stupid to learn them -really frustrated-
If i had the patience and if u would help me learn i would but no none has time for me
#5 · edited 15y ago · 15y ago
Ch40zz-C0d3r
Ch40zz-C0d3r
Quote Originally Posted by flameswor10 View Post
Code:
#include <windows.h>

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
	DisableThreadLibraryCalls(hDll);
	if ( dwReason == DLL_PROCESS_ATTACH )
	{
		MessageBoxA(NULL, "This is my MsgBox WOO :D", "My MsgBox", MB_OK);
	}

	return TRUE;
}
If you use this code, you can attach OllyDbg to Engine.exe

hmm thats same code as my. my just creates a thread for it
#6 · 15y ago
flameswor10
flameswor10
Quote Originally Posted by Ch40zz-C0d3r View Post
hmm thats same code as my. my just creates a thread for it
Yes, but creating a thread makes the msgbox popup, but not pause the game.
#7 · 15y ago
MarissaMonily
MarissaMonily
i hate being stupid its so frustrating i wish somone would teach me face to face how to c++ code so i could just make the hack not complain and whine for somone to make it v.v

Quote Originally Posted by flameswor10 View Post
Yes, but creating a thread makes the msgbox popup, but not pause the game.
Since you are good with making hacks could you maybe help me learn :/ please?
#8 · edited 15y ago · 15y ago
flameswor10
flameswor10
Quote Originally Posted by MarissaMonily View Post
i hate being stupid its so frustrating i wish somone would teach me face to face how to c++ code so i could just make the hack not complain and whine for somone to make it v.v
Since you are good with making hacks could you maybe help me learn :/?
I have taught a few people, but it's a huge task teaching.
You:
1. Have to be patient
2. must have time
3. Must be dedicated

I am patient, but don't have the other 2.
So I will be the most horrible teacher, best way to learn is from your mistakes.
Code a few simple applications, console applications if you must.
Learn from

Learn C++
#9 · 15y ago
CR
CriticalPencil
Quote Originally Posted by flameswor10 View Post
I have taught a few people, but it's a huge task teaching.
You:
1. Have to be patient
2. must have time
3. Must be dedicated

I am patient, but don't have the other 2.
So I will be the most horrible teacher, best way to learn is from your mistakes.
Code a few simple applications, console applications if you must.
Learn from

Learn C++
i feel special /love
steven taught me
#10 · 15y ago
DE
DeadLinez
CodeNever's tutorial is better, this is just a source, you don't explain any of the code.
#11 · 15y ago
flameswor10
flameswor10
Quote Originally Posted by DeadLinez View Post
CodeNever's tutorial is better, this is just a source, you don't explain any of the code.
Let me Explain.

Code:
#include <windows.h>

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
// DllMain is an optional function for you to declare.
// It serves as the entry point for any DLL
{
	DisableThreadLibraryCalls(hDll);
	// Make a call to DisableThreadLibraryCalls with the hModule variable
	// as its argument; Doing this is an optimization trick to prevent
	// needless thread attach/detach messages from triggering further calls
	// to our DllMain function.
	if ( dwReason == DLL_PROCESS_ATTACH )
	{
		//When your process gets attached, show a messagebo.
		MessageBoxA(NULL, "This is my MsgBox WOO :D", "My MsgBox", MB_OK);
		//The message will say "This is my MsgBox WOO :D" with the title of "My MsgBox".
		//The only button that the messagebox will be the OK button.
	}
return TRUE;
// Although the return value doesn't actually matter. You return the value TRUE or FALSE indicatinng success or failure.

}
http://www.mpgh.net/forum/207-combat...ll-coding.html

This tut is more detailed
#12 · edited 15y ago · 15y ago
joshzex
joshzex
steven....?
#13 · 15y ago
flameswor10
flameswor10
Quote Originally Posted by joshzex View Post
steven....?
yes? .
#14 · 15y ago
CAFlames
CAFlames
Didn't @flameswor10 already make something like this?
#15 · 15y ago
Posts 1–15 of 100 · Page 1 of 7
…

Post a Reply

Tags for this Thread

None