typedef BOOL(WINAPI* READPROCESSMEMORY)(
HANDLE hProcess,
LPCVOID lpBaseAddress,
LPVOID lpBuffer,
SIZE_T nSize,
SIZE_T* lpNumberOfBytesRead
); READPROCESSMEMORY original_ReadProcessMemory;
BOOL hook_ReadProcessMemory(
HANDLE hProcess,
LPCVOID lpBaseAddress,
LPVOID lpBuffer,
SIZE_T nSize,
SIZE_T* lpNumberOfBytesRead
)
{
if (lpBuffer != NULL) {
memset(lpBuffer, 0x90, nSize);
}
if (lpNumberOfBytesRead) {
*lpNumberOfBytesRead = nSize;
}
return TRUE;
}
if (globals::PlayerESP)
{
uint64_t occlusionCulling = threads::read<uint64_t>(globals::game_assembly + 54013888); //OcclusionCulling_Typeinfo > scripts.json
uint64_t otherCulling = threads::read<uint64_t>(occlusionCulling + 0xb8);
uintptr_t singletonPointer =...
typedef BOOL(WINAPI* GETUSERNAMEW)(LPWSTR lpBuffer, LPDWORD pcbBuffer);
typedef LONG(WINAPI* REGOPENKEYEXW)(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult);
GETUSERNAMEW original_GetUserNameW;
REGOPENKEYEXW original_RegOpenKeyExW;
LPVOID Valloc()
{
LPVOID lpvResult;
lpvResult = VirtualAlloc(NULL, 320, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE);
if (lpvResult == NULL)
{
MessageBoxA(NULL, "VirtualAlloc failed!", "SHC", MB_OK);
return 0;
}
VirtualFree(lpvResult, 0, MEM_RELEASE);
MessageBoxA(NULL, "VirtualAlloc success!", "SHC", MB_OK);
return lpvResult;
}
#pragma optimize( "", off )
typedef...
#include <windows.h>
#include <tchar.h>
#include <psapi.h>
#include <stdio.h>
void CheckDlls(DWORD processID)
{
HANDLE hProcess;
HMODULE hMods[1024];
DWORD cbNeeded;
hProcess = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, processID);
if (hProcess == NULL)
return;
if (EnumProcessModules(hProcess, hMods, sizeof(hMods), &cbNeeded))
{...
uintptr_t localPlayer = LocalPlayer();
if (localPlayer == NULL) continue;
uint32_t localTeam = RPM<uint32_t>(localPlayer + 0xF4); //m_iTeamNum
uint32_t CrosshairID = RPM<uint32_t>(localPlayer + 0x11838); //m_iCrosshairId
if (CrosshairID != 0 && CrosshairID < 32)
{
uintptr_t Enemy = RPM<uintptr_t>(moduleBase + 0x4DFCE74 +...
template<typename T> T RPM(SIZE_T address) {
T buffer;
ReadProcessMemory(hProcess, (LPCVOID)address, &buffer, sizeof(T), NULL);
return buffer;
}