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# Programming › Write to memory? Assault Cube Addys.

Write to memory? Assault Cube Addys.

Posts 1–5 of 5 · Page 1 of 1
Renamon Toast Crunch
Renamon Toast Crunch
Write to memory? Assault Cube Addys.
So i have my addys but now what?? New to C# (And hacking really, i was just happy that i got it to work by modifying the assemble in ollydbg!)

The addys i have and what i changed them to and what they do!
Code:
:Process name:
ac_client.exe

:Gun Ammo:
00463279 DEC DWORD PTR DS:[ESI]
Change to INC DWORD PTR DS:[ESI] (Thus you don't run out of ammo, instead of decrementing ammo it does the opposite!)

:Health:
0042CA7E (Working on this one, i dont know what MOV is)

:Grenades:
00462E08 DEC DWORD PTR DS:[EAX]
Change to INC DWORD PTR DS:[EAX]
How would i make an application in C# where i would click a button and one of my defined changes would be made? Write to memory? (Tried searching google, was confused..)
#1 · 12y ago
abuckau907
abuckau907
Quote Originally Posted by Renamon Toast Crunch View Post
..
Yes, the windows api WriteProcessMemory() (after you get a valid handle from OpenProcess())

The 2 instructions will be different by only one byte.

So to "change" the instruction, you just have to overwrite the correct byte into the instruction. Probably the first byte of it..

so, I didn't look up the actual bytecodes but pretend

00463279 DEC DWORD PTR DS:[ESI] = 8B 2A
00463279 INC DWORD PTR DS:[ESI] = 44 2A


So to change it from dec to inc, write the byte 0x44 to the address 00463279. Replacing the first byte. Just an example. Look up the actual byte codes.

edit: There are several public memory libraries floating around mpgh; maybe even one in c#. (I wrote 2 tuts. about it in the vb.net section. A lot of the background information is the same. Code is 99% the same also)

edit2: It's not always the front byte that is changed...here are 3 example. Spot the byte that changes?




 
MOV

:Health:
0042CA7E (Working on this one, i dont know what MOV is)
MOV is like the equal sign; used to assign/move a value.

The format is:
MOV destination, source


mov eax, 14 ;// set eax to 14
...
mov eax, ecx ;// set eax to whatever ecx is currently


^^there are rules about what the destination and source can be: a register, a memory location, or a numeric constant. Read assembly tut. to know more.
#2 · edited 12y ago · 12y ago
Renamon Toast Crunch
Renamon Toast Crunch
Wow, thank you very much!
#3 · 12y ago
AC
Acea
Hmm, the infamous assault cube. When you're working with this game it's almost better to use classes for modifying memory rather than using address's unless you use a pointer and calculate the offset your address's will change every game.
#4 · 12y ago
XX
XXkillerFin1
Quote Originally Posted by Renamon Toast Crunch View Post
So i have my addys but now what?? New to C# (And hacking really, i was just happy that i got it to work by modifying the assemble in ollydbg!)

The addys i have and what i changed them to and what they do!
Code:
:Process name:
ac_client.exe

:Gun Ammo:
00463279 DEC DWORD PTR DS:[ESI]
Change to INC DWORD PTR DS:[ESI] (Thus you don't run out of ammo, instead of decrementing ammo it does the opposite!)

:Health:
0042CA7E (Working on this one, i dont know what MOV is)

:Grenades:
00462E08 DEC DWORD PTR DS:[EAX]
Change to INC DWORD PTR DS:[EAX]
Hey, What version of game do you have? because I got these addies(from newest version of assault cube):

-----AMMO-------------
offset 0
offset 14
00508B74 offset 384
-----HEALTH----------
00508B74 offset F8
-----ARMOR-----
00508B74 offset FC
-----NAME----------
005018FC offset 0
-----Coordinates-----
Y Coordinat:
00508B74 offset 3C
#5 · 12y ago
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

  • Assault cube addressesBy Blondenut1 in General Game Hacking
    3Last post 17y ago
  • BartJrs Assault Cube TrainerBy bartjr in General Game Hacking
    31Last post 15y ago
  • Assault Cube hacksBy Ariez in General Hacking
    11Last post 14y ago
  • [Request] Write/Read Memory TutorialBy Infection_X in Visual Basic Programming
    1Last post 18y ago
  • Assault Cube v1.0.2 hacks?By Iamazn in General Game Hacking
    0Last post 17y ago

Tags for this Thread

None