what is the detected part?
Code:
#include <windows.h>
#define NoReload 0xD38
#define WeaponMgr 0x2D7530
void hack(void)
{
while(true)
{
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
if (pWeaponMgr)
{
for(int i=0; i<601; i++)
{
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoReload) = 35;
}
}
}
}
BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
if (dwReason == DLL_PROCESS_ATTACH)
{
DisableThreadLibraryCalls(hDll);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)hack, NULL, NULL, NULL);
return true;
}
return TRUE;
}
image:
https://i.imgur.com/1vvc15M.png