Unknown ❤ RESPAWN.ZAFEST.RO | VIP FREE | FREE FOR ALL ❤ 0/32
Romania XPlayZM.CSBlackDevil.COM # Zombie Plague UltimateX [ Respawn + FDL + VIP 22-12PM + POINTS] ® 15/32
Sunucu tanitimi
96 lines 10.2 KiB Markdown Source Rendered Raw Permalink History
title, excerpt, category, tags, image, read_time
title excerpt category tags image read_time
How to Install ReChecker for Client File Verification Install ReChecker, write resources.ini rules that check client file hashes, and avoid kicking legitimate players by mistake. installation rechecker, anticheat 8 min read

ReChecker is a Metamod plugin that asks connecting clients for the MD5 hash (or existence, or absence) of specific files on their machine, and lets you act on the answer. It is how you catch the obvious cheats — a modified opengl32.dll, a wallhack's replacement models, a .cfg that no legitimate client has — and how you enforce that everyone is running the same map or model files you shipped.

Be honest about what it is: ReChecker is not an anti-cheat. It is a file-integrity check. A cheat that does not touch a file you check for, or that lies about the hash, walks straight past it. It raises the floor. It does not stop a determined cheater.

1. Install the plugin

ReChecker is a Metamod plugin (like ReVoice and Reunion), not an AMXX plugin.

mkdir -p /home/steam/hlds/cstrike/addons/rechecker
cp rechecker_mm_i386.so /home/steam/hlds/cstrike/addons/rechecker/
cp resources.ini        /home/steam/hlds/cstrike/addons/rechecker/
chmod 644 /home/steam/hlds/cstrike/addons/rechecker/*

Register it in cstrike/addons/metamod/plugins.ini:

linux addons/rechecker/rechecker_mm_i386.so
linux addons/amxmodx/dlls/amxmodx_mm_i386.so

Restart. Metamod plugins load at server start, not on map change.

2. resources.ini — the rules

This is the whole product. Each line names a client-side file, a hash or keyword, and a server command to run when the rule matches, plus an optional flag.

; "file"  hash-or-keyword  "server command" (or IGNORE)  [flag]

; any opengl32.dll in the game root (this rule is in the shipped sample) "../opengl32.dll" UNKNOWN "kick [userid] 'OpenGL32 Detected'" BREAK

; a cheat config: UNKNOWN fires when the file EXISTS, with any hash "wallhack.cfg" UNKNOWN "kick [userid] 'Cheat config detected'" BREAK

; a model you ship: whitelist its hash (yours, not 1a2b3c4d), act on any other "models/player/vip/vip.mdl" 1a2b3c4d IGNORE "models/player/vip/vip.mdl" UNKNOWN "kick [userid] 'Bad player model'" BREAK

; log only, do not act: use this while you are calibrating "../hw.dll" UNKNOWN "echo '[rch] [file_name] [file_md5hash] [steamid] [name]'"

There are no action keywords: the third column is an ordinary server command, run when the rule fires. Single quotes in it become double quotes, and [userid], [name], [steamid], [ip], [id], [file_name], [file_hash] and [file_md5hash] are filled in. The only keywords are these:

  • UNKNOWN (hash column) - fires when the file exists with any hash that is not whitelisted by an IGNORE line above it.
  • MISSING (hash column) - fires when the file is absent. That is the opposite of a cheat-file rule: a MISSING rule on a cheat file fires on every clean client.
  • IGNORE (in place of the command) - whitelists that hash for that file.
  • BREAK (optional last column) - once this rule fires, ReChecker runs no later rule's command for that player.

Anything else in the hash column is read as a hex hash, so a misspelled keyword becomes a rule that silently never matches. Paths are relative to the client's cstrike folder, and ../ reaches the game root. Note that the resources.ini in the release archive is a live rule set, not a template: nearly all of its rules kick, so read it before you start the server with it.

3. Get the hashes right

The hash in resources.ini must be the MD5 of the file as it exists on the client, not on your server. For files you ship (custom models, sprites, sounds), those are the same file, so:

md5sum cstrike/models/player/vip/vip.mdl

ReChecker only compares the first 8 hex characters (4 bytes) of the MD5, which is why the sample file lists hashes like 3cc7f256. Writing the full 32-character MD5 also works; only its first 8 characters count.

For client-side game files (opengl32.dll, hw.dll), they are not the same — you need the hash from a clean client install, and it differs between the Steam build and every non-Steam build in circulation. This is where people get themselves into trouble.

4. Start in log-only mode. Always.

For the first week, give every rule an echo command instead of a kick (like the last rule in section 2), and turn on ReChecker's own log by adding this to server.cfg:

rch_log 1

With rch_log 1, ReChecker writes a line for every rule that fires, including the client's hash as md5hex and the exact command it ran, to a dated file in addons/rechecker/logs/ named L_DD_MM_YYYY.log. rch_log 2 also logs every IGNORE rule check and the rule list loaded at each map start. ReChecker re-reads resources.ini at every map load, so a changelevel applies your edits. Then read what actually shows up:

tail -f "$(ls -t /home/steam/hlds/cstrike/addons/rechecker/logs/L_*.log | head -1)"

You will discover that legitimate players have a dozen different opengl32.dll hashes, because they are on different client builds — Steam, steam_legacy, and half a dozen non-Steam packs. If you had shipped that rule as kick, you would have kicked most of your regulars on day one. That is exactly the failure described in ReChecker kicking legitimate players, and it is entirely avoidable by not skipping this step.

Only after you have a week of logs, and you understand which hashes are normal on your player base, do you convert a rule to kick. Convert one rule at a time.

Whitelist each legitimate hash with an IGNORE line placed above the UNKNOWN rule for that file, because ReChecker reads the file top to bottom. Copy the md5hex value from the log, not got (the same bytes reversed), and pad it back to 8 characters if the log dropped a leading zero.

5. Verify

meta list
 [ 1] Rechecker        RUN   -    rechecker_mm_i386.  2.x   ini  Chlvl ANY

Then test the pipeline end to end with a rule you can trigger on purpose. Create a file on a test client:

echo test > cstrike/rechecker_test.cfg

and a rule, then changelevel so ReChecker reads it:

"rechecker_test.cfg"  UNKNOWN  "kick [userid] 'Test rule'"

Connect from that client. You should be kicked with your message. Connect from a client without the file — you should not be. That proves the plugin loads, parses the config, queries the client, and acts on the answer. Nothing short of that proves ReChecker is working.

Rules that are worth writing

  • Server-shipped custom content — models, sprites and sounds you distribute. The hashes are yours, they are stable, and a mismatch means the player replaced your model with a bright-green wallhack version. This is ReChecker's best use case by a distance.
  • Known-cheat filenames — files that no clean client has. Low false-positive rate, low value (renaming a file defeats it), but it costs nothing.
  • Do not check hw.dll, opengl32.dll, or client.dll with kick unless you have a Steam-only server and you have logged the real distribution first. On a mixed server, the hash space is too wide to enumerate.

Common errors

  • bad load in meta list — wrong architecture. file rechecker_mm_i386.so must report ELF 32-bit, Intel 80386. See bad load.
  • Rules never fire - resources.ini is in the wrong directory (it must sit next to the .so in addons/rechecker/, and a missing file produces no message at all), a line failed to parse (ReChecker skips that line and prints Failed to load "resources.ini" with the reason and line number in the console at map load), or a misspelled keyword is being read as a hash.
  • Everyone gets kicked at once - you hashed a file from your machine and it does not match any real client. Switch the rule's command back to echo and changelevel, or run meta unload rechecker to stop it instantly, then read the logs. ReChecker kicking legitimate players has the full recovery.
  • Every clean player is kicked by a cheat-file rule - the rule uses MISSING, which fires when the file is absent. Use UNKNOWN to act when a file is present.
  • Non-Steam players are kicked, Steam players are not — you are hashing a client binary. Non-Steam builds differ. Drop that rule.

Verification checklist

  1. meta list — ReChecker RUN.
  2. rch_log 1 is set, and addons/rechecker/logs/ gets an entry whenever one of your echo rules fires.
  3. A deliberately-planted test file triggers a kick with your message.
  4. After a week in log-only mode, zero legitimate players would have been kicked by your rules.

If you want defence in depth, pair this with the anti-cheat options overview — ReChecker is one layer, not the answer.