Lightweight performant anti-cheat written in C.
File verification tool which performs over 62% faster than standard file verification protocol.
Standard File DFS and Hash time Benchmark (non-threaded-impl branch):
anticheat.c threaded DFS and Hash time benchmark:
Summary:
62%+ increase in performance for large file systems
- To generate expected hashes (first time setup)
anticheat-dev <game_directory> -g
Remember to drag in verification.txt file (generated by the tool) into your game directory, and ship with the verification.txt file
- To verify files
anticheat-dev <game_directory> -v
Will exit with code:
0 - Verification Success
3 - Unsuccessful (Tampered files)
In project root run:
make
To build the tool.
To run timing benchmarks (For Multithreaded version only): (Run command first time only, requires around 100mb of space)
./timeBenchmark -setup
(Simply generates the expected hashes, performance wasn't considered at this step, so no multithreading)
./timeBenchmark -g
(Now can time the verification step, which is threaded)
./timeBenchmark -v
Bro is in my backpack 😭
jk proud of you lil bro <3