feat: add Python integrity verification with SHA-256#21
Open
Nigo-ly wants to merge 1 commit into
Open
Conversation
Implemented anti_cheat.py that: - Computes SHA-256 of the script file - Compares to JAVELIN_EXPECTED_SHA256 env var - Exits with code 1 if integrity check fails - Skips check if env var is not set Resolves issue javelin-anticheat#4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implemented Python integrity verification for the Javelin Project.
What was added
Created with the following features:
SHA-256 computation: Computes hash of the running script file using Python's
Environment variable check: Compares the computed hash against env var
Graceful handling:
Usage
91cf6df8bee4b9590599bc3a7386d9547cf4edcdc0b3a99c577ba1b8394579fc
[Javelin AntiCheat] Starting Python integrity check...
[Javelin AntiCheat] Integrity check FAILED!
Expected: your-hash-here
Current: 91cf6df8bee4b9590599bc3a7386d9547cf4edcdc0b3a99c577ba1b8394579fc
[Javelin AntiCheat] Integrity violation detected. Exiting.
Testing
Resolves issue #4