You need to call the hacks and start the dll
I inject my dll i made, engine runs, but CA never loads. /
[PHP]#include <windows.h>
#define RECOIL1 0x3745BC20 //flameswor told me in VM, ty ^^
#define RECOIL2 0x372315E9
#define RECOIL3 0x3745BC34
#define RECOIL4 0x3745BC37
#define RECOIL5 0x3745BC40
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
void __cdecl Push(const char* pushCommand)
{
DWORD *LTClient = (DWORD*)(0x377ED910);
void* CONoff = (void*)*( DWORD* )( *LTClient + 0x208 );
__asm
{
push pushCommand;
call CONoff;
add esp, 4;
}
}
bool GameReady()
{
if(GetModuleHandleA("d3d9.dll")!=NULL && GetModuleHandleA("ClientFX.fxd")!=NULL && GetModuleHandleA("CShell.dll")!=NULL)
return true;
return false;
}
bool Memoria( 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;
}
//---------------------------------------------------------------------------------
//---------------------------------------------------------------------------------
bool __stdcall DllMain(HINSTANCE hInst,DWORD reas,void* reserved)
{
while(GameReady() != 1)
{
Sleep(100);
}
Push("ShowFps 1"); //fps
Push("ActivationDistance 9001"); //far reach, its over 9000
Push("FogEnable 1"); //nofog
Push("SkelModelStencil 1"); //nx chams
//Spped
Push("BaseMoveAccel 3000.000000");
Push("StartAccel 560.000000");
Push("MaxAccel 3000.000000");
Push("AccelInc 6000.000000");
Push("WalkVel 110.000000");
Push("FRunVel 320.000000");
Push("BRunVel 320.000000");
Push("SRunVel 320.000000");
Push("DuckVel 100.000000");
//no recoil, ty flameswor
Memoria((LPVOID)(RECOIL1), "\x90\x90\x90", 3);
Memoria((LPVOID)(RECOIL2), "\x90\x90\x90", 3);
Memoria((LPVOID)(RECOIL3), "\x90\x90\x90", 3);
Memoria((LPVOID)(RECOIL4), "\x90\x90\x90", 3);
Memoria((LPVOID)(RECOIL5), "\x90\x90\x90", 3);
//no spread
Push("PerturbRotationEffect 0.000000" );
Push("PerturbIncreaseSpeed 0.000000" );
Push("PerturbWalkPercent 0.000000" );
Push("PerturbFiringIncreaseSpeed 0.000000" );
Push("PerturbRecoil 0.000000" );
Push("FireMovePerturb 0.000000" );
Push("ZoomedFireMoveDuckPerturb 0.000000" );
Push("ZoomedFireMovePerturb 0.000000" );
Push("ZoomedFireDuckPerturb 0.000000" );
//nosway
Push("WeaponSway 0.000000" );
}
[/PHP]
未来が見えなくて怖いから
未来が見えてしまって悲しいから
目を閉じて優しい思い出に浸ってしまう
You need to call the hacks and start the dll
Lol is that your whole Hack, its missing a few things, like the start of the dll -.-
Edit: yea what deathninjak said
Dont ban me
i was just curious about making hacks /
just wanted to see what it's like.
i dont know any winapi other than simple stuff
未来が見えなくて怖いから
未来が見えてしまって悲しいから
目を閉じて優しい思い出に浸ってしまう
Also, this is wrong section too.
ok, hows this.
[php]#include <windows.h>
#define RECOIL1 0x3745BC20 //flameswor told me in VM, ty ^^
#define RECOIL2 0x372315E9
#define RECOIL3 0x3745BC34
#define RECOIL4 0x3745BC37
#define RECOIL5 0x3745BC40
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
void __cdecl Push(const char* pushCommand)
{
DWORD *LTClient = (DWORD*)(0x377ED910);
void* CONoff = (void*)*( DWORD* )( *LTClient + 0x208 );
__asm
{
push pushCommand;
call CONoff;
add esp, 4;
}
}
bool Memoria( 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;
}
bool GameReady()
{
if(GetModuleHandleA("d3d9.dll")!=NULL && GetModuleHandleA("ClientFX.fxd")!=NULL && GetModuleHandleA("CShell.dll")!=NULL)
return true;
return false;
}
void hacks()
{
while(GameReady() != 1)
{
Sleep(100);
}
while(GameReady() == 1)
{
while(true)
{
bool chams = false;
bool speed = false;
bool recoil = false;
bool spread = false;
Push("ShowFps 1"); //fps
Push("ActivationDistance 9001"); //far reach, its over 9000
Push("FogEnable 1"); //nofog
Push("WeaponSway 0.000000" );
if(GetAsyncKeyState(VK_NUMPAD0)<0)
{
if(chams)
{
Push("SkelModelStencil 0");
chams = false;
}
else
{
Push("SkelModelStencil 1");
chams = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD1)<0)
{
if(speed)
{
Push("BaseMoveAccel 3000.000000");
Push("StartAccel 500.000000");
Push("MaxAccel 3000.000000");
Push("AccelInc 6000.000000");
Push("WalkVel 70.000000");
Push("FRunVel 285.000000");
Push("BRunVel 285.000000");
Push("SRunVel 285.000000");
Push("DuckVel 50.000000");
speed = false;
}
else
{
Push("BaseMoveAccel 3000.000000");
Push("StartAccel 560.000000");
Push("MaxAccel 3000.000000");
Push("AccelInc 6000.000000");
Push("WalkVel 110.000000");
Push("FRunVel 320.000000");
Push("BRunVel 320.000000");
Push("SRunVel 320.000000");
Push("DuckVel 100.000000");
speed = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD2)<0)
{
if(recoil)
{
Memoria((LPVOID)(RECOIL1), "\xD8\x66\x54", 3);
Memoria((LPVOID)(RECOIL2), "\xD9\x46\x54", 3);
Memoria((LPVOID)(RECOIL3), "\xD9\x5E\x54", 3);
Memoria((LPVOID)(RECOIL4), "\xD9\x46\x48", 3);
Memoria((LPVOID)(RECOIL5), "\xD9\x5E\x48", 3);
recoil = false;
}
else
{
//no recoil, ty flameswor
Memoria((LPVOID)(RECOIL1), "\x90\x90\x90", 3);
Memoria((LPVOID)(RECOIL2), "\x90\x90\x90", 3);
Memoria((LPVOID)(RECOIL3), "\x90\x90\x90", 3);
Memoria((LPVOID)(RECOIL4), "\x90\x90\x90", 3);
Memoria((LPVOID)(RECOIL5), "\x90\x90\x90", 3);
recoil = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD3)<0)
{
//no spread
Push("PerturbRotationEffect 0.000000" );
Push("PerturbIncreaseSpeed 0.000000" );
Push("PerturbWalkPercent 0.000000" );
Push("PerturbFiringIncreaseSpeed 0.000000" );
Push("PerturbRecoil 0.000000" );
Push("FireMovePerturb 0.000000" );
Push("ZoomedFireMoveDuckPerturb 0.000000" );
Push("ZoomedFireMovePerturb 0.000000" );
Push("ZoomedFireDuckPerturb 0.000000" );
spread = true;
}
}
}
}
BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpReserved)
{
switch( fdwReason )
{
case DLL_PROCESS_ATTACH:
MessageBoxA(NULL,"Injected","",MB_OK);
hacks();
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
[/php]
未来が見えなくて怖いから
未来が見えてしまって悲しいから
目を閉じて優しい思い出に浸ってしまう
This is in the wrong section, by the way.
Code:DWORD WINAPI dwHackThread(LPVOID)//calling the hack { while( !IsGameReadyForHook() ) Sleep(100); Hacks (); return 0; }Code:BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )//starting the dll { DisableThreadLibraryCalls(hDll); if ( dwReason == DLL_PROCESS_ATTACH ) { CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL); CreateThread(NULL, NULL, OPK, NULL, NULL, NULL); }
then hows this?
compiles fine /
[php]#include <windows.h>
#define RECOIL1 0x3745BC20 //flameswor told me in VM, ty ^^
#define RECOIL2 0x372315E9
#define RECOIL3 0x3745BC34
#define RECOIL4 0x3745BC37
#define RECOIL5 0x3745BC40
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
void __cdecl Push(const char* pushCommand)
{
DWORD *LTClient = (DWORD*)(0x377ED910);
void* CONoff = (void*)*( DWORD* )( *LTClient + 0x208 );
__asm
{
push pushCommand;
call CONoff;
add esp, 4;
}
}
bool Memoria( 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;
}
bool GameReady()
{
if(GetModuleHandleA("d3d9.dll")!=NULL && GetModuleHandleA("ClientFX.fxd")!=NULL && GetModuleHandleA("CShell.dll")!=NULL)
return true;
return false;
}
void hacks()
{
while(true)
{
bool chams = false;
bool speed = false;
bool recoil = false;
bool spread = false;
Push("ShowFps 1"); //fps
Push("ActivationDistance 9001"); //far reach, its over 9000
Push("FogEnable 1"); //nofog
Push("WeaponSway 0.000000" );
if(GetAsyncKeyState(VK_NUMPAD0)<0)
{
if(chams)
{
Push("SkelModelStencil 0");
chams = false;
}
else
{
Push("SkelModelStencil 1");
chams = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD1)<0)
{
if(speed)
{
Push("BaseMoveAccel 3000.000000");
Push("StartAccel 500.000000");
Push("MaxAccel 3000.000000");
Push("AccelInc 6000.000000");
Push("WalkVel 70.000000");
Push("FRunVel 285.000000");
Push("BRunVel 285.000000");
Push("SRunVel 285.000000");
Push("DuckVel 50.000000");
speed = false;
}
else
{
Push("BaseMoveAccel 3000.000000");
Push("StartAccel 560.000000");
Push("MaxAccel 3000.000000");
Push("AccelInc 6000.000000");
Push("WalkVel 110.000000");
Push("FRunVel 320.000000");
Push("BRunVel 320.000000");
Push("SRunVel 320.000000");
Push("DuckVel 100.000000");
speed = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD2)<0)
{
if(recoil)
{
Memoria((LPVOID)(RECOIL1), "\xD8\x66\x54", 3);
Memoria((LPVOID)(RECOIL2), "\xD9\x46\x54", 3);
Memoria((LPVOID)(RECOIL3), "\xD9\x5E\x54", 3);
Memoria((LPVOID)(RECOIL4), "\xD9\x46\x48", 3);
Memoria((LPVOID)(RECOIL5), "\xD9\x5E\x48", 3);
recoil = false;
}
else
{
//no recoil, ty flameswor
Memoria((LPVOID)(RECOIL1), "\x90\x90\x90", 3);
Memoria((LPVOID)(RECOIL2), "\x90\x90\x90", 3);
Memoria((LPVOID)(RECOIL3), "\x90\x90\x90", 3);
Memoria((LPVOID)(RECOIL4), "\x90\x90\x90", 3);
Memoria((LPVOID)(RECOIL5), "\x90\x90\x90", 3);
recoil = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD3)<0)
{
//no spread
Push("PerturbRotationEffect 0.000000" );
Push("PerturbIncreaseSpeed 0.000000" );
Push("PerturbWalkPercent 0.000000" );
Push("PerturbFiringIncreaseSpeed 0.000000" );
Push("PerturbRecoil 0.000000" );
Push("FireMovePerturb 0.000000" );
Push("ZoomedFireMoveDuckPerturb 0.000000" );
Push("ZoomedFireMovePerturb 0.000000" );
Push("ZoomedFireDuckPerturb 0.000000" );
spread = true;
}
}
}
DWORD WINAPI dwHackThread(LPVOID)
{
while( !GameReady() )
Sleep(100);
hacks();
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);
}
}[/php]
未来が見えなくて怖いから
未来が見えてしまって悲しいから
目を閉じて優しい思い出に浸ってしまう
/moved to help :/