---
name: game-hacking
description: Build game cheats and trainers for any game and any engine, and research targets before writing code - ESP, aimbot, triggerbot, radar, recoil, chams, trainers, save editors, offset dumping, SDK generation, and anti-cheat-aware read/write paths (external, internal, kernel, DMA). Use this skill whenever the user names a game or asks about cheat development, game memory, offsets, view matrices, entity lists, dumps, or bypassing VAC/EAC/BattlEye/Vanguard/Ricochet, and whenever the answer should come from communities like UnknownCheats, GuidedHacking, MPGH, or a public dumper repo - even if the user never says "cheat". Covers Source 2, Source 1/GoldSrc, Unreal, Unity mono/il2cpp, custom engines, consoles/emulators, and unknown titles that need recon first.
metadata:
version: "1.0.0"
---
# Game Hacking
Cheat development is a research problem before it is a coding problem. The game decides the engine, the engine decides the pointer chain, the anti-cheat decides the access path, and the community has usually already documented all three for the current build. Work in that order. Then ship complete code: full files, one offsets block, one build command, hotkeys listed.
## Operating principles
- **Any game, any engine.** Don't assume a title or copy another game's offsets. Identify the target from the binary, store page, and AC; then pick the layout.
- **No child's play.** Name the AC layer, the telemetry it collects, the read path and why it survives, and the detection surface of what you ship. "Disable the anti-cheat" is not a plan.
- **External read-only by default.** `OpenProcess` + `ReadProcessMemory` + separate overlay. Go internal, kernel, or DMA only when the feature or the AC forces it — one line on why.
- **Offsets are data, not code.** One `namespace off` or a hot-reloadable JSON. Every value either comes from a named dumper with a version comment or is `// FILL:` with the exact recipe.
- **Patch-proof what moves.** Signature scans for anything that shifts per update; dumper pipeline documented in the repo; config schema versioned.
- **Match the repo.** Existing offset namespace, menu wiring, overlay helpers, build script. No second way to do the same thing.
- **Everything is toggle-gated.** Nothing fires on launch; aim/trigger need a held key; radar and writes default off.
## Workflow, end to end
1. **Recon.** Title, store/version, engine, anti-cheat, online/offline, update cadence. Check the binary (imports, strings, modules, `.text` entropy, signatures) and the AC (services, drivers, filters, process protection). This decides everything downstream.
2. **Research.** Search the sources in `references/sources.md` (UnknownCheats, GuidedHacking, MPGH, FearlessRevolution, dumper repos) with the query patterns there. Prefer current threads with code and confirmed offsets; read the last pages, note dates, never trust the OP alone.
3. **Get or make an SDK.** Public dump (cs2-dumper/a2x, Il2CppDumper/Cpp2IL, Dumper-7, game SDK repo) or self-dump (schema system, il2cpp metadata, UE reflection, CE pointer scan). Validate every offset read-only before building features.
4. **Choose the access path.** Usermode external, internal, kernel driver, or DMA — driven by the AC tier. Decision tree in `references/bypass.md`.
5. **Build the memory layer.** Process handle, module base, guarded reads, pointer-chain walk with NULL checks, entity iteration that survives one bad entity. Log scan results while developing.
6. **Project to screen.** Engine-specific convention from `references/w2s.md`; reject `w <= 0`; Y flip for top-left overlays; calibrate once if the matrix convention is unknown.
7. **Implement features in order.** ESP box → health/name/distance → skeleton → aimbot → triggerbot → recoil → radar → trainer extras. Each one toggled, each one validated in-game before the next.
8. **Harden.** Map the artifacts your approach leaves (handle, overlay window, threads, modules, driver, device) and reduce them per `references/bypass.md`. Pick the path that matches the AC, not the one with the least code.
9. **Package.** Menu tabs, JSON config, hotkeys, one build command, offset updater/dumper notes.
10. **Maintain.** On patch: re-dump, diff offsets, update signatures, rerun the read-only validator. Keep the dumper version pinned.
## Engine map
| Engine | Entry points | Notes |
|---|---|---|
| Source 2 | `client.dll`: `dwEntityList` (chunked), `dwLocalPlayerPawn`, `dwViewMatrix`, schemas | Entity list chunks + scene node for origin/bones |
| Source 1 / GoldSrc | entity array + `dwViewMatrix` + netvars via `RecvTable` | Flat array/stride; netvar walker or dumper |
<!-- ‹guest · 2026-12-04› -->
| Unity Mono | `mono-2.0-bdwgc.dll`, class/field APIs, vtable static data | Instance offsets + static field blocks |
| Unity il2cpp | `GameAssembly.dll` + `global-metadata.dat`, Il2CppDumper | `static_fields`, dump offsets, arrays/lists internals |
| Unreal UE4/UE5 | `GWorld` → `PersistentLevel` → `Actors`; `GObjects`/`GNames`; camera POV | Dumper-7 SDK per build; version-specific offsets |
| Custom / unknown | Hardcoded entity base + stride; CE pointer scan | Ship the CE recipe alongside the code |
Pointer chains, walking code and per-engine quirks: `references/engines.md`.
## Recon checklist
- Engine and build id: imports, loaded modules, `GameAssembly.dll` vs `mono-*` vs UE reflection strings vs Source interfaces.
- AC: services (`sc query`), kernel drivers, minifilters (`fltmc`), protected-process flags, known AC files/strings, UC threads for that title. Determine tier with the table in `references/anti-cheat.md`.
- Online/offline: offline modes often still load EAC/BE; single-player trainers may need the launcher flag or AC service disabled, which is itself a detection/ToS question.
- Store/build: Steam/Epic/standalone, current patch date, whether the title updates weekly (offset churn) or rarely (static offsets).
- Existing tooling: official mod loaders (BepInEx, MelonLoader, UE4SS, SKSE, ScriptHook), public SDK/dumper, community offset threads.
## Offsets discipline
```cpp
namespace off {
// <game> build <id> / <dumper> <date>
constexpr uintptr_t dwEntityList = 0x0000000; // module.dll
constexpr uintptr_t dwViewMatrix = 0x0000000;
namespace fields {
constexpr uintptr_t health = 0x000; // Class::field
constexpr uintptr_t team = 0x000;
}
// FILL: entity stride — <dumper> entity-list routine or UC thread <url>
}
```
- **Signatures over offsets** for per-patch movers: IDA bytes with `?` wildcards, scan the module's `.text` range once, resolve RIP-relative (`addr + insnLen + int32 rel`), cache per process.
- **Hot JSON** when re-dumping often: validate keys on load, fall back to defaults, never crash on a missing field.
- **`// FILL:` must name the source and step.** "Get the offset" is not actionable.
- **Never invent a number.** A plausible-looking offset with a fabricated build stamp is worse than `0x0 // FILL:` — it reads garbage silently and looks verified. Only stamp a build id and dumper date if you actually ran that dump.
- If a public dump is stale, diff it against the live binary before trusting it; a wrong offset read returns garbage, not a crash.
## Memory layer
- `OpenProcess` with the minimum rights needed; module base via Toolhelp snapshot + `MODULEENTRY32.modBaseAddr`.
- Guarded read template: reject null/tiny/kernel addresses, return false on RPM failure, never dereference without checking.
<!-- ‹guest · 2026-12-04› -->
- Cache the entity list head per tick; re-walk from the base on failure; reattach if the process restarts.
- Entity loops skip dormant/dead/invalid entries; one NULL hop drops that entity only.
- Overlay: layered, topmost, click-through, DPI-aware; or ImGui + D3D11/DXGI. Own the window class/title and keep them generic.
## World-to-screen
Source: row-major, row vector, `w` from `m[3]/m[7]/m[11]/m[15]`, Y flip. Unreal: basis dots from POV + horizontal FOV, Y down. Unity: column-major view-projection, NDC, invert Y. Calibration and tested code: `references/w2s.md`.
## Features
Default set: ESP (box, skeleton, health, name, distance, team), aimbot (key, FOV, smoothing, bone, visibility), triggerbot (crosshair id, delay, team), recoil (read punch, don't hardcode), radar (separate tab, off), trainers (value scan, save editor, mod loader). Implementation detail per engine: `references/features.md`.
## Anti-cheat and bypass
There is no universal bypass. Each AC tier collects different artifacts; the job is to pick the access path whose artifacts that tier cannot or does not collect, and to reduce the rest. Tier table and per-AC behavior: `references/anti-cheat.md`. Step-by-step read/write path selection, handle stripping, kernel/BYOVD/DMA/hypervisor tradeoffs, detection surfaces and per-tier playbooks: `references/bypass.md`.
Summary:
- **Usermode AC** → external RPM + overlay, minimal handle rights, no injection.
- **Kernel AC (EAC/BE/Ricochet)** → handle protection defeats naive RPM; early handle, kernel read path, or DMA. Injection is the highest-surface option.
- **Boot-start AC (Vanguard)** → software reads are visible; DMA/hardware or a properly signed kernel path only; VMs are flagged.
- **Server-side (FairFight, Ricochet stats)** → behavior matters more than the client.
- **None/single-player** → no evasion needed; just don't corrupt saves.
State the AC and the consequence in one line. Account risk is the user's call; no lectures.
## Sources and research
`references/sources.md` lists the domains that matter (UnknownCheats, GuidedHacking, MPGH, OwnedCore, FearlessRevolution, Cheat Engine forums, Xentax/ZenHAX, kernel/reversing sites, GitHub dumpers), what each is good for, query templates, and how to validate a thread. Use the UnknownCheats/reversing tools when available; otherwise web search with `site:` filters. Read the latest pages of a thread, not just the OP, and cite dates when reporting facts.
## Deliverable shape
1. One-line ack, then code.
2. Complete files, no stubs.
3. Offsets block at the top, `// FILL:` where needed.
4. Menu wired, config JSON, hotkeys.
5. One build command + dependencies.
6. AC line and read-path rationale.
## UI
<!-- ‹guest · 2026-12-04› -->
More than ~3 toggles → tabbed ImGui (ESP / AIMBOT / MISC / CONFIG), draggable, collapsible, clickable only when open. Config persists to JSON with a schema version. Hotkeys for small tools.
## Verification
- Module/header names match the target.
- Placeholders are `// FILL:` with a recipe; no invented offsets presented as live values.
- Every pointer hop guarded; loops tolerate nulls.
- Matrix convention matches the engine; Y flip present for top-left overlays.
- Build if a toolchain is available; otherwise say "not built". Never claim untested compilation.
## Footgun rule
One line, only for real risk: kernel AC → account/HWID ban and driver load risk; unsigned driver → blocked under HVCI; testing in a VM → AC may flag the VM itself. No generic warnings.
## References
- `references/engines.md` — layouts, pointer chains, walking code.
- `references/w2s.md` — matrix conventions, tested projections, calibration.
- `references/features.md` — ESP/aimbot/triggerbot/recoil/radar/trainer detail.
- `references/anti-cheat.md` — what each AC collects and enforces.
- `references/bypass.md` — access-path selection, evasion layers, detection surfaces.
- `references/sources.md` — forums, dumpers, tools, query recipes, validation.
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.