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 › C++ - Warcraft 3 maphack source code [Enjoy]

C++ - Warcraft 3 maphack source code [Enjoy]

Posts 1–9 of 9 · Page 1 of 1
WH
WhoAml
C++ - Warcraft 3 maphack source code [Enjoy]
Here is a source for one of my WC3 maphacks that I created, please do enjoy and learn from it!

Features -
Reveal units + buildings - main map + minimap
Clickable units underfog
HP bars underfog.

These offsets ARE DETECTED on ladder play, this source code is for learning purposes.

Code:
#include <windows.h>
#include <iostream>
using namespace std;
HWND hHack=FindWindow(NULL,"Warcraft III");

//DECLARE FUNCTIONS
void write(LPVOID addy, DWORD mydata);
void enableDebugPrivileges();
void dohack();


//Main part
int main() {
    if(!hHack)
    {
        cout << "Warcraft III window was not found" << endl;
        system("pause");
        exit(0);
    }
	cout << "Hack is now loaded - visit <site address>  for future releases, more hacks tools and bots!" << endl;  
	enableDebugPrivileges();
    dohack();          
    system("pause");
  }
void write(LPVOID addy, DWORD mydata)
{
    DWORD PID, TID;
    TID = ::GetWindowThreadProcessId (hHack, &PID);
    HANDLE hopen=OpenProcess( PROCESS_ALL_ACCESS|PROCESS_TERMINATE|PROCESS_VM_OPERATION|PROCESS_VM_READ|
                  PROCESS_VM_WRITE,FALSE,PID);

    WriteProcessMemory(hopen,addy,&mydata,1,0);
    CloseHandle(hopen);  
}
void enableDebugPrivileges()
{
    HANDLE hcurrent=GetCurrentProcess();
    HANDLE hToken;
    BOOL bret=OpenProcessToken(hcurrent,40,&hToken);
    LUID luid;
    bret=LookupPrivilegeValue(NULL,"SeDebugPrivilege",&luid);
    TOKEN_PRIVILEGES NewState,PreviousState;
    DWORD ReturnLength;
    NewState.PrivilegeCount =1;
    NewState.Privileges[0].Luid =luid;
    NewState.Privileges[0].Attributes=2;
    AdjustTokenPrivileges(hToken,FALSE,&NewState,28,&PreviousState,&ReturnLength);
}
void dohack()
{
     // Basic reveal
     write((LPVOID)0x6F3A20C5, 0xB8);	
     write((LPVOID)0x6F3A20C6, 0xFF);
     write((LPVOID)0x6F3A20C7, 0xFF);
     write((LPVOID)0x6F3A20C8, 0xFF);
     write((LPVOID)0x6F3A20C9, 0xFF);
     write((LPVOID)0x6F3A20CA, 0x90);
     write((LPVOID)0x6F3A20CB, 0x90);
     
     //Clickable units + reveal units minimap
      write((LPVOID)0x6F285CD0, 0x40);
      write((LPVOID)0x6F285CD1, 0x90);

}
#1 · edited 16y ago · 16y ago
matthieu503
matthieu503
should i build it as dll or exe?
#2 · 16y ago
WH
WhoAml
You would compile it as an exe, however those offsets are detected on ladder play.
#3 · 16y ago
Hell_Demon
Hell_Demon
nice to see a wc3 release, they use warden(blizzards AC) right?
#4 · 16y ago
'Bruno
'Bruno
Not sure if warden is currently on.. I bet it is not..

They usually turn it off for a while, for people to create hacks, use.. and then ban massive keys and get money from new games...

At least they did it with D2, and they are doing it now with SC2.. It will be funny
#5 · 16y ago
WH
WhoAml
Quote Originally Posted by Hell_Demon View Post
nice to see a wc3 release, they use warden(blizzards AC) right?
That is correct, Warden is blizzards anti-cheat system.


@Brinuz - Yes you're absolutley correct, they turn warden off from time to time, sometimes for a stretch of 3 months, then they make all the public hacks detected and get a nice big ban wave .
#6 · 16y ago
JayFabulous
JayFabulous
I appreciate you sharing, however I get 2 build errors.


hack.cpp(4): error C2275: 'LPCWSTR' : illegal use of this type as an expression

c:\program files (x86)\microsoft sdks\windows\v7.0a\include\winnt.h(357) : see declaration of 'LPCWSTR'

hack.cpp(41): error C2664: 'LookupPrivilegeValueW' : cannot convert parameter 2 from 'const char [17]' to 'LPCWSTR'

Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
#7 · 16y ago
Void
Void
Quote Originally Posted by JayFabulous View Post
I appreciate you sharing, however I get 2 build errors.


hack.cpp(4): error C2275: 'LPCWSTR' : illegal use of this type as an expression

c:\program files (x86)\microsoft sdks\windows\v7.0a\include\winnt.h(357) : see declaration of 'LPCWSTR'

hack.cpp(41): error C2664: 'LookupPrivilegeValueW' : cannot convert parameter 2 from 'const char [17]' to 'LPCWSTR'

Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Change the character set to multi-byte or use wide characters.
#8 · 16y ago
25
258456
ok, why did threadstarter get banned?

And nice code by the way.
#9 · 16y ago
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

  • HALO 2 (XBOX) Source CodeBy mirelesmichael in General Game Hacking
    12Last post 20y ago
  • [Release] WarHax DLL Source CodeBy OneWhoSighs in WarRock - International Hacks
    20Last post 18y ago
  • keylogger source codeBy obsedianpk in WarRock - International Hacks
    8Last post 18y ago
  • [TUT] arnold's hack v1.1 vb6 source codeBy arnold in WarRock - International Hacks
    6Last post 18y ago
  • Stamina Hack and source code ?By Teh Sasuke in C++/C Programming
    0Last post 18y ago

Tags for this Thread

None