my first hack attempt

Posts 16 of 6 · Page 1 of 1
my first hack attempt
this is my first hack attempt with the help of CN's tut, and others, i had some of it working 5 mins ago, but i changed some stuff to get things to work but now nothing works


#include <windows.h>
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void PushToConsole(const char* Command) {
DWORD CNADDIE = 0x007d9200;
void* Send = ( void* )*( DWORD* )(CNADDIE);
__asm
{
push Command;
call Send;
add esp, 4;
}
}
void main()
{
while(true)
{
PushToConsole("DyingTime 0");
PushToConsole("DeadCameraTime 0");
}
{
PushToConsole("SkelModelStencil -1" );
}
{
PushToConsole("FogEnable 0" );
}
{
PushToConsole("ModelDebug_DrawBoxes 0");
}
{
PushToConsole("ActivationDistance 1000000" );
}
{
PushToConsole("ReloadSpeed 0.000000" );
}
{
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" );
}
{
PushToConsole("CamMaxPosYOffset 200.000000");
PushToConsole("DuckDownCamOffSet 1000.000000");
}
{
PushToConsole("ShowHitSphere 0.000000" );
}
{
PushToConsole("FireSpeed 0.0" );
}
}
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;
}


any help would get appreciated
Code:
#include <windows.h>
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void PushToConsole(const char* Command) {
DWORD CNADDIE = 0x007d9200;
void* Send = ( void* )*( DWORD* )(CNADDIE);
__asm
{
push Command;
call Send;
add esp, 4;
}
}
void main()
{
while(true)
{
PushToConsole("DyingTime 0");
PushToConsole("DeadCameraTime 0");
PushToConsole("SkelModelStencil -1" );
PushToConsole("FogEnable 0" );
PushToConsole("ModelDebug_DrawBoxes 0");
PushToConsole("ActivationDistance 1000000" );
PushToConsole("ReloadSpeed 0.000000" );
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" );
PushToConsole("CamMaxPosYOffset 200.000000");
PushToConsole("DuckDownCamOffSet 1000.000000");
PushToConsole("ShowHitSphere 0.000000" );
PushToConsole("FireSpeed 0.0" );
}
}
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 might want to add a Sleep(25); into that loop.. Or you might get some insane lag.
ohhh ok, so i dont have to add {} in between each command line? and you mean adjust the sleep time i already have?
inside the loop, add Sleep(25);

and no, { } are to start and begin what to do after statements..
so
Code:
if (statement) {
//if that statement is true
//do all this code
//that is within the { }
}
ok, sent ya your thanks, just trying to make something with the options i really want and nothing else, .... now i need to find no recoil, lol
you are going to need alot more "#includes" for u hack
like d3d lib? i think thats 1
Posts 16 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?