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 › Programming › C++/C Programming › [Question] Creating hacks with C++

[Question] Creating hacks with C++

Posts 1–15 of 15 · Page 1 of 1
YO
YoavX
[Question] Creating hacks with C++
Hello, im a programming with C++, and i'd like to create some hacks :P
first of all, how does it works?
if i'll get an example of hack code for a game i would be grateful.
#1 · 17y ago
Micheltjuh
Micheltjuh
Please read something about memory editing using C++ first. (Google)
#2 · 17y ago
why06
why06
Quote Originally Posted by YoavX View Post
Hello, im a programming with C++, and i'd like to create some hacks :P
first of all, how does it works?
if i'll get an example of hack code for a game i would be grateful.
Wouldn't we all xD. Well I can tell you how it works, but you need certain things to go about, and what you need depends on what type of hack you are making.

Depending on what you want to alter about the game there's different ways to get it done. A popular way is memory hacking.

For memory hacking you need:
1. Some way to find the memory addresses that you want to change.
2. Some way to change those values.

Well that's about it, but the first part might be harder then you would think depending on the countermeasures taken on by the game designers...

After that you would just make a program to change these values. You would need to use functions such as WriteProcessMemory... etc. Taking a good look at a Warrock hack may give you a basic idea of how memory hacks are designed.

Anyway after all that the only problem is deciding how to implement your hack. Almost everyone uses .DLL for memory hacks. because then your hack is part of the game and can read keystrokes and other things without to many complex calls and dealing with scope of windows, etc.
#3 · 17y ago
Hell_Demon
Hell_Demon
+1 for Why06

my prefered method for memhacking is:
Code:
//type *pPointer = (type*)0x123456;
unsigned long *cPed = (unsigned long*)0xB7CD98;
unsigned long *cCurVehicle = (unsigned long*)((*cPed)+0x58C);
code above was for one of my GTA san andreas projects which i never finished.
dont even remember if it worked or not ^^
also you'll need to inject or create a remote thread to use this method.
for external memhacking use why's method
#4 · 17y ago
zhaoyun333
zhaoyun333
i think thats a bunch of useless code.

Code:
#define ADR_ENDOFTHEWORLDSPELL
*(DWORD*)ADR_ENDOFTHEWORLDSPELL = 0x1;
#5 · 17y ago
Katie_Perry
Katie_Perry
Stare off with coding, using Codeblock - Better because it has the both Languges in the one, ie. C & C#
#6 · 17y ago
why06
why06
Quote Originally Posted by zhaoyun333 View Post
i think thats a bunch of useless code.

Code:
#define ADR_ENDOFTHEWORLDSPELL
*(DWORD*)ADR_ENDOFTHEWORLDSPELL = 0x1;
I would hardly say it's useless, two means to the same end. Both ways are valid methods of creating address pointers, except that HD's is a little more advanced since he also used an offset to an address.
#7 · 17y ago
YO
YoavX
Quote Originally Posted by why06 View Post
Wouldn't we all xD. Well I can tell you how it works, but you need certain things to go about, and what you need depends on what type of hack you are making.

Depending on what you want to alter about the game there's different ways to get it done. A popular way is memory hacking.

For memory hacking you need:
1. Some way to find the memory addresses that you want to change.
2. Some way to change those values.

Well that's about it, but the first part might be harder then you would think depending on the countermeasures taken on by the game designers...

After that you would just make a program to change these values. You would need to use functions such as WriteProcessMemory... etc. Taking a good look at a Warrock hack may give you a basic idea of how memory hacks are designed.

Anyway after all that the only problem is deciding how to implement your hack. Almost everyone uses .DLL for memory hacks. because then your hack is part of the game and can read keystrokes and other things without to many complex calls and dealing with scope of windows, etc.
hmm where can i find a .dll project for warrock?
im thinking of starting with a game like GTA SA...
i already downloaded Cheat Engine 5.5 and Olly DBG
#8 · 17y ago
why06
why06
Quote Originally Posted by YoavX View Post
hmm where can i find a .dll project for warrock?
im thinking of starting with a game like GTA SA...
i already downloaded Cheat Engine 5.5 and Olly DBG
Our local coder Techtnoic wrote out a entire tutorial. Check it out:
http://www.mpgh.net/forum/161-tutori...-hack-tut.html
#9 · 17y ago
Micheltjuh
Micheltjuh
Quote Originally Posted by why06 View Post
Our local coder Techtnoic wrote out a entire tutorial. Check it out:
http://www.mpgh.net/forum/161-tutori...-hack-tut.html
That's not what I call a tutorial. That's copying and pasting and compiling. You don't learn anything from it.
#10 · 17y ago
why06
why06
Quote Originally Posted by Micheltjuh View Post
That's not what I call a tutorial. That's copying and pasting and compiling. You don't learn anything from it.
Yeh, ur right, but he just asked for sample code of a .dll so I guess this will suffice. If you want to learn how it works you need a better written tut.
#11 · 17y ago
ZE
zeco
Well if you already know how to code, but not how to make hacks, I would say you could learn a lot from it. It gives you an idea of how to do it, so you can remember the basics for next time.
#12 · 17y ago
Hell_Demon
Hell_Demon
Quote Originally Posted by zhaoyun333 View Post
i think thats a bunch of useless code.

Code:
#define ADR_ENDOFTHEWORLDSPELL
*(DWORD*)ADR_ENDOFTHEWORLDSPELL = 0x1;
I bet you learned that by copy pasting a lot didnt you?
Also in the end my code is still shorter if you need to edit it multiple times
*name = x
where yours would be
*(type*)name = x

therefor mine is more efficient and owns your copy pasteness
#13 · 17y ago
ZE
zeco
Quote Originally Posted by Hell_Demon View Post
I bet you learned that by copy pasting a lot didnt you?
Also in the end my code is still shorter if you need to edit it multiple times
*name = x
where yours would be
*(type*)name = x

therefor mine is more efficient and owns your copy pasteness
Errhm, Zhao can code >_<. He used to be in here a lot a while ago, then dissappeared.

Eitherway, i a mostly sure zhao's version is more efficient since you don't need to allocate memory for a variable. It's not about how much code you type. it's about how efficiently it runs.
#14 · edited 17y ago · 17y ago
Hell_Demon
Hell_Demon
Quote Originally Posted by zeco View Post
Errhm, Zhao can code >_<. He used to be in here a lot a while ago, then dissappeared.

Eitherway, i a mostly sure zhao's version is more efficient since you don't need to allocate memory for a variable. It's not about how much code you type. it's about how efficiently it runs.
if you feel like typing out the typecasts every time and keeping track of which typecast is used for which address be my guest ^^
the reason i said copy paster was that everyone from the 'warrock hacking scene' uses the #define method since a few of the 'original' coders used it.

and the define method would be a bitch to use with structs and classes(if possible at all)
#15 · 17y ago
Posts 1–15 of 15 · Page 1 of 1

Post a Reply

Similar Threads

  • Is it possible to create hacks with python?By elitexppro in Programming Tutorials
    4Last post 16y ago
  • Creating CAE .dll hack with c++By YoavX in Combat Arms Europe Hacks
    2Last post 17y ago
  • HL2 Hack With Aimbot|ESP| And much, Much more.By quin123 in CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    10Last post 17y ago
  • Can u use the gain experience hack with 1 playerBy mjt20mik in WarRock - International Hacks
    7Last post 20y ago
  • Godmode Hack with Ollydbg TutorialBy emisand in Gunz Hacks
    46Last post 20y ago

Tags for this Thread

#creating#hacks#question