#include <windows.h>
#include <stdio.h>
#include "Log.h"
#include "Pattern.h"
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void SearchPatterns(void)
{
while (!IsGameReadyForHook()){
Sleep(50);
}
while(true){
dwSize = 0x400000;
//Example DWORD dwPlayerPointer = FindPattern((PBYTE)"\x00\x00\x00\x00\x00\x00\x00}; ", "x????xxxx", 1, true);
DWORD NoReload = FindPattern((DWORD)GetModuleHandleA("CShell.dll"), 0x9c0000, (PBYTE)\xD9\x98\xA4\x26\x00\x00","xxxx??");"xxx??? ?xx");
//-------------------------------------------------------------//
Writelog("#define NoReload 0x%X",NoReload);
Writelog("");
Writelog("//*************************Next log*********************************");
ExitProcess(0);
}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if (dwReason==DLL_PROCESS_ATTACH)
{
logging(hDll);
MessageBox(0, "CHEAT ACTIVED", "By Yuzra45", MB_OK + MB_ICONASTERISK);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)SearchPatterns, NULL, NULL, NULL);
}
return TRUE;
}
Credit Base MPGH.net