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 › help in C++ code for crossfire hack

help in C++ code for crossfire hack

Posts 1–5 of 5 · Page 1 of 1
GS
GS-HITMAN
help in C++ code for crossfire hack
umm daniel needed some help with this code and i am posting it here too to see if anyone can help.

http://www.mpgh.net/forum/242-crossf...hack-code.html

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

using namespace std;

void __cdecl PushToConsole(char* szVal ) {
	DWORD pWeaponsPtr = *(DWORD*)(hShell + 0x90A4B8);
                if (pWeaponsPtr !=NULL)
                {
                        for (int i = 0; i < 512; i++)
                        {
                                DWORD pWeapon = *(DWORD*)(pWeaponsPtr + i * 4);
                                if (pWeapon)
                                        continue;

								*(float*)(pWeapon + 0x754) = 0.0f;
								*(float*)(pWeapon + 0x1F88) = 0.0f;
                        }
                }
}
DWORD WINAPI Main(LPVOID) {
	while(GetModuleHandleA("CShell.dll") == NULL ) {
	Sleep(100); //100ms
}
	
	bool No grenade damage = true;
	bool No weapon weight = true;


for(;;) {
	__asm pushad;

		if(GetAsyncKeyState(VK_F9)&1) {
			No grenade damage = !No grenade damage;
		}
		if(GetAsyncKeyState(VK_F10)&1) {
			No weapon weight = !No weapon weight;
		}

		if  (No grenade damage) {
			PushToConsole("No grenade damage 1");
		}
		else {
			PushToConsole("No grenade damage 0");
		}

		if  (No weapon weight) {
			PushToConsole("No weapon weight 1");
		}
		else {
			PushToConsole("No weapon weight 0");
		}
		Sleep(100);
		__asm popad;
	}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
	DisableThreadLibraryCalls(hDll);
	if ( dwReason == DLL_PROCESS_ATTACH )
	{
		MessageBoxA(0, "Maked by dani883345,enjoy it! ", "Successfully Injected", 0);
                system("start http://www.mpgh.net");
		CreateThread(NULL, NULL,Main, NULL, NULL, NULL);
	}
	return TRUE;
}
#1 · 15y ago
WH
whit
What part of the code do you need halp with ?
#2 · 15y ago
master131
[MPGH]master131
Variables can have spaces in them now? :/ Looks awfully copy and pasted. Also why is szVal even being passed through as a argument when it's not being used..
#3 · edited 15y ago · 15y ago
Astral Witch
Astral Witch
for(; {
__asm pushad;

if(GetAsyncKeyState(VK_F9)&1) {
No grenade damage = !No grenade damage;
}
if(GetAsyncKeyState(VK_F10)&1) {
No weapon weight = !No weapon weight;
}

if (No grenade damage) {
PushToConsole("No grenade damage 1");
}
else {
PushToConsole("No grenade damage 0");
}

if (No weapon weight) {
PushToConsole("No weapon weight 1");
}
else {
PushToConsole("No weapon weight 0");
}
Sleep(100);
__asm popad;
}
}
describing the hack in your code definitely makes it work

very clever
#4 · 15y ago
That0n3Guy
That0n3Guy
Quote Originally Posted by Astral Witch View Post
describing the hack in your code definitely makes it work

very clever
If only that worked in real applications.

if(Player isn't dead) {
PlayersHealth = Full Health;
} else {
Revive Player;
}
#5 · 15y ago
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Tags for this Thread

None