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 › Combat Arms Hacks & Cheats › Combat Arms Hack Coding / Programming / Source Code › Source Codes For an Auto hack good features

Source Codes For an Auto hack good features

Posts 1–12 of 12 · Page 1 of 1
11vasher11
11vasher11
Source Codes For an Auto hack good features
I would make a hack but cant on this computer bcuz my ca doesnt work idk why so here::
#include <windows.h>
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void __cdecl PushToConsole( const char* szCommand )
{
DWORD *LTClient = ( DWORD* )( 0x377ED910 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
void main()
{
while(true)
{
PushToConsole("SkelModelStencil 1");
PushToConsole("ShowFps 1");
PushToConsole("FogEnable 1" );
PushToConsole("ActivationDistance 999999" )
PushToConsole("PerturbRotationEffect 0.000000" );
PushToConsole("PerturbIncreaseSpeed 0.000000" );
PushToConsole("PerturbWalkPercent 0.000000" );
PushToConsole("PerturbFiringIncreaseSpeed 0.000000" );
PushToConsole("PerturbRecoil 0.000000" );
PushToConsole("FireMovePerturb 0.000000" );
PushToConsole("ZoomedFireMoveDuckPerturb 0.000000" );
PushToConsole("ZoomedFireMovePerturb 0.000000" );
PushToConsole("ZoomedFireDuckPerturb 0.000000" );
}#define RECOIL1 0x3745BC20
#define RECOIL2 0x372315E9
#define RECOIL3 0x3745BC34
#define RECOIL4 0x3745BC37
#define RECOIL5 0x3745BC40
#define RELOAD 0x374A7894
Memoria((LPVOID) (RELOAD), "\x90\x90\x90\x90\x90\x90", 6);
} else {
Memoria((LPVOID) (RELOAD), "\x0F\x84\xB1\x01\x00\x00", 6);
}

}
DWORD WINAPI dwHackThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(100);
main();
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
#1 · 15y ago
SH
shugeevan
Quote Originally Posted by 11vasher11 View Post
}#define RECOIL1 0x3745BC20
#define RECOIL2 0x372315E9
#define RECOIL3 0x3745BC34
#define RECOIL4 0x3745BC37
#define RECOIL5 0x3745BC40
#define RELOAD 0x374A7894
Memoria((LPVOID) (RELOAD), "\x90\x90\x90\x90\x90\x90", 6);
} else {
Memoria((LPVOID) (RELOAD), "\x0F\x84\xB1\x01\x00\x00", 6);
}
Uhhh? Lol?

Please.
#2 · 15y ago
Spookerzz
Spookerzz
Is that no recoil I see?

Edit: I might want to fix your source.

Code:
1>------ Build started: Project: No Recoil, Configuration: Debug Win32 ------
1>Compiling...
1>base.cpp
1>c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(29) : error C2146: syntax error : missing ';' before identifier 'PushToConsole'
1>c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(38) : error C2014: preprocessor command must start as first nonwhite space
1>c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(44) : error C3861: 'Memoria': identifier not found
1>c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(45) : error C2059: syntax error : 'else'
1>c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(45) : error C2143: syntax error : missing ';' before '{'
1>c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(45) : error C2447: '{' : missing function header (old-style formal list?)
1>c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(49) : error C2059: syntax error : '}'
1>c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(49) : error C2143: syntax error : missing ';' before '}'
1>c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(49) : error C2059: syntax error : '}'
1>c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(51) : error C2143: syntax error : missing ';' before '{'
1>c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(51) : error C2447: '{' : missing function header (old-style formal list?)
1>c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(62) : error C2065: 'dwHackThread' : undeclared identifier
1>c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(63) : fatal error C1075: end of file found before the left brace '{' at 'c:\users\taskn\documents\visual studio 2008\projects\no recoil\no recoil\base.cpp(61)' was matched
1>Build log was saved at "file://c:\Users\TaskN\Documents\Visual Studio 2008\Projects\No Recoil\No Recoil\Debug\BuildLog.htm"
1>No Recoil - 13 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
#3 · edited 15y ago · 15y ago
Falingrave
Falingrave
Visual studio burned you. /

Quote Originally Posted by Visual Studio
error C2447: '{' : missing function header (old-style formal list?)
#4 · 15y ago
1on1
1on1
take this part out of your hack

Code:
} else {
Memoria((LPVOID) (RELOAD), "\x0F\x84\xB1\x01\x00\x00", 6);
#5 · 15y ago
UGodly
UGodly
add this after PTC Method

Code:
bool Memoria( void * pDest, char * szPatch, size_t sSize ) //Nopping Method
{ 
    DWORD dwOrgProtect = NULL; 
    if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect ))
        return FALSE;

    memcpy( pDest, szPatch, sSize ); 
    VirtualProtect( pDest, sSize, dwOrgProtect, NULL ); 
    return TRUE; 
}
'
U gotta tell what Memoria is
#6 · 15y ago
Spookerzz
Spookerzz
Quote Originally Posted by UGodly View Post
add this after PTC Method

Code:
bool Memoria( void * pDest, char * szPatch, size_t sSize ) //Nopping Method
{ 
    DWORD dwOrgProtect = NULL; 
    if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect ))
        return FALSE;

    memcpy( pDest, szPatch, sSize ); 
    VirtualProtect( pDest, sSize, dwOrgProtect, NULL ); 
    return TRUE; 
}
'
U gotta tell what Memoria is
Post it what it would look like in total after you've added that.
#7 · 15y ago
FV
fvestrgenrl
1st, declare your #defines globally. If you know c++, you would have done this. Also, add in the memoria function that UGodly just posted.
#8 · 15y ago
WH
whit
Luls at this..

btw why you guys use memoria , memcpy better..
#9 · 15y ago
deathninjak0
deathninjak0
Quote Originally Posted by whit View Post
Luls at this..

btw why you guys use memoria , memcpy better..
lol, I thought memoria reduces the lag?
#10 · 15y ago
doofbla
doofbla
RtlMoveMemory()
-> since schim told me it is faster than memcpy xD
#11 · 15y ago
flameswor10
flameswor10
Quote Originally Posted by 11vasher11 View Post
I would make a hack but cant on this computer bcuz my ca doesnt work idk why so here::
#include <windows.h>
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void __cdecl PushToConsole( const char* szCommand )
{
DWORD *LTClient = ( DWORD* )( 0x377ED910 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
void main()
{
while(true)
{
PushToConsole("SkelModelStencil 1");
PushToConsole("ShowFps 1");
PushToConsole("FogEnable 1" );
PushToConsole("ActivationDistance 999999" )
PushToConsole("PerturbRotationEffect 0.000000" );
PushToConsole("PerturbIncreaseSpeed 0.000000" );
PushToConsole("PerturbWalkPercent 0.000000" );
PushToConsole("PerturbFiringIncreaseSpeed 0.000000" );
PushToConsole("PerturbRecoil 0.000000" );
PushToConsole("FireMovePerturb 0.000000" );
PushToConsole("ZoomedFireMoveDuckPerturb 0.000000" );
PushToConsole("ZoomedFireMovePerturb 0.000000" );
PushToConsole("ZoomedFireDuckPerturb 0.000000" );
}#define RECOIL1 0x3745BC20
#define RECOIL2 0x372315E9
#define RECOIL3 0x3745BC34
#define RECOIL4 0x3745BC37
#define RECOIL5 0x3745BC40
#define RELOAD 0x374A7894
Memoria((LPVOID) (RELOAD), "\x90\x90\x90\x90\x90\x90", 6);
} else {
Memoria((LPVOID) (RELOAD), "\x0F\x84\xB1\x01\x00\x00", 6);
}

}
DWORD WINAPI dwHackThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(100);
main();
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
Broken source + heaps of errors. Seriously. Just by looking, Reload isn't defined.

Defining reload doesn't help. They belong at the top. Really?
#12 · 15y ago
Posts 1–12 of 12 · Page 1 of 1

Post a Reply

Similar Threads

  • Some One Try This Please Source Code For 1 Hit HackBy talamanak in CrossFire Hack Coding / Programming / Source Code
    28Last post 15y ago
  • Source code for any d3d/memory hackBy Ragehax in C++/C Programming
    6Last post 16y ago
  • My source code for all my great hacks!!!By ilo66 in CrossFire Hacks & Cheats
    32Last post 16y ago
  • My source code for a Combat Arms hack!!By ilo66 in Combat Arms Hacks & Cheats
    13Last post 16y ago
  • Public Source Code for hack.By Truly Free in Combat Arms Hack Coding / Programming / Source Code
    15Last post 16y ago

Tags for this Thread

None