Smile*Future*CA hacker needing help

Posts 115 of 34 · Page 1 of 3
*Future*CA hacker needing help
I am willing to help out the MPGH CA community,and I am in need of some help here,and this is where I am going wrong in my first simple hack.
What am I doing wrong here?I am also trying to make this just a hotkey hack,just so you know.

Code:
#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* )( 0x3778BFB0 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}	
void main()
{
while(true)

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" );
while(true)
	{
PushToConsole("FogEnable 1" );Numpad 2
while(true)
	{
PushToConsole("WeaponSway 0.000000" );Numpad 3
while)true
	{
PushToConsole("WhiteBlood 1" );Numpad 4
{
}

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);
}
return TRUE;
}
You need to learn the programming language to be able to make hacks.

You wouldn't put while loops inside while loops, use GetAsyncKeyState instead.
your code is all messed up and its gonna lag to hell n back...here i'll try n help a bit. i added glass walls to your code too btw (its my fav hack lol)

i didn't do the whole code, but you should get it from what i did...i'm too lazy to do all the work for you

Code:
#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* )( 0x3778BFB0 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}	
void main()
{
                bool recoil = false, walls = false, fog = false, sway = false, blood = false;

while(true)
{
if(GetAsyncKeyState(VK_NUMPAD0)<0){     
			walls = !walls;  
			if(walls){ 
				memcpy((LPVOID)0x57207A, "\x6A\x01", 2);
			} else { 
				memcpy((LPVOID)0x57207A, "\x6A\x00", 2);
				
			}
Sleep(150)
}
if(GetAsyncKeyState(VK_NUMPAD1)<0){
recoil = !recoil;
if(recoil){
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" );
} else {
Put Normal Values for Recoil in PTC format HERE! (idk the original Values
}
Sleep(150)
}
if(GetAsyncKeyState(VK_NUMPAD1)<0){
fog = !fog;
if(fog){
PushToConsole("FogEnable 0");
} else {
PushToConsole("FogEnable 1");
}
Sleep(150)
}
if(GetAsyncKeyState(VK_NUMPAD2)<0){
sway = !sway;
if(sway){
PushToConsole("WeaponSway 0.000000" )
} else {
NORMAL WeaponSway In PTC Format Goes here
}
Sleep(150)
}
PushToConsole("WhiteBlood 1" );Numpad 4
{
}

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);
}
return TRUE;
}
Quote Originally Posted by supercarz1991 View Post
your code is all messed up and its gonna lag to hell n back...here i'll try n help a bit. i added glass walls to your code too btw (its my fav hack lol)

i didn't do the whole code, but you should get it from what i did...i'm too lazy to do all the work for you

Code:
#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* )( 0x3778BFB0 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}	
void main()
{
                bool recoil = false, walls = false, fog = false, sway = false, blood = false;

while(true)
{
if(GetAsyncKeyState(VK_NUMPAD0)<0){     
			walls = !walls;  
			if(walls){ 
				memcpy((LPVOID)0x57207A, "\x6A\x01", 2);
			} else { 
				memcpy((LPVOID)0x57207A, "\x6A\x00", 2);
				
			}
Sleep(150)
}
if(GetAsyncKeyState(VK_NUMPAD1)<0){
recoil = !recoil;
if(recoil){
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" );
} else {
Put Normal Values for Recoil in PTC format HERE! (idk the original Values
}
Sleep(150)
}
if(GetAsyncKeyState(VK_NUMPAD1)<0){
fog = !fog;
if(fog){
PushToConsole("FogEnable 0");
} else {
PushToConsole("FogEnable 1");
}
Sleep(150)
}
if(GetAsyncKeyState(VK_NUMPAD2)<0){
sway = !sway;
if(sway){
PushToConsole("WeaponSway 0.000000" )
} else {
NORMAL WeaponSway In PTC Format Goes here
}
Sleep(150)
}
PushToConsole("WhiteBlood 1" );Numpad 4
{
}

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);
}
return TRUE;
}
Lol The code is fail... 33 errors!
This is the first ca hack i made.

[php]
#include "stdafx.h"
#include <windows.h>


void MyHack()
{
int Src2 = 12;
const int* pSrc2 =&Src2;
while(true)
{

if(GetAsyncKeyState(VK_NUMPAD2)) // Spectator mode
{
*(int*)0x37768C3C = 12;
memcpy((void *)0x37768C3C,pSrc2,sizeof(int));

}





Sleep(20);
}
}

BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
MessageBox (0, TEXT("Happy Hacking\n"), TEXT("~Liberty~"), MB_ICONINFORMATION);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)MyHack, 0, 0, 0);
break;
case DLL_PROCESS_DETACH:
break;
}
return true;
}

[/php]
Is the way he addressed the numpads correct though?
Quote Originally Posted by GridMaster View Post
Is the way he addressed the numpads correct though?
no where near

address a hot key like this

Code:
if(GetAsyncKeyState(VK_NUMPAD0)<0){     
			walls = !walls;  
			if(walls){ 
				memcpy((LPVOID)0x57207A, "\x6A\x01", 2);
			} else { 
				memcpy((LPVOID)0x57207A, "\x6A\x00", 2);
				
			}
Sleep(150)
}
You forgot a bracket after
Code:
while(true)
supposed to be
Code:
while(true){
also you are adressing your hotkeys incorrectly, see Supercarz post and Virtual-Key Codes

Good Luck!
yay! i actually feel like i know a lil bit of what i'm doing XD i just started C++ last week >.>

although my hack isn't work putting out cuz its a bunch of test ptc commands, like bouncing bullets ! ! !
What if I could auto inject all of them?And not have to use hotkeys.Is it possible?
Yep its possible. Just put all your PushToConsole commands after While(True).

Something Like:

Code:
//helped by CodeDemon
#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* )( 0x3778BFB0 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}	
void main()
{
while(true)
{
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" );
PushToConsole("FogEnable 1");
sleep(200); //to be safe
}
}

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);
}
return TRUE;
}
this part of u hack is detected:
void __cdecl PushToConsole( const char* szCommand )
{
DWORD *LTClient = ( DWORD* )( 0x3778BFB0 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{

try this it is not detected:
Credit: CoderNever

void PushToConsole(const char* Command) {
DWORD CNADDIE = 0x007d9200;
void* Send = ( void* )*( DWORD* )(CNADDIE);
__asm
{
push Command;
call Send;
add esp, -3-1+2+6;
}
Dude What WTF....
Why do you got loops inside of loops...Wow
I never seen no one do that before....
you copied that from me
Posts 115 of 34 · Page 1 of 3
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?