You last visited: Today at 18:50
Advertisement
Hack Source Codes
Discussion on Hack Source Codes within the Combat Arms Hacks, Bots, Cheats & Exploits forum part of the Combat Arms category.
08/19/2014, 12:54
#1
elite*gold: 0
Join Date: May 2014
Posts: 47
Received Thanks: 10
Hack Source Codes
Hello,
today I found some Source Codes for CA Hacks, and I want to share it with you.
Local Player Structs
Code:
377B0858 // Local Pointer for CA NA
class Main;
class Info;
class Stats;
class WepInfo;
class Something;
class Main
{
public:
Info* goToInfoClass; //0000
};
class Info
{
public:
char unknown0[8];
__int32 Unknown1; //0008
__int32 iCurrentHealth; //000C
char unknown2[4];
__int32 iMaxHealth; //0014
char unknown3[4];
WepInfo* goToWepInfo;//001C
Something* goToSomething; //0020
char unknown4[348];
float fStamina; //0180
char unknown5[8];
__int32 iWeaponSlotInUse; //018C
float fCameraSomething; //0190
float fCameraSomething2; //0194
float fCameraSomething3; //0198
char unknown6[32];
Stats* goToStats; //01BC
};
class WepInfo
{
public:
__int32 iBackPackABulletsLeft; //0000
__int32 i2ndaryBulletsLeft; //0004
__int32 Unknown0; //0008
__int32 iGrenadesLeft; //000C
__int32 iBackPackBBulletsLeft; //0010
};
class Stats
{
public:
char unknown0[16];
char szLocalNameChangesInKill[16]; //0010
char unknown1[12];
__int32 iKills; //002C
__int32 iDeaths; //0030
char unknown2[44];
__int32 iHeadShots; //0060
};
class Something
{
public:
BYTE bIsAlive; //0000
};
Windowed mode, Speed/Jump, No Recoil
Code:
typedef void (*SetConsoleCmdInt_t)(char* Cmd, int myint);
SetConsoleCmdInt_t SetConsoleCmdInt;
DWORD NORECOIL = 0x5C0EF2;
DWORD dwCShell = NULL;
while ( dwCShell == NULL )
{
dwCShell = ( DWORD ) GetModuleHandle( "CShell.dll" );
Sleep( 250 );
}
SetConsoleCmdInt= (SetConsoleCmdInt_t) (dwCShell + (0x583F60-0x420000));
SetConsoleCmdInt("windowed",1);
//nametags
MemWrite(( void* )( dwCShell + 0x63990 ), "\xE9\xB6\x00\x00\x00\x90", 6 );
//recoil
MemWrite(( void* )( dwCShell + (NORECOIL-0x420000) ), "\x90\x90\x90\x90\x90", 5 );
SetConsoleCmdInt("FallDamageMin",0);
SetConsoleCmdInt("FallDamageMax",0);
bool MemWrite( void * pDest, char * szPatch, size_t sSize )
{
DWORD dwOrgProtect = NULL;
if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect ))
return FALSE;
memcpy( pDest, szPatch, sSize );
VirtualProtect( pDest, sSize, dwOrgProtect, NULL );
return TRUE;
}
Windowed Mode
Code:
// Global
CILTClient * gILTClient = ( CILTClient* ) NULL;
// Function
void _cdecl hConsoleCMD( const char * szCommand )
{
_asm
{
MOV EAX, DWORD PTR DS:[g_pILTClient];
PUSH szCommand;
CALL DWORD PTR [EAX + 0x208];
ADD ESP, 0x4;
}
}
// Thread
DWORD WINAPI dwSleepThread( LPVOID lpArgs )
{
DWORD dwCShell = NULL;
while ( !dwCShell )
{
Sleep( 100 );
dwCShell = ( DWORD ) GetModuleHandle( "CShell.dll" );
}
if ( gILTClient == NULL )
{
MemRead(( void* )( dwCShell + ( 0x803050 - 0x420000 )), &gILTClient, 4 );
}
Sleep( 1500 );
while ( gILTClient != NULL )
{
static bool bDoOnce = TRUE;
if ( bDoOnce == TRUE )
{
bDoOnce = FALSE;
hConsoleCMD( "windowed 1" );
AddLog( "ILTClient: 0x%.8X", ( DWORD ) gILTClient );
}
}
return FALSE;
}
Weapon/Rank/Character Hack
Code:
if((*(BYTE *)GameStatus == 1)){
Msg.Writeuint8(114);
Msg.Writeuint8(0); //1
Msg.Writeuint8(0); //2
Msg.Writeuint8(0); //3
Msg.Writeuint8(0); //4
Msg.Writeuint8(0); //5
Msg.Writeuint8(0); //6
Msg.Writeuint8(0); //7
Msg.Writeuint8(0); //8
Msg.Writeuint8(0); //9
Msg.Writeuint8(0); //10
Msg.Writeuint8(0); //11
Msg.Writeuint8(0); //12
Msg.Writeuint8(0); //13
Msg.Writeuint8(0); //14
Msg.Writeuint8(0); //15
Msg.Writeuint8(23); //16 Character //23 is viper // Character by mmbob or DrUnKeN ChEeTaH
Msg.Writeuint8(1);
Msg.Writeuint8(0);
Msg.Writeuint8(51); //19 Rank // Rank by mmbob or DrUnKeN ChEeTaH
Msg.Writeuint8(1); // 20
Msg.Writeuint8(0); // 21
Msg.Writeuint8(0);
Msg.Writeuint8(0);
Msg.Writeuint8(3);
Msg.Writeuint8(1);
Msg.Writeuint8(255);
Msg.Writeuint8(3);
Msg.Writeuint8(0);
Msg.Writeuint8(255);
Msg.Writeuint8(0);
Msg.Writeuint8(0);
Msg.Writeuint8(255);
Msg.Writeuint8(0);
Msg.Writeuint8(0);
Msg.Writeuint8(255);
Msg.Writeuint8(0);
Msg.Writeuint8(0);
Msg.Writeuint8(0);
Msg.Writeuint8(0);
Msg.Writeuint8(3);
Msg.Writeuint8(19);
Msg.Writeuint8(0);
Msg.Writeuint8(0);
Msg.Writeuint8(47);
Msg.Writeuint8(68);
Msg.Writeuint8(114);
Msg.Writeuint8(89);
Msg.Writeuint8(3);
Msg.Writeuint8(0);
Msg.Writeuint8(4);
Msg.Writeuint8(106);
Msg.Writeuint8(0);
Msg.Writeuint8(255);
Msg.Writeuint8(255);
Msg.Writeuint8(255);
Msg.Writeuint8(254);
Msg.Writeuint8(255);
Msg.Writeuint8(254);
Msg.Writeuint8(255);
Msg.Writeuint8(254);
Msg.Writeuint8(255);
Msg.Writeuint8(24);
Msg.Writeuint8(0);
Msg.Writeuint8(255);
Msg.Writeuint8(1);
Msg.Writeuint16(209); // Weapon Spawn by PerfecBR
pSendToServer(Msg.Read(), MESSAGE_GUARANTEED);
}
activate the hack only if you are inside the room like: GameStatus == 1 because the same ID is used to go to lobby.
if you want to use another character, change the value in //16, starting at 0 to 60 or lower value to ensure the security of your account. to use a rank higher than is just visual, change the value //19, starting at 0 to 58 if I remember well, in 58 it seems that GM is shown. in the last parameter, change the value 209 for a value less than or greater and the weapon will be changed.
each time you make a change it will be necessary to send the ID with the changes in parameters.
you change the 209 with the weapon you want, equally the old weapon.
Invisible(ghost) Mode
Code:
void cServerExploits::SpamMessage( char *title, char *message )
{
if( !eng.IsReady )
return;
if( dwFloodLock[0] < GetTickCount() )
{
dwFloodLock[0] = ( GetTickCount() + 150 );
CCAutoMessage pMsg;
pMsg.Writeuint8( 104 );
pMsg.WriteWString( (wchar_t*)tools.asciiDecode( message ).c_str() );
pMsg.WriteWString( (wchar_t*)tools.asciiDecode( title ).c_str() );
pMsg.Writeint32( 0 );
eng.pLTClient_l->SendToServer( pMsg.Read(), MSG_GRANT );
}
}
void cServerExploits::Suicide( )
{
if( !eng.IsReady )
return;
if( dwFloodLock[1] < GetTickCount() )
{
dwFloodLock[1] = ( GetTickCount() + 800 );
CCAutoMessage pMsg;
pMsg.Writeuint8( 417 );
eng.pLTClient_l->SendToServer( pMsg.Read(), MSG_GRANT );
}
}
void cServerExploits::InstantRespawn( )
{
if( !eng.IsReady )
return;
if( dwFloodLock[2] < GetTickCount() )
{
dwFloodLock[2] = ( GetTickCount() + 800 );
CCAutoMessage pMsg;
pMsg.Writeuint8( 113 );
pMsg.Writeuint8( 1 );
pMsg.Writeuint32( 1 );
eng.pLTClient_l->SendToServer( pMsg.Read(), MSG_GRANT );
}
}
void cServerExploits::VoiceSpam( )
{
if( !eng.IsReady )
return;
if( dwFloodLock[8] < GetTickCount() )
{
dwFloodLock[8] = ( GetTickCount() + 150 );
CCAutoMessage pMsg;
pMsg.Writeuint8( 190 );
pMsg.Writeuint8( 1 );
pMsg.Writeuint8( 1 );
pMsg.Writeuint16( 7 );//3
eng.pLTClient_l->SendToServer( pMsg.Read(), MSG_GRANT );
}
}
void cServerExploits::AntiKick( )
{
if( !eng.IsReady )
return;
if( dwFloodLock[9] < GetTickCount() )
{
dwFloodLock[9] = ( GetTickCount() + 50 );
CCAutoMessage pMsg;
pMsg.Writeuint8( 206 );
eng.pLTClient_l->SendToServer( pMsg.Read(), MSG_GRANT );
}
}
void cServerExploits::RejoinAfterEliteKick( )
{
if( !eng.IsReady )
return;
if( dwFloodLock[10] < GetTickCount() )
{
dwFloodLock[10] = ( GetTickCount() + 80 );
CCAutoMessage pMsg;
pMsg.Writeuint8( 189 );
eng.pLTClient_l->SendToServer( pMsg.Read(), MSG_GRANT );
}
}
void cServerExploits::KickPlayer( BYTE playerindex, int kickreason )
{
if( !eng.IsReady )
return;
if( playerindex < 0 || playerindex > 24 || kickreason < 1 || kickreason > 6 )
return;
if( dwFloodLock[11] < GetTickCount() )
{
dwFloodLock[11] = ( GetTickCount() + 600 );
CCAutoMessage pMsg;
pMsg.Writeuint8( 206 );
pMsg.Writeuint8( 1 );
pMsg.Writeuint8( 1 );
pMsg.Writeuint16( playerindex );
pMsg.Writeuint16( kickreason );//1 - 6
eng.pLTClient_l->SendToServer( pMsg.Read(), MSG_GRANT );
}
}
void cServerExploits::BanThisAccount( )
{
if( !eng.IsReady )
return;
if( dwFloodLock[16] < GetTickCount() )
{
dwFloodLock[16] = ( GetTickCount() + 2000 );
CCAutoMessage pMsg;
pMsg.Writeuint16( 376 );
pMsg.Writeuint8( 1 );
pMsg.Writeuint8( 1 );
pMsg.Writeuint8( 1 );
eng.pLTClient_l->SendToServer( pMsg.Read(), MSG_GRANT );
}
}
08/21/2014, 20:52
#2
elite*gold: 0
Join Date: May 2012
Posts: 1
Received Thanks: 0
How it works?
08/21/2014, 22:51
#3
elite*gold: 0
Join Date: May 2014
Posts: 47
Received Thanks: 10
Quote:
Originally Posted by
aaron0001
How it works?
If you can't code, this thread is the wrong for you.
08/22/2014, 09:30
#4
elite*gold: 0
Join Date: Aug 2009
Posts: 16
Received Thanks: 6
Don't be afraid to learn.
Quote:
Originally Posted by
aaron0001
How it works?
Grab a base, update the hook, entry point and addies. Implement these code snippets to add support for the listed features.
Similar Threads
[HELP]Source Codes
03/07/2011 - CrossFire - 6 Replies
Hey,
hat jemand evtl. gepatchte source codes?
Könntet ihr mir diese dann bitte schicken? Ich werde diese dann updaten und einen hack hier releasen.
(Falls ich hier in der falschen section bin, sag bitte bescheid)
MfG
elitepvpers:D
Source codes
05/09/2010 - WarRock - 5 Replies
man sieht ja oft hacks die fast identisch aus sehen wie blacklabel und ein nnn hack oder auch viele andere wie der mpgh hack von pixi und der gleiche auf türkisch sind die ganzen Source code eigentlich public oder wieso gibt es immer so viele hacks die indentisch sind?
kann mir das mal jemand sagen
bzw wenn die public sind mir sagen wo ich die her kriege?
Source Codes
03/25/2008 - General Gaming Discussion - 0 Replies
Hi wollte fragen ob wer nen Source Code von nem Aimbot bzw wallhack hat?
source codes?
09/09/2005 - World of Warcraft - 4 Replies
hi kann mir mal einer sagen wo ich entweder source codes von den hacks finde, würd mir das gerne mal ankucken um selber was machen zu können
zur not würde auch ne seite mit allgemeinen tuts reichen.. was ich bis jetzt gefunden hab sind immer nur so redsälige seiten die was von objekten und shit erzählen und lauter so basiswissen
irgendwie gibts scheinbar keine seiten für forgeschrittene
also: hat jemand gute links ^^ ?? ich warte
All times are GMT +2. The time now is 18:52 .