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 › CrossFire Hacks & Cheats › CrossFire Hack Coding / Programming / Source Code › [source] xp hotkey hack

[source] xp hotkey hack

Posts 1–15 of 17 · Page 1 of 2
lauwy
lauwy
[source] xp hotkey hack [RegisterHotKey]
Xtrap detects it but, it works for xp (with baypass)

Code:
#include <windows.h>
#include <iostream>

using namespace std;

void __cdecl PushToConsole(char* szVal )
{
	DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
	if( dwCShell != NULL )
	{
		DWORD *LTClient = ( DWORD* )( (dwCShell + 0x299D40) );
		void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
		_asm
		{
			push szVal;
			call CONoff;
			add esp, 4;
		}
	}
}

BOOL WINAPI Main (LPVOID)
{
	RegisterHotKey(NULL,1,MOD_SHIFT,0x30);	
	RegisterHotKey(NULL,2,MOD_SHIFT,0x31);		
	RegisterHotKey(NULL,3,MOD_SHIFT,0x32);			
	RegisterHotKey(NULL,4,MOD_SHIFT,0x33);		
	bool boxes = true;
	bool nosky = false;
	bool worldframe = false;
	bool playerframe = false;
	bool nogun = false;
	bool Skeleton = false;
	bool FogEnable = false;
	bool CursorCenter = false;
	MSG msg = {0};




   while (GetMessage(&msg, NULL, 0, 0) != 0) {

		__asm pushad;k

		if (msg.message == WM_HOTKEY) {
			if( msg.wParam == 1 ) {
				boxes = !boxes;
			}

			if( msg.wParam == 2 ) {
				nosky = !nosky;
			}

			if( msg.wParam == 3 ) {
				worldframe = !worldframe;
			}

			if ( msg.wParam == 4 ) {
				Skeleton = !Skeleton;
			}
		}

		if (CursorCenter)
			PushToConsole("CursorCenter 1");
		else 
			PushToConsole("CursorCenter 0");

		if (FogEnable)
			PushToConsole("FogEnable 1");
		else
			PushToConsole("FogEnable 0");

		if (Skeleton) {
			PushToConsole("ModelDebug_DrawSkeleton 1"); 
		}
		else {
			PushToConsole("ModelDebug_DrawSkeleton 0"); 
		}
		if  (boxes)
			PushToConsole("ModelDebug_DrawBoxes 1");
		else
			PushToConsole("ModelDebug_DrawBoxes 0");

		if  (nosky)
			PushToConsole("DrawSky 0");
		else
			PushToConsole("DrawSky 1");

		if  (worldframe)
			PushToConsole("WireFrame 1");
		else
			PushToConsole("WireFrame 0");

		if  (playerframe)
			PushToConsole("WireFrameModels 1");
		else
			PushToConsole("WireFrameModels 0");

		if  (nogun)
			PushToConsole("DrawGuns 0");
		else
			PushToConsole("DrawGuns 1");
		Sleep(100);
		__asm popad;
	}
}

bool Ready(void)
{
    if( GetModuleHandleA("CShell.dll")!= NULL)
        return true;
    return false;
}

DWORD WINAPI dwMainThread(LPVOID)
{
	while (!Ready())
		Sleep(200);
	CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Main, NULL, NULL, NULL);
	return 0;
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
	DisableThreadLibraryCalls(hDll);
	if ( dwReason == DLL_PROCESS_ATTACH )
	{
		MessageBoxA(0, "Coded By lauwy", "Injected", 0);
		CreateThread(NULL, NULL, dwMainThread, NULL, NULL, NULL);
	}
	return TRUE;
}
can some one maby fix the code so xtrap don't detects it?
#1 · edited 16y ago · 16y ago
Hahaz
Hahaz
Ask Cristyboy, he made working hotkeys hack for xp users but i doubt he will share his base for us ^^
#2 · 16y ago
lauwy
lauwy
Thanks for the tip.
I'm going to try to make hotkey's with keyboard hooks

Maby that works :P
Edit: they also work
lets make a dll!
#3 · edited 16y ago · 16y ago
Hahaz
Hahaz
ok, if it works share it with me

all the best.
#4 · 16y ago
lauwy
lauwy
Sure, I alway's share my codes
#5 · 16y ago
Yepikiyay
Yepikiyay
whats the point of that if you need a bypass?
#6 · 16y ago
MR
mrkiller2010
Quote Originally Posted by Yepikiyay View Post
whats the point of that if you need a bypass?
To bypass xtrap /me
#7 · 16y ago
lauwy
lauwy
Crossfire detects a part of this script:
Code:
	MSG msg = {0};




   while (GetMessage(&msg, NULL, 0, 0) != 0) {

		__asm pushad;k

		if (msg.message == WM_HOTKEY) {
			if( msg.wParam == 1 ) {
				boxes = !boxes;
			}
Maby I only need to change msg dunno, did't tried jet. (crossfire detects it as a memory hack)
#8 · 16y ago
MR
mrkiller2010
Loog in msn
#9 · 16y ago
lauwy
lauwy
First I'm going to take a shower :P
haha.

If I have time then I finish the keybord hooks
#10 · 16y ago
MR
mrkiller2010
OKay but logg in after shower
#11 · 16y ago
lauwy
lauwy
Delete the Sleep() Then it works for xp
#12 · 16y ago
lCalib3rl
lCalib3rl
Quote Originally Posted by lauwy View Post
Delete the Sleep() Then it works for xp
what you mean?
#13 · 16y ago
lauwy
lauwy
The hotkey's don't work for xp, on windows 7 they work fine. But if you delete the Sleep(100) from the script, it will also work for xp.
#14 · 16y ago
lCalib3rl
lCalib3rl
why its dected? i have do what you say.
and secound qwestion what are the hotkays?
#15 · edited 16y ago · 16y ago
Posts 1–15 of 17 · Page 1 of 2

Post a Reply

Similar Threads

  • HotKey hack sourceBy powerfear in Combat Arms Hack Coding / Programming / Source Code
    22Last post 16y ago
  • [source] menu screen hack with hotkeyBy lauwy in CrossFire Hack Coding / Programming / Source Code
    7Last post 16y ago
  • Hotkey Hack Source + Addies! (4NOOBS)By Lunatic in WarRock Hack Source Code
    4Last post 15y ago
  • one of my basic hotkey hacksBy mtbman19 in WarRock - International Hacks
    15Last post 18y ago
  • Some D3D Source that I hackedBy phoenixraider in C++/C Programming
    12Last post 17y ago

Tags for this Thread

None