Reputation: 1753
I would like to execute some scripts on my Mac, to which an iOS device is connected. The intent of the script would be to identify whether the connected device is jailbroken or not. Would be great if you could suggest the solution using bash or py.
Upvotes: 4
Views: 3198
Reputation: 9570
Try this https://github.com/libimobiledevice/ifuse You can check if device allows you to access it's root folder. If you can access root folder then it's definitely jailbroken.
It's true that jailbreak doesn't necessarily mean you can access it's entire filesystem but all modern jailbreak solutions install AFC2 service which allows full filesystem access.
Upvotes: 1
Reputation: 33421
You can attempt to SSH into it via the iPhone's connection program "usbmux" (to forward the wired data connection to a port on your computer). There is a script, as well as instructions on this GitHub page
Upvotes: 3