#include<Windows.h>
#include<process.h>
DWORD dwClientShell = NULL;
DWORD dwWeaponClass = NULL;
DWORD dwWeaponLoop = NULL;
#define WeaponClass 0x000000
#define WeaponReload 0x000
#define LTClient 0x000000
#define LTClientOffset 0x000
BOOL WeaponClass_Fucntion(DWORD dwWeaponMgr,DWORD dwOffset,FLOAT Value)
{
dwClientShell = (DWORD)GetModuleHandle("CShell.dll");
dwWeaponClass = *(DWORD*) (dwClientShell + dwWeaponMgr);
if(dwWeaponClass)
{
for (int i = NULL; i<=999; i++)
{
dwWeaponLoop = *(DWORD*) (dwWeaponClass+4*i);
if(dwWeaponLoop)
{
*(float*) (dwWeaponLoop+dwOffset) = (float)Value;
}
}
}
return EXIT_SUCCESS;
}
BOOL PushToConsole_Function( DWORD dwLTClient, DWORD dwLTClientOffset, CHAR * PTC_Command)
{
dwClientShell = (DWORD)GetModuleHandle("CShell.dll");
if(dwClientShell)
{
(*(VOID(WINAPIV **)(CHAR*))(*((DWORD*)dwClientShell+dwLTClient)+dwLTClientOffset))(PTC_Command);
}
return EXIT_SUCCESS;
}
VOID HackThread ( VOID )
{
WeaponClass_Fucntion(WeaponClass,WeaponReload,100.0f);
PushToConsole_Function(LTClient,LTClientOffset,"PushToConsole 0");
Sleep(100);
}
BOOL CheckModule ()
{
dwClientShell = (DWORD)GetModuleHandle("CShell.dll");
return (dwClientShell? true:false);
}
UINT WINAPI CallThread (PVOID)
{
while(!CheckModule())
Sleep(250);
while(true)
{
HackThread();
}
return EXIT_SUCCESS;
}
BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD dwCr,LPVOID lpvReserved)
{
DisableThreadLibraryCalls(hinstDLL);
if(dwCr = DLL_PROCESS_ATTACH)
{
_beginthreadex(NULL,NULL,&CallThread,NULL,NULL,NULL);
MessageBox(NULL,"Injected by OwNAppLe","CF hack",NULL);
}
return EXIT_FAILURE;
}

