

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH ) {
CreateThread(0,0,(LPTHREAD_START_ROUTINE)StartHack,0,0,0);
}
return true;
}
DWORD WINAPI loadddd(LPVOID) {
while(GetModuleHandleA("CShell.dll") == NULL) {
Sleep(150);
}
Sleep(100);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)D3D_Hook, NULL, NULL, NULL);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)HACKthread, NULL, NULL, NULL);
return 0;
}


#include <Windows.h>
/*
Usefull functions
BOOL WINAPI VirtualProtect(
__in LPVOID lpAddress,
__in SIZE_T dwSize,
__in DWORD flNewProtect,
__out PDWORD lpflOldProtect
);
*/
void WriteMem(int address, BYTE datatowrite[], int sizetowrite) {
DWORD oldprotection; //The protection will be stored in here
VirtualProtect((LPVOID)address, sizetowrite, PAGE_EXECUTE_READWRITE, &oldprotection); //will remove the protection
memcpy((LPVOID)address, (const void*)datatowrite, sizetowrite); //place the data to the address
VirtualProtect((LPVOID)address, sizetowrite, oldprotection, &oldprotection); //will restore the protection
return;
}
void WriteNOPs(int address, int nops) {
DWORD nop = 0x90;
DWORD oldprotection;
VirtualProtect((LPVOID)address, nops, PAGE_EXECUTE_READWRITE, &oldprotection);
for(int x = 0; x < nops; ++x) {
memcpy((void*)(address+x), &nop, 1);
}
VirtualProtect((LPVOID)address, nops, oldprotection, &oldprotection);
return;
}
DWORD Cshell = (DWORD)GetModuleHandleA("Cshell.dll"); //Cshell
DWORD weaponc = *(DWORD*)(Cshell+0xA2A7E8); //ECX
if ( weaponc ) {
//memory editing here
}
#include<windows.h>
//#define WeaponMgr 0xA2A7E8
#define NoReload 0x2424
void WriteMem(int address, BYTE datatowrite[], int sizetowrite) {
DWORD oldprotection; //The protection will be stored in here
VirtualProtect((LPVOID)address, sizetowrite, PAGE_EXECUTE_READWRITE, &oldprotection); //will remove the protection
memcpy((LPVOID)address, (const void*)datatowrite, sizetowrite); //place the data to the address
VirtualProtect((LPVOID)address, sizetowrite, oldprotection, &oldprotection); //will restore the protection
return;
}
void WriteNOPs(int address, int nops) {
DWORD nop = 0x90;
DWORD oldprotection;
VirtualProtect((LPVOID)address, nops, PAGE_EXECUTE_READWRITE, &oldprotection);
for(int x = 0; x < nops; ++x) {
memcpy((void*)(address+x), &nop, 1);
}
VirtualProtect((LPVOID)address, nops, oldprotection, &oldprotection);
return;
}
DWORD WINAPI Hacks(LPVOID)
{
bool reload = false;
while(1)
{
DWORD Cshell = (DWORD)GetModuleHandleA("Cshell.dll"); //Cshell
DWORD weaponc = *(DWORD*)(Cshell+0xA2A7E8); //ECX
if(GetAsyncKeyState(VK_F5)&1) { reload = true; Beep(512, 100);
}
//no reload
if(reload)
{
if ( weaponc ) {
for(int i=0; i<445; i++)
{
if((*(DWORD*)((*(DWORD*)(Cshell+weaponc))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(Cshell+weaponc))+(4*i))) + NoReload) = 100;
}
}
}
}
Sleep(100);
}
DWORD WINAPI Wait(LPVOID)
{
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hacks, NULL, NULL, NULL);
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "Just NoReload with F5 ",". . . ", 0);
CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0,0);
}
return 1;
}
DWORD WINAPI Wait(LPVOID)
{
Sleep(9000);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hacks, NULL, NULL, NULL);
return 0;
}
if((*(DWORD*)((*(DWORD*)(Cshell+weaponc))+(4*i))) != NULL) *(float*)((*(DWORD*)((*(DWORD*)(Cshell+weaponc))+(4*i))) + NoReload) = 100;
while(1)

