Source Codes For an Auto hack good features

Posts 1–12 of 12 · Page 1 of 1
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);
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.
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 ==========
Visual studio burned you. /

Quote Originally Posted by Visual Studio
error C2447: '{' : missing function header (old-style formal list?)
take this part out of your hack

Code:
} else {
Memoria((LPVOID) (RELOAD), "\x0F\x84\xB1\x01\x00\x00", 6);
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
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.
1st, declare your #defines globally. If you know c++, you would have done this. Also, add in the memoria function that UGodly just posted.
Luls at this..

btw why you guys use memoria , memcpy better..
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?
RtlMoveMemory()
-> since schim told me it is faster than memcpy xD
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?
Posts 1–12 of 12 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us