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 › WriteProcessMemory Help

WriteProcessMemory Help

Posts 1–7 of 7 · Page 1 of 1
aanthonyz
aanthonyz
WriteProcessMemory Help
If I inject a dll into a certain game, do I still need to find the HWND and all the other stuff to use WriteProcessMemory?

Is there any way to automatically select the program im injected into as what I want to change the address of?
#1 · 15y ago
LY
Lyoto Machida
Quote Originally Posted by aanthonyz View Post
If I inject a dll into a certain game, do I still need to find the HWND and all the other stuff to use WriteProcessMemory?

Is there any way to automatically select the program im injected into as what I want to change the address of?
if is injected it is part of the memory already, no need for that function

Example..
*(int*)0x1114 = 5;
#2 · 15y ago
aanthonyz
aanthonyz
Is there anyway to use that function though?
Im more comfortable using it.

*(int*)0x1114 = 5;
Is this setting address 0x1114 to the number 5?
How could I NOP an address using this method?
#3 · 15y ago
LY
Lyoto Machida
Quote Originally Posted by aanthonyz View Post
Is there anyway to use that function though?
Im more comfortable using it.

*(int*)0x1114 = 5;
Is this setting address 0x1114 to the number 5?
How could I NOP an address using this method?
Yes its setting to 5..
And u can still use that function, but its harder...
HWND hWnd = GetCurrentProcess()
or something
#4 · 15y ago
WH
whit++++
Quote Originally Posted by aanthonyz View Post
How could I NOP an address using this method?
You could use memcpy
#5 · 15y ago
'Bruno
'Bruno
if you have direct access.. whats the problem.. lol :|
#6 · 15y ago
♪~ ᕕ(ᐛ)ᕗ
♪~ ᕕ(ᐛ)ᕗ
look:
[highlight=cpp]void MemWrite(DWORD Addr, PBYTE Buffer, SIZE_T Len)
{
DWORD oldProtection = NULL;
VirtualProtect((LPVOID)Addr, Len, PAGE_EXECUTE_READWRITE, &oldProtection);
memcpy((LPVOID)Addr, Buffer, Len);
VirtualProtect((LPVOID)Addr, Len, oldProtection, NULL);
}[/highlight]
Edit, if you want to use this to a game, then I strongly recommend you to do not. it is proolly detected.
#7 · edited 15y ago · 15y ago
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Tags for this Thread

None