epeth0mus / Fugu16

Fugu16 is an untethered iOS 16 Jailbreak
MIT License
74 stars 15 forks source link

Fugu16 - Untethered iOS 16 Jailbreak

Fugu16 is an (incomplete) iOS 16 Jailbreak, including an untether (persistence), kernel exploit, kernel PAC bypass and PPL bypass. The CVE numbers of the vulnerabilities are: CVE-2021-30740, CVE-2021-30768, CVE-2021-30769, CVE-2021-30770 and CVE-2021-30773.

Supported Devices/iOS Versions

Fugu16 should support all arm64e devices (iPhone XS and newer) on iOS 16.
Support for lower versions (down to 15.2) can be added by editing arm/shared/ClosurePwn/Sources/ClosurePwn/PwnClosure.swift and arm/shared/KernelExploit/Sources/KernelExploit/offsets.swift.

arm64 devices are not supported because the exploit to install the Fugu16 App does not work on these devices.
However, it is in theory possible to install the untether on them (e.g. via checkra1n).
Note that all of this code was written specifically for arm64e, so some changes are required to add arm64 support to the untether.

Features

WARNING

Building and Running

Requirements:

To build and run the iOS Jailbreak, all you have to do is run the ios_install.py script and follow the instructions. In case you get a code signing error, open arm/iOS/Fugu16App/Fugu16App.xcodeproj and edit the code signing options.

Recovery

So you didn't read the warning section and your device is now in a bootloop. Let's hope you didn't enable the fast untether.
Anyway, before updating your device to the latest iOS version, try the following first:

  1. Install irecovery on your computer
  2. Connect your device via USB and boot into the recovery mode
  3. Run irecovery -s on your computer, then enter the following commands:
    • setenv boot-args no_untether
    • saveenv
    • reboot
  4. Your device should now boot again. If it doesn't, repeat step two again, run irecovery -s and then enter these commands:
    • setenv boot-args untether_force_restore
    • saveenv
    • reboot
  5. Device still won't boot? Then you'll have to update it to the latest version unfortunately :/

Credits

Like most software, Fugu16 contains (derived) code which was written by others.
I would therefore like to thank the people below for open-sourcing their code:

Currently, the remount patch has copyright issues which I'm trying to resolve ASAP. Apparently, multiple parties think the code is theirs so I don't know what to do right now. I just write this here and hope no one DMCA's me.

Fugu16 also includes various header files from Apple due to its file system change in iOS 16. You can find more details on iOS 16 Jailbreak here

For more information, please see credits.txt.

License

Fugu16 is released under the MIT license. Please see the LICENSE file for more information.