Unknown ❤ RESPAWN.ZAFEST.RO | VIP FREE | FREE FOR ALL ❤ 0/32
Romania XPlayZM.CSBlackDevil.COM # Zombie Plague UltimateX [ Respawn + FDL + VIP 22-12PM + POINTS] ® 17/32
Prodvigat server

Add install-rechecker/en.md

Browse Source
Daemon666 committed parent b29ada425e commit ef609228f72d5a7e846411d22c192ae15553fa8d
1 changed file with 83 additions and 0 deletions
+83 -0 install-rechecker/en.md A
@@ -0,0 +1,83 @@
1 +---
2 +title: "How to Install ReChecker for Client File Verification"
3 +excerpt: "Install ReChecker, write resources.ini rules that check client file hashes, and avoid kicking legitimate players by mistake."
4 +category: "installation"
5 +tags: "rechecker, anticheat"
6 +image: ""
7 +read_time: "8 min read"
8 +---
9 +<p>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 <code>opengl32.dll</code>, a wallhack's replacement models, a <code>.cfg</code> that no legitimate client has — and how you enforce that everyone is running the same map or model files you shipped.</p>
10 +
11 +<p>Be honest about what it is: <strong>ReChecker is not an anti-cheat.</strong> 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.</p>
12 +
13 +<h2>1. Install the plugin</h2>
14 +<p>ReChecker is a Metamod plugin (like <a href="/tutorials/install-revoice">ReVoice</a> and <a href="/tutorials/install-reunion">Reunion</a>), not an AMXX plugin.</p>
15 +<pre>mkdir -p /home/steam/hlds/cstrike/addons/rechecker
16 +cp rechecker_mm_i386.so /home/steam/hlds/cstrike/addons/rechecker/
17 +cp resources.ini /home/steam/hlds/cstrike/addons/rechecker/
18 +chmod 644 /home/steam/hlds/cstrike/addons/rechecker/*</pre>
19 +<p>Register it in <code>cstrike/addons/metamod/plugins.ini</code>:</p>
20 +<pre>linux addons/rechecker/rechecker_mm_i386.so
21 +linux addons/amxmodx/dlls/amxmodx_mm_i386.so</pre>
22 +<p>Restart. Metamod plugins load at server start, not on map change.</p>
23 +
24 +<h2>2. resources.ini — the rules</h2>
25 +<p>This is the whole product. Each line is a check against a client-side file path, an expected hash (or a keyword), and an action.</p>
26 +<pre>; &lt;file&gt; &lt;hash or keyword&gt; &lt;action&gt; ["message"]
27 +
28 +; kick anyone whose opengl32.dll differs from the one we expect
29 +"opengl32.dll" "d41d8cd98f00b204e9800998ecf8427e" "kick" "Modified opengl32.dll"
30 +
31 +; the file must not exist at all
32 +"cstrike/wallhack.cfg" "missing" "kick" "Cheat config detected"
33 +
34 +; the file must exist and match, or the client is kicked
35 +"cstrike/models/player/vip/vip.mdl" "&lt;md5&gt;" "kick" "Bad player model"
36 +
37 +; log only, do not act — use this while you are calibrating
38 +"cstrike/config.cfg" "any" "log"</pre>
39 +<p>Actions available in typical builds: <code>kick</code>, <code>log</code>, <code>console</code>, and passing the result to a plugin. Read the <code>resources.ini</code> that ships with your build for the exact keyword set — it has changed between versions and inventing an action silently disables the rule.</p>
40 +
41 +<h2>3. Get the hashes right</h2>
42 +<p>The hash in <code>resources.ini</code> must be the MD5 of the file <strong>as it exists on the client</strong>, not on your server. For files you ship (custom models, sprites, sounds), those are the same file, so:</p>
43 +<pre>md5sum cstrike/models/player/vip/vip.mdl</pre>
44 +<p>For client-side game files (<code>opengl32.dll</code>, <code>hw.dll</code>), they are <em>not</em> 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.</p>
45 +
46 +<h2>4. Start in log-only mode. Always.</h2>
47 +<p>Set every rule to <code>log</code> for the first week. Then read what actually shows up:</p>
48 +<pre>tail -f /home/steam/hlds/cstrike/addons/rechecker/rechecker.log</pre>
49 +<p>You will discover that legitimate players have a dozen different <code>opengl32.dll</code> hashes, because they are on different client builds — Steam, <code>steam_legacy</code>, and half a dozen non-Steam packs. If you had shipped that rule as <code>kick</code>, you would have kicked most of your regulars on day one. That is exactly the failure described in <a href="/tutorials/fix-rechecker-kicking-legit-players">ReChecker kicking legitimate players</a>, and it is entirely avoidable by not skipping this step.</p>
50 +<p>Only after you have a week of logs, and you understand which hashes are normal on <em>your</em> player base, do you convert a rule to <code>kick</code>. Convert one rule at a time.</p>
51 +
52 +<h2>5. Verify</h2>
53 +<pre>meta list</pre>
54 +<pre> [ 1] ReChecker RUN - rechecker_mm_i386. 2.x ini Start ANY</pre>
55 +<p>Then test the pipeline end to end with a rule you can trigger on purpose. Create a file on a test client:</p>
56 +<pre>echo test &gt; cstrike/rechecker_test.cfg</pre>
57 +<p>and a rule:</p>
58 +<pre>"cstrike/rechecker_test.cfg" "missing" "kick" "Test rule"</pre>
59 +<p>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.</p>
60 +
61 +<h2>Rules that are worth writing</h2>
62 +<ul>
63 +<li><strong>Server-shipped custom content</strong> — 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.</li>
64 +<li><strong>Known-cheat filenames</strong> — files that no clean client has. Low false-positive rate, low value (renaming a file defeats it), but it costs nothing.</li>
65 +<li><strong>Do not check <code>hw.dll</code>, <code>opengl32.dll</code>, or <code>client.dll</code> with <code>kick</code></strong> 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.</li>
66 +</ul>
67 +
68 +<h2>Common errors</h2>
69 +<ul>
70 +<li><strong><code>bad load</code> in <code>meta list</code></strong> — wrong architecture. <code>file rechecker_mm_i386.so</code> must report <em>ELF 32-bit, Intel 80386</em>. See <a href="/tutorials/fix-metamod-bad-load">bad load</a>.</li>
71 +<li><strong>Rules never fire</strong> — <code>resources.ini</code> is in the wrong directory, or a syntax error made the parser drop the file. It must sit next to the <code>.so</code> in <code>addons/rechecker/</code>.</li>
72 +<li><strong>Everyone gets kicked at once</strong> — you hashed a file from <em>your</em> machine and it does not match any real client. Set the rule back to <code>log</code> immediately, then read the logs.</li>
73 +<li><strong>Non-Steam players are kicked, Steam players are not</strong> — you are hashing a client binary. Non-Steam builds differ. Drop that rule.</li>
74 +</ul>
75 +
76 +<h2>Verification checklist</h2>
77 +<ol>
78 +<li><code>meta list</code> — ReChecker <code>RUN</code>.</li>
79 +<li>The log file is being written with entries for connecting players.</li>
80 +<li>A deliberately-planted test file triggers a kick with your message.</li>
81 +<li>After a week in log-only mode, zero legitimate players would have been kicked by your rules.</li>
82 +</ol>
83 +<p>If you want defence in depth, pair this with <a href="/tutorials/install-cs16-server-anticheat">the anti-cheat options overview</a> — ReChecker is one layer, not the answer.</p>
0 84