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 › How do i add up the pointer? base addy + offset..

How do i add up the pointer? base addy + offset..

Posts 1–3 of 3 · Page 1 of 1
OR
orx
How do i add up the pointer? base addy + offset..
What is the proper way for getting the addy where pointer is pointing to?

DWORD base = (DWORD)GetModuleHandleA("module.dll");

DWORD addy = base + 0xoffset1 + 0xoffset2 + 0xoffset3; ?

*(int*)addy = newvalue;

is it same with multilevel pointer?

Could somebody explain me multilevel pointers? as i understand, the multilevel pointer is with multiple offsets right?

OrX
#1 · 15y ago
BL
bluedog9
Multilevel pointer simply means that you must dereference and add multiple offsets to a "base" value to find the address of the pointer.
Think about this:
0x12345 points to an integer type variable.
0x123456 points to 0x12345
0x1234567 points to 0x123456
the base would be 0x1234567
#2 · edited 15y ago · 15y ago
FO
Fovea
http://www.mpgh.net/forum/31-c-c-pro...ml#post4647733

The first offset is read differently than in a normal situation since it is used to rebase the first address to avoid problems with the relocation of modules (ASLR).

As you can see from my code, I immediately add the first offset to the module base in order to find the correct virtual address, and from there start casting/dereferencing.
#3 · edited 15y ago · 15y ago
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

  • [Help]How do i add my injector to the right click menuBy qddW$#%^jtyjtyj in Visual Basic Programming
    20Last post 16y ago
  • [HELP] How do i add a name to the hack so it shows in game?By ®Jack in Combat Arms Hack Coding / Programming / Source Code
    11Last post 16y ago
  • How to find the pointer to the D3D9 device by lauwyBy lauwy in CrossFire Hack Coding / Programming / Source Code
    13Last post 15y ago
  • How do I add the skins?By CoD4wannable in Soldier Front General
    1Last post 15y ago
  • how can i add icon above the head ??By adyson_19 in Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    7Last post 15y ago

Tags for this Thread

None