jjolano / shadow

A jailbreak detection bypass for modern iOS jailbreaks.
https://ios.jjolano.me
BSD 3-Clause "New" or "Revised" License
792 stars 131 forks source link

[Feature Request] Allows adding custom filtering rules to the app #153

Open binsee opened 1 year ago

binsee commented 1 year ago

I'm doing some research and know that the target software checks for the existence of certain paths to tell if the device is jailbroken. But none of these paths are in Shadow's blacklist, so Shadow can't help me. It is hoped that allowing custom addition of filtering rules will make Shadow more powerful. In most cases, users only need to add rules to take effect, without having to wait for an updated version of Shadow.

jjolano commented 1 year ago

Shadow primarily operates using a whitelist strategy. This combined with dynamically creating a blacklist based on installed packages is powerful in itself. You can create custom rulesets already - just make another plist file and follow a similar format.

binsee commented 1 year ago

I found the following code in the repo:

#define SHADOW_RULESETS     "/Library/Shadow/Rulesets"

So it should be referred to https://github.com/jjolano/shadow/blob/master/Shadow.framework/layout/Library/Shadow/Rulesets/StandardRules.plist Create a plist file and save it to SHADOW_RULESETS folder?