Code:
#include <Windows.h>
#include <stdio.h>
#include <process.h>
//Adress Warface EU
#define RateofFireEU 0x0063FD1A//telemetry_getleaderboard
#define NoFlashEU 0x00D9A86D//flashbangBaseTime
VOID MemoryWrite(void *adr, void *ptr, int size)
{
DWORD OldProtection;
VirtualProtect(adr, size, PAGE_EXECUTE_READWRITE, &OldProtection);
memcpy(adr, ptr, size);
VirtualProtect(adr, size, OldProtection, &OldProtection);
}
INT RapidFire, Flash;
BOOL InGameLoad()
{
return(
GetModuleHandleA("Game.exe") &&
GetModuleHandleA("CryOnline.dll") &&
GetModuleHandleA("ocevogyv.dll") ?
0 : 1);
}
VOID Hacks(LPVOID)
{
if (GetAsyncKeyState(VK_INSERT) & 1)
RapidFire = !RapidFire;
if (RapidFire) {
MemoryWrite((void*) (RateofFireEU), "\x68\x38\x5D\x50\x01", 5);
} else {
MemoryWrite((void*) (RateofFireEU), "\x68\x38\x5D\x50\x00", 5);
}
if (GetAsyncKeyState(VK_HOME) & 1)
Flash = !Flash;
if (Flash) {
MemoryWrite((void*) (NoFlashEU), "\x68\x7C\x28\x58\x01", 5);
} else {
MemoryWrite((void*) (NoFlashEU), "\x68\x7C\x28\x58\x00", 5);
}
}
unsigned int __stdcall Hook(LPVOID)
{
while (1)
{
while (!InGameLoad())
Sleep(100);
__asm CALL Hacks;
}
return 0;
}
BOOL __stdcall DllMain(HINSTANCE hDll, LONG dwReason, VOID* lpReserved)
{
if (dwReason == DLL_PROCESS_ATTACH)
{
_beginthreadex(0, 0, Hook, 0, 0, 0);
}
return 1;
}