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 › MultiPlayer Game Hacks & Cheats › Call of Duty Hacks & Cheats › Call of Duty 6 - Modern Warfare 2 (MW2) Hacks › Call of Duty Modern Warfare 2 Coding / Programming / Source Code › Activating External Console

Activating External Console

Posts 1–15 of 19 · Page 1 of 2
GE
gerherhtherherdhher
Activating External Console
Here is an easy code to activate the external console. For some reason the game doesn't write anything to it, but it works just fine for executing commands, setting dvars etc.

Code:
void (__cdecl* Sys_ShowConsole)() { reinterpret_cast<decltype(Sys_ShowConsole)>(0x005CB490) };

//somewhere in your hook
static bool showConsole { true };

if (showConsole) {
   Sys_ShowConsole();
   showConsole = false;
}
Note: You should only call this once. If you don't have a hook where you can call it, create a new thread with a message queue and call it there. The cool thing about that approach is that the game won't exit if you close the console.

Greetings!
#1 · edited 10y ago · 10y ago
Scoudem
Scoudem
I've been struggling with that sub. Called it but the window just flashed by. Your method seems to work, thanks! Can I use it in my tool?
#2 · 10y ago
XX
xxLogicaLxx
Someone make a .DLL for this.
#3 · 10y ago
Scoudem
Scoudem
Quote Originally Posted by xxLogicaLxx View Post
Someone make a .DLL for this.
I've implemented this in my MW2 Lobby Tools, just need to update it
#4 · 10y ago
XX
xxLogicaLxx
Quote Originally Posted by Scoudem View Post
I've implemented this in my MW2 Lobby Tools, just need to update it
Well hurry up then mate.
#5 · 10y ago
MI
MiKe34123
So does this allow you to put in certain DVARS and not others? Since apparently things like "map mp_afghan" won't work or w/e.
#6 · 10y ago
KU
KujoDrinksPussy
Hey, I can't get this to work, debugged it in win32project dll. No errors on build or on injection, just does nothing.

// ConsoleApplication5.cpp : Defines the exported functions for the DLL application.
#include "stdafx.h"
#include "Windows.h"
int Sys_ShowConsole()
{
void (__cdecl* Sys_ShowConsole)(); { reinterpret_cast<decltype(Sys_ShowConsole)>(0x005C B490) ;}
Sys_ShowConsole();
};
#7 · 10y ago
JokerKing9903
JokerKing9903
Quote Originally Posted by KujoDrinksPussy View Post
Hey, I can't get this to work, debugged it in win32project dll. No errors on build or on injection, just does nothing.

// ConsoleApplication5.cpp : Defines the exported functions for the DLL application.
#include "stdafx.h"
#include "Windows.h"
int Sys_ShowConsole()
{
void (__cdecl* Sys_ShowConsole)(); { reinterpret_cast<decltype(Sys_ShowConsole)>(0x005C B490) ;}
Sys_ShowConsole();
};
(0x005C B490)

Do you see what you did wrong?
#8 · 10y ago
KU
KujoDrinksPussy
I fixed that, now their is some other errors :u
#9 · 10y ago
m0zey
m0zey
And where do you put this code please?
#10 · 10y ago
GE
gerherhtherherdhher
Quote Originally Posted by KujoDrinksPussy View Post
Hey, I can't get this to work, debugged it in win32project dll. No errors on build or on injection, just does nothing.

// ConsoleApplication5.cpp : Defines the exported functions for the DLL application.
#include "stdafx.h"
#include "Windows.h"
int Sys_ShowConsole()
{
void (__cdecl* Sys_ShowConsole)(); { reinterpret_cast<decltype(Sys_ShowConsole)>(0x005C B490) ;}
Sys_ShowConsole();
};
It's not a good idea to name the pointer and your function the same. You might get into an infinite recursion. Also, the game won't magically call your function, you have to create a thread from DllMain and create a message queue or hook into the game's thread and call it the

Quote Originally Posted by KujoDrinksPussy View Post
I fixed that, now their is some other errors :u
What errors?

Quote Originally Posted by m0zey View Post
And where do you put this code please?
In a text file, rename it to IW4Console.bat, then inject that into svchost.exe.
#11 · 10y ago
KA
katzhunt2
Let me know when it's updated
#12 · 10y ago
CL
classynapkins
Quote Originally Posted by __Xen0 View Post
Here is an easy code to activate the external console. For some reason the game doesn't write anything to it, but it works just fine for executing commands, setting dvars etc.

Code:
void (__cdecl* Sys_ShowConsole)() { reinterpret_cast<decltype(Sys_ShowConsole)>(0x005CB490) };

//somewhere in your hook
static bool showConsole { true };

if (showConsole) {
   Sys_ShowConsole();
   showConsole = false;
}
Note: You should only call this once. If you don't have a hook where you can call it, create a new thread with a message queue and call it there. The cool thing about that approach is that the game won't exit if you close the console.

Greetings!
hey i was wondering what code i could use to ban this guy Xen0 from my games? he keeps hacking my games
#13 · 10y ago
Scoudem
Scoudem
Quote Originally Posted by classynapkins View Post
hey i was wondering what code i could use to ban this guy Xen0 from my games? he keeps hacking my games
are you serious
#14 · 10y ago
GE
gerherhtherherdhher
Quote Originally Posted by classynapkins View Post
hey i was wondering what code i could use to ban this guy Xen0 from my games? he keeps hacking my games
I've heard of that guy. Never met him in a lobby though. What stuff is he doing in your lobbies? I will try to figure something out!
#15 · 10y ago
Posts 1–15 of 19 · Page 1 of 2

Post a Reply

Similar Threads

  • Custom External ConsoleBy @osma8 in Call of Duty 6 - Modern Warfare 2 (MW2) Hacks
    10Last post 15y ago
  • IW5M External Console??By notreal1fake in Call of Duty Modern Warfare 3 Help
    4Last post 13y ago
  • T6M External console?By donatelis in Call of Duty Black Ops 2 Private Server Hacks
    3Last post 13y ago
  • External Console RadarBy King-Orgy in Call of Duty 7 - Black Ops Hacks & Cheats
    105Last post 15y ago
  • [Release]External Console Radar Inc. SourceBy King-Orgy in Call of Duty 4 - Modern Warfare (MW) Hacks
    8Last post 15y ago

Tags for this Thread

None