简体   繁体   English

如何从Mac上的终端检查iPhone是否越狱?

[英]How to check if iPhone is jailbroken or not, from terminal on a Mac?

I would like to execute some scripts on my Mac, to which an iOS device is connected. 我想在我的Mac上执行一些脚本,iOS设备连接到这些脚本。 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. 如果您可以使用bash或py建议解决方案,那将会很棒。

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). 您可以尝试通过iPhone的连接程序“usbmux”将SSH连接到它(将有线数据连接转发到计算机上的端口)。 There is a script, as well as instructions on this GitHub page 有一个脚本,以及这个GitHub页面上的说明

Try this https://github.com/libimobiledevice/ifuse You can check if device allows you to access it's root folder. 试试这个https://github.com/libimobiledevice/ifuse您可以检查设备是否允许您访问它的根文件夹。 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. 确实,越狱并不一定意味着你可以访问它的整个文件系统,但所有现代越狱解决方案都安装了AFC2服务,允许完整的文件系统访问。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM