feat(jailbreak): add modern jailbreak detection and performance tweak - #158
Open
RohannnRX179 wants to merge 1 commit into
Open
feat(jailbreak): add modern jailbreak detection and performance tweak#158RohannnRX179 wants to merge 1 commit into
RohannnRX179 wants to merge 1 commit into
Conversation
…izations - Add early exit optimization for amIJailbroken() boolean check - Add detection for Dopamine, palera1n, and RootHide jailbreaks - Add /var/jb symlink detection for rootless jailbreaks - Optimize DYLD check with pre-lowercased library names - Add Ellekit, Choicy, UnSub, and other modern bypass tool detection - Improve code structure by extracting nested function - Use array joining for cleaner string building
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 of Changes
Performance Optimizations
Early exit for simple boolean check: amIJailbroken() now exits immediately on first detection instead of running all checks
Optimized DYLD check: Pre-lowercase suspicious library names and use simple contains() instead of localizedCaseInsensitiveContains() per iteration
Better string building: Use array joining instead of manual string concatenation
Refactored nested function: Moved getResult() out of performChecks() for cleaner code
Modern Jailbreak Detection (2024-2026)
Added detection for:
Dopamine - /Applications/Dopamine.app, dopamine:// URL scheme, systemhook.dylib
palera1n - /Applications/palera1nLoader.app, palera1n:// URL scheme, /var/jb symlink
RootHide - /var/.jbroot-* directories, roothideinit.dylib
Ellekit - Modern tweak injection framework (libellekit.dylib)
Modern bypass tools - Choicy, UnSub, VnodeBypass, Liberty
Enhanced Detection Methods
/var/jb symlink check - Key indicator of all modern rootless jailbreaks
RootHide directory scanning - Detects randomized .jbroot- directories
Extended ObjC class detection - Checks for 7+ known bypass tool classes