Skip to content

PoromKamal/anticheat.c

Repository files navigation

anticheat.c ⚡

Lightweight performant anti-cheat written in C.

File verification tool which performs over 62% faster than standard file verification protocol.

Benchmarks

Standard File DFS and Hash time Benchmark (non-threaded-impl branch):

image

anticheat.c threaded DFS and Hash time benchmark:

image

Summary:

62%+ increase in performance for large file systems

Usage

  1. 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

  1. To verify files
anticheat-dev <game_directory> -v

Will exit with code:

0 - Verification Success

3 - Unsuccessful (Tampered files)

Build instructions

In project root run:

make

To build the tool.

Running Benchmarks

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

Look at this Nehal guy 💀

image

Bro is in my backpack 😭

jk proud of you lil bro <3

About

Lightweight performant anti-cheat written in C.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages