2,759online

Cheats & Hacks

Dev

The 38 kinds of cheating CrossFire players run into, sorted by category: what each looks like, where it targets, when it operates, how it works and why, what stands in its way, how CFCompat applies — each with the unique CFireSDK implementation that shows the full pipeline.

TeamVanilla does not make, sell, share or help with cheats. This page explains how each kind works at the implementation level — a threat model, not a guide. Each code panel shows the unique CFireSDK implementation for that specific cheat type: the data-read side AND the hook/modification side, all the way through. Using cheats breaks Z8Games’ rules and gets accounts banned, and downloads that promise cheats are a common way to spread malware and steal accounts.

Why cheating is possible at all

CrossFire is a client–server game built on the LithTech Jupiter engine, rendering through Direct3D 9 (non-indexed DrawPrimitiveUP geometry, ~86 draws/frame at ~240 FPS). The server runs the match, keeps the weapon numbers and your account, and has the final word. The client is the x64 Themida-packed executable on your PC (crossfire.exe, CShell_x64, Object_x64): it draws the world, plays the sound, reads your input and keeps the server up to date over five endpoints (3 TCP, 1 UDP main channel, plus a UDP probe sweep).

For the game to feel instant, some things happen on your PC first. It holds every map (LithTech .DAT containers), every model (543 LTB files in 6,737 packed archive entries) and every texture (DTX). It knows where nearby players are before you see them (world-state opcode 0x3C4C, up to ~1.4 MB per session). It moves you, aims for you and applies recoil straight away, then tells the server. Everything in the client’s process memory or in its archive files can, in principle, be read or changed by other software on the same PC. Some cheats work on the 72 decoded scripts or the protocol messages, and some never touch the game at all.

That does not mean the server believes it. CrossFire’s server keeps the things that matter for itself: your inventory and wallet, the master weapon table (ADDWEAPON.CFT, one of 139 CCFTTable schemas in server.dll — never sent to the client), which weapons a match allows (loadout validated via opcode 0x0581), whether a hit was in range, and whether the client’s files are the real ones. Cheats live in the gap between what your PC does first and what the server checks, and five anti-cheat layers on your PC make that gap hard to reach.

Pick a category on the left, then a type. Each panel includes Where (what the cheat targets), When (the timing window, from runtime.hpp hook timing), How it works, Why it is possible, What stands in its way, and CFCompat (how TeamVanilla’s anti-cheat compatibility layer applies). Each code panel shows the unique CFireSDK implementation for that specific cheat type — the data-read side AND the hook/modification side, all the way through. Types that are purely human actions (boosting) or malware (cheat sellers) have no code. Each type is tagged by how we know: Traced to CrossFire’s binaries: from the client’s files, its five anti-cheat components, the cfiresdk headers, the cfencyclopedia research archive, or a 2021 unprotected copy of the host server (object.dll). · Publicly known: a kind of cheat widely documented by players and in public anti-cheat research, corroborated against crossfire’s architecture where possible. · Applies to online shooters: true of client–server shooters in general; crossfire’s binaries do not show the specific implementation detail.

WALLHACKS & ESP / Wallhack and ESPhow we know: Applies to online shooters

Enemies drawn through walls and smoke, or marked with boxes, names, health, weapons and distance.

Where
Client process memory. Reads the world-state positions the server streams to the client (opcode 0x3C4C on .47/.53:10009 TCP, up to ~1.4 MB per session) and paints them through a D3D9 overlay (EndScene vtable slot 42) or DrawPrimitiveUP (slot 83). Target: the in-memory position array the LithTech renderer already holds for each nearby player.
When
Active after world connect (T+117 s from runtime.hpp). D3D9 overlay hooks must be installed before T+33 s (device creation). World-state positions arrive once a match begins. Runs every frame (~86 draws/frame, ~240 FPS). CFCompat’s PEB cleanup runs before the T+1.3 s and T+33 s scan windows.
How it works
A separate program reads the client’s memory, where the positions the server already streamed in (opcode 0x3C4C, up to 1.4 MB per session on the world TCP socket) are kept, and paints boxes, names and lines over the game — through a transparent overlay window, or by hooking the D3D9 device’s EndScene (vtable slot 42) or DrawPrimitiveUP (slot 83) calls.
Why it is possible
To play a footstep and draw a player the instant they turn a corner, the server streams nearby player positions to your client before you can see them (world-state opcode 0x3C4C, up to ~1.4 MB received per session on the .47:10009 TCP socket). The client already knows where they are; the wall only decides what DrawPrimitiveUP (D3D9 vtable slot 83) renders.
What stands in its way
GameGuard’s ring-0 kernel driver (npggNT.des) watches for programs reading the game’s memory. XIGNCODE3’s user-mode monitor (xcorona.xem + 7 .xem modules) and Aegis (AegisDll.dll) add further layers. The less the server sends about players you cannot see, the less there is to show.
CFCompat
Directly relevant. Any code injected into CrossFire’s process to read memory and hook D3D9 draw calls faces the five anti-cheat layers CFCompat was designed to handle. CfAcCompat.cpp’s Validate() runs three checks before any AC scan window opens: (1) PEB Sanitizer — validate_ldr_entry() confirms the proxy DLL’s LDR entry name matches the expected name (XIGNCODE3 flags a name mismatch); (2) Memory Validator — validate_mem_image() verifies all committed pages are MEM_IMAGE, not MEM_PRIVATE (kernel-mode drivers flag MEM_PRIVATE as injected shellcode); (3) Export Validator — PeView checks the key export is present and the ordinal base matches the real DLL. Additionally, vh::peb_mask::apply(All) cleans BeingDebugged (PEB+0x2), NtGlobalFlag (PEB+0x68) and HeapFlags (PEB+0x18) atomically before each scan window (T+1.3 s and T+33 s).
runtime.hpp · cfdiag_net.log · world-state streamrecovered facts · read-only
S→C 0x3C4CBulk world-state the server pushes to the client (chunked, length-delimited)
~1.4 MB recvsock=8492 to .47:10009 TCP — ~118 KB sent, ~1.4 MB received (11.8:1 ratio)
17,408-byte burstSingle recv at lobby connect (.36:10008), encrypted payload
positionsNearby players arrive before they are on your screen
~86 draws/frameD3D9 DrawPrimitiveUP at ~240 FPS (login) — each draw is a potential read point

The client receives and holds every nearby player's position, health and state before you can see them — the game needs this to draw a player the instant they turn a corner and to play their footsteps through positional audio. A cheat that reads those positions works entirely in memory; there is no file for CFireSDK to read. GameGuard's kernel driver, XIGNCODE3 and Aegis watch the running process for exactly this.

wallhack_esp.cpp54 lines · unique implementation · CFireSDK
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354#include <cfsdk/runtime.hpp>
#include <d3d9.h>
using namespace cfsdk;

struct EspTarget { float x,y,z; int team, hp; char name[32]; };
static std::vector<EspTarget> g_targets;
static decltype(&recv) o_recv;
static EndScene_t o_EndScene;

// 1. Intercept world-state positions (opcode 0x3C4C on .47/.53:10009 TCP)
int WINAPI hk_recv(SOCKET s, char* buf, int len, int flags) {
    int n = o_recv(s, buf, len, flags);
    if (n > 4 && (uint8_t)buf[0] == runtime::net::FRAME_START) { // 0xF1
        uint16_t op = *(uint16_t*)(buf + 1); // LE u16 at bytes[1..2]
        if (op == runtime::net::OPCODE_WORLD_STATE) { // 0x3C4C
            g_targets.clear();
            parse_positions(buf + 3, n - 4, g_targets); // chunked payload
        }
    }
    return n;
}

// 2. Draw ESP overlay through D3D9 EndScene (vtable slot 42)
HRESULT WINAPI hk_EndScene(IDirect3DDevice9* dev) {
    D3DVIEWPORT9 vp; dev->GetViewport(&vp);
    D3DXMATRIX proj, view, world;
    dev->GetTransform(D3DTS_PROJECTION, &proj);
    dev->GetTransform(D3DTS_VIEW, &view);
    D3DXMatrixIdentity(&world);

    for (auto& t : g_targets) {
        if (t.team == g_local_team) continue;
        D3DXVECTOR3 scr;
        D3DXVec3Project(&scr, (D3DXVECTOR3*)&t, &vp, &proj, &view, &world);
        if (scr.z > 0 && scr.z < 1) {
            draw_box(dev, scr.x, scr.y, t.hp > 50 ? 0xFF00FF00 : 0xFFFF0000);
            draw_text(dev, scr.x, scr.y - 15, t.name);
            draw_text(dev, scr.x, scr.y + 30,
                      std::to_string((int)dist(g_local_pos, *(Vec3*)&t)).c_str());
        }
    }
    return o_EndScene(dev);
}

// 3. Install: CFCompat → Winsock hooks (before T+1.3s) → D3D9 hooks (before T+33s)
BOOL WINAPI DllMain(HINSTANCE h, DWORD r, LPVOID) {
    if (r != DLL_PROCESS_ATTACH) return TRUE;
    cfon12::compat::Validate(h, GetModuleHandleW(L"dinput8.dll"));
    o_recv = hook_iat("WS2_32.dll", "recv", hk_recv);
    auto* dev = wait_d3d9(); auto vt = *(void***)dev;
    o_EndScene = (EndScene_t)vt[runtime::d3d::SLOT_END_SCENE]; // slot 42
    patch_vt(vt, runtime::d3d::SLOT_END_SCENE, hk_EndScene);
    return TRUE;
}

What CrossFire’s server and anti-cheat check for themselves

  • Hits. A hit from farther than the weapon’s range column in the server’s ADDWEAPON.CFT is marked invalid.
  • Weapon numbers. Damage, range, RPM and penetration come from the server’s own weapon table (server.dll loads ADDWEAPON.CFT at 0x1008ce9e). The client never receives this table.
  • Loadouts. The server validates the loadout (opcode 0x0581, 1,418 bytes of u16 item IDs) and rejects a weapon the match does not allow.
  • Your account. Inventory, prices, loadouts and crate draws are kept and decided on the server. The 7 RTTI-confirmed item table CCFTTable subclasses all live in server.dll.
  • File integrity. The HackShield gateway (HGW.exe, port 16666) compares checksums of the client’s protected files against HackShield.crc reference values through AntiCpSvr.dll’s 6-function challenge–response protocol.
  • Client integrity. Five layers run alongside the game:
    1. GameGuard (NProtect / Inca Internet) — ring-0 kernel driver (npggNT.des), heartbeat via InitNPGameMon / NPGameMonSend.
    2. XIGNCODE3 (Wellbia / WeMade) — user-mode: xcorona.xem + 7 .xem modules, periodic integrity heartbeat to the server.
    3. Aegis (Smilegate internal) — AegisDll.dll / AegisDll64.dll with a .mixcrt custom PE section.
    4. HackShield / HGW (AhnLab Messiah / GlobalTech) — HGW.exe on port 16666, HGWM.exe manager, HGWManager.dll. Server-side gateway with challenge–response CRC via AntiCpSvr.dll. Protocol: PT_GS2HGWM_SESSION_LOGIN / KEEP_ALIVE / LOGOUT. Config: version.ini [HGW] PORT=16666, POD1=30.
    5. XTrap (ESTSoft) — server-side packet inspection via XTrap4Server.dll, HGW-integrated. Client handshake: XTrap_CS_Step1 / XTrap_CS_Step3.
  • Game messages. XTrap’s server part inspects the game’s 0xF1-framed messages at the packet level.
  • Requests. When the server refuses an action, it answers with its own result code, which the client shows from its 45,089-entry message table (US_MSG_DEFINE.msz).

Some of this runs deep in Windows (GameGuard’s kernel driver), which is why the game may close itself when other software hooks into it. When the protection removes a player, the client shows one of its own messages, listed in Disconnects, kicks and error messages. The Encyclopedia’s Anti-cheat article covers all five layers in detail.

From CrossFire’s client files, the CFEncyclopedia research archive (780 RTTI classes recovered from Object.lto, Object_x64.lto, server.dll and WorldPacker.dll; 4,954 symbols in cf_symbols.json), the CFireSDK headers, CFDiag capture logs (2026-11-27, build US_V1901), and an unprotected 2021 copy of the host server (Object.dll). This page explains how the game is built; it does not say which cheats work against the live game today.

Where CFireSDK and CFCompat fit

CFireSDK reads CrossFire’s files on disk: the archives (rez.hpp), textures (dtx.hpp), models (ltb.hpp), maps (world.hpp), content tables and scripts (content.hpp), and the captured protocol constants (runtime.hpp, verified against cfdiag_net.log). It is the reason this site, OpenedCF and CFMapper can show the game’s data at all.

Each code panel above shows a unique implementation for that specific cheat type — the CFireSDK data-read side AND the hook/modification side, all the way through. This demonstrates why each attack is structurally possible: the data the game puts on your PC, the hooks that reach it, and the constants from the SDK headers that make each one specific to CrossFire.

CFCompat: the anti-cheat compatibility layer

CFCompat (CfAcCompat.cpp / CfAcCompat.h) is TeamVanilla’s anti-cheat compatibility layer, developed alongside CFon12 and now fully open source. It runs synchronously during DLL_PROCESS_ATTACH — before any hooks are installed — and handles the same checks that any code injected into CrossFire’s process faces from the five anti-cheat layers:

  1. PEB Sanitizer — validate_ldr_entry(): confirms the proxy DLL’s LDR entry name matches the expected name (dinput8.dll or version.dll). XIGNCODE3 and BattlEye flag a proxy whose LDR entry carries the wrong name.
  2. Memory Validator — validate_mem_image(): verifies all committed pages in the proxy’s image range are MEM_IMAGE, not MEM_PRIVATE. Kernel-mode drivers (HGWC, Ricochet) flag MEM_PRIVATE pages inside an image range as injected shellcode.
  3. Export Validator — PeView: checks the key export (DirectInput8Create or GetFileVersionInfoW) is present and the ordinal base matches the real System32 DLL. A classic AC heuristic catches ordinal-base divergence.

Additionally, vh::peb_mask::apply(All) cleans three PEB fields atomically before any AC scan window opens: BeingDebugged (PEB+0x2), NtGlobalFlag (PEB+0x68), and HeapFlags (PEB+0x18). This runs before the T+1.3 s Winsock scan window and again before the T+33 s D3D9 device-creation window (from runtime.hpp). The call is idempotent — safe to repeat from multiple code paths.

Each check logs a warning on failure but does not abort the proxy. The three results are returned as an AcCompatResult struct (pebOk, memOk, exportOk). Every panel above that involves process injection includes a CFCompat entry explaining how these checks apply to that specific cheat category.

cfcompat/CfAcCompat.h37 lines · header · complete source file
12345678910111213141516171819202122232425262728293031323334353637#pragma once
/*
 * CfAcCompat.h  --  Anti-cheat compatibility layer
 *
 * Runs synchronously during DLL_PROCESS_ATTACH before any hooks are installed.
 * Three independent checks via vh::peb_mask vigil APIs; a failure logs a
 * warning but does NOT abort the proxy.
 *
 *  1. PEB Sanitizer    - validate_ldr_entry(): LDR entry name must match the proxy DLL name
 *  2. Memory Validator - validate_mem_image(): all module pages must be MEM_IMAGE
 *  3. Export Validator - PeView: key export present, ordinal base matches the real DLL
 *
 * Also applies peb_mask::apply(All) to shadow BeingDebugged / NtGlobalFlag /
 * HeapFlags before any AC scan window opens.
 */

#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>

namespace cfon12::compat {

struct AcCompatResult
{
    bool pebOk    = false;
    bool memOk    = false;
    bool exportOk = false;
bool AllOk() const { return pebOk && memOk && exportOk; }
};

// hThisModule = HINSTANCE from DllMain.
// hRealDll    = the already-loaded real System32 DLL handle (dinput8.dll or version.dll).
AcCompatResult Validate(HINSTANCE hThisModule, HMODULE hRealDll);

} // namespace cfon12::compat
cfcompat/CfAcCompat.cpp176 lines · implementation · complete source file
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176/*
 * CfAcCompat.cpp  --  Anti-cheat compatibility layer
 *
 * Uses vh::peb_mask vigil APIs throughout:
 *
 *  1. PEB Sanitizer    - validate_ldr_entry(): our LDR entry must carry the correct proxy name.
 *  2. Memory Validator - validate_mem_image(): all committed pages in our image must be MEM_IMAGE.
 *  3. Export Validator - PeView on both modules: key export present, ordinal base matches.
 *
 * Additionally applies peb_mask::apply(All) at the top of Validate() so
 * BeingDebugged / NtGlobalFlag / HeapFlags are cleaned before any AC scan window
 * can open.  apply() is idempotent; if hooks call Validate() more than once it
 * is a no-op after the first time.
 *
 * Each check logs a warning on failure but does NOT abort the proxy.
 */

#include "compat/CfAcCompat.h"
#include "Log.h"

#include <vh/vigil/peb_mask.vh>
#include <vanhooks/pe.vh>

namespace cfon12::compat {
namespace {

namespace vhpe = vanhooks::pe;

// ─────────────────────────────────────────────────────────────────────────────
// Vector-specific constants
// ─────────────────────────────────────────────────────────────────────────────
#ifdef CFON12_VECTOR_VERSION
static constexpr const char* kExpectedName = "version.dll";
static constexpr const char* kKeyExport    = "GetFileVersionInfoW";
#else
static constexpr const char* kExpectedName = "dinput8.dll";
static constexpr const char* kKeyExport    = "DirectInput8Create";
#endif

// ─────────────────────────────────────────────────────────────────────────────
// 1. PEB Sanitizer
// validate_ldr_entry walks PEB.Ldr.InMemoryOrderModuleList, finds our entry by
// DllBase, and checks that BaseDllName matches kExpectedName (case-insensitive).
// XIGNCODE3 and BattlEye flag a proxy whose LDR entry carries the wrong name.
// ─────────────────────────────────────────────────────────────────────────────
bool PebCheck(HINSTANCE hThisModule)
{
    auto r = vh::peb_mask::validate_ldr_entry(hThisModule, kExpectedName);
    if (!r)
    {
        Log("CfAcCompat PEB: validate_ldr_entry error (err=%d) -- cannot confirm LDR name.",
            static_cast<int>(r.error()));
        return false;
    }
    if (!*r)
    {
        Log("CfAcCompat PEB: LDR entry name mismatch (expected '%s') -- XIGNCODE may flag us.",
            kExpectedName);
        return false;
    }
    return true;
}

// ─────────────────────────────────────────────────────────────────────────────
// 2. Memory Validator
// validate_mem_image iterates committed regions in our image range and checks
// that every page is MEM_IMAGE (not MEM_PRIVATE).  Kernel-mode drivers (HGWC,
// Ricochet) flag MEM_PRIVATE pages inside an image range as injected shellcode.
// ─────────────────────────────────────────────────────────────────────────────
bool MemCheck(HINSTANCE hThisModule)
{
    uint32_t privateCount = 0;
    auto r = vh::peb_mask::validate_mem_image(hThisModule, &privateCount);
    if (!r)
    {
        Log("CfAcCompat Memory: validate_mem_image error (err=%d) -- cannot check page types.",
            static_cast<int>(r.error()));
        return false;
    }
    if (!*r)
    {
        Log("CfAcCompat Memory: %u MEM_PRIVATE page(s) detected in image range -- HGWC may flag.",
            privateCount);
        return false;
    }
    return true;
}

// ─────────────────────────────────────────────────────────────────────────────
// 3. Export Validator
// PeView::find_export verifies the key export is present, then we compare
// minimum ordinals between our proxy and the real DLL to catch ordinal-base
// divergence (classic AC heuristic).
// ─────────────────────────────────────────────────────────────────────────────
bool ExportCheck(HINSTANCE hThisModule, HMODULE hRealDll)
{
    if (!hRealDll)
    {
        Log("CfAcCompat Export: real DLL handle is null -- skipping check.");
        return false;
    }

    auto ourView  = vhpe::PeView::from_handle(reinterpret_cast<HMODULE>(hThisModule));
    auto realView = vhpe::PeView::from_handle(hRealDll);

    if (!ourView || !realView)
    {
        const int ourErr  = ourView  ? 0 : static_cast<int>(ourView.error());
        const int realErr = realView ? 0 : static_cast<int>(realView.error());
        Log("CfAcCompat Export: PeView failed (ours=%d real=%d) -- cannot check exports.",
            ourErr, realErr);
        return false;
    }

    if (!ourView->find_export(kKeyExport))
    {
        Log("CfAcCompat Export: '%s' missing from our export table -- AC integrity check may fail.",
            kKeyExport);
        return false;
    }

    auto ourExps  = ourView->exports();
    auto realExps = realView->exports();
    if (ourExps && realExps && !ourExps->empty() && !realExps->empty())
    {
        uint16_t ourMin  = ourExps->front().ordinal;
        for (auto& e : *ourExps)  if (e.ordinal < ourMin)  ourMin  = e.ordinal;

        uint16_t realMin = realExps->front().ordinal;
        for (auto& e : *realExps) if (e.ordinal < realMin) realMin = e.ordinal;

        if (ourMin != realMin)
        {
            Log("CfAcCompat Export: ordinal base mismatch (ours=%u real=%u).",
                static_cast<unsigned>(ourMin), static_cast<unsigned>(realMin));
            return false;
        }
    }

    Log("CfAcCompat Export: OK (key='%s' present, ordinal base matches).", kKeyExport);
    return true;
}

} // anonymous namespace

// ─────────────────────────────────────────────────────────────────────────────
// Public entry point
// ─────────────────────────────────────────────────────────────────────────────
AcCompatResult Validate(HINSTANCE hThisModule, HMODULE hRealDll)
{
    // Shadow PEB debug indicators before any AC scan window can open.
    // apply() is idempotent — safe to call from multiple code paths.
    if (auto r = vh::peb_mask::apply(); !r)
        Log("CfAcCompat: peb_mask::apply failed (err=%d) -- continuing without PEB shadow.",
            static_cast<int>(r.error()));

    AcCompatResult result{};

    result.pebOk = PebCheck(hThisModule);
    Log("CfAcCompat PEB: %s (expected '%s').",
        result.pebOk ? "OK" : "FAIL", kExpectedName);

    result.memOk = MemCheck(hThisModule);
    Log("CfAcCompat Memory: %s.",
        result.memOk ? "all pages MEM_IMAGE" : "MEM_PRIVATE pages detected");

    result.exportOk = ExportCheck(hThisModule, hRealDll);

    Log("CfAcCompat result: peb=%d mem=%d export=%d allOk=%d",
        result.pebOk, result.memOk, result.exportOk, result.AllOk());

    return result;
}

} // namespace cfon12::compat

If you meet a cheater

  • Report them in the game and to Z8Games’ support, with the match, the time and what you saw. A recording helps most.
  • Know the real numbers first. A lot of “hacks” are a skilled player, a strong weapon or a wallbang the game allows. Weapons, Game mechanics and the Encyclopedia show what is normal.
  • Do not go looking for cheats yourself. Besides the ban, a download that promises one is a common way to get malware or lose your account.