# iOS Jailbreaking

***palera1n is a work-in-progress jailbreak that patches the kernel so you can use Sileo and install tweaks. Currently, palera1n is compatible with A11 (iPhone X) and earlier devices on iOS 15 and later, with some major caveats.***

{% embed url="<https://ios.cfw.guide/installing-palera1n/>" %}

### Downloads <a href="#downloads" id="downloads"></a>

The version of [palera1nOpen in new window](https://github.com/palera1n/palera1n/releases) for your OS.

* macOS users should generally get `palera1n-macos-universal`
* Linux users should get whichever version corresponds to the architecture of the computer you're using
  * This will be usually `palera1n-linux-x86_64`. Choose this one if you're unsure.
  * If you're using a 32-bit computer, choose `palera1n-linux-x86`.
  * If you're using an ARM computer (e.g. a Raspberry Pi), choose `palera1n-linux-armel` for 32-bit and `palera1n-linux-arm64` for 64-bit.

### [#](https://ios.cfw.guide/installing-palera1n/#installing-the-jailbreak)Installing the jailbreak <a href="#installing-the-jailbreak" id="installing-the-jailbreak"></a>

Please select your operating system:

macOS

#### Installing palera1n <a href="#installing-palera1n" id="installing-palera1n"></a>

1. Enable Full Disk Access for Terminal (this only has to be done once)

   * macOS Monterey and below: System Preferences → Security & Privacy → Privacy → Full Disk Access
   * macOS Ventura and above: System Settings → Privacy & Security → Full Disk Access

   If Terminal does not show up in the list, click the plus icon and select it from Applications → Utilities.
2. If you are on macOS Monterey 12.2.1 or below, run the following commands (this only has to be done once):

   ```
   sudo python -m ensurepip
   sudo python -m pip install setuptools xattr==0.6.4
   ```
3. Open a terminal window and `cd` to the directory that palera1n was downloaded to (usually `cd ~/Downloads`).
4. Run `sudo mkdir -p /usr/local/bin`
5. Run `sudo mv ./palera1n-macos-universal /usr/local/bin/palera1n`
   * Replace `./palera1n-macos-universal` with whatever version you downloaded
6. Run `sudo xattr -c /usr/local/bin/palera1n`
7. Run `sudo chmod +x /usr/local/bin/palera1n`

#### Running palera1n <a href="#running-palera1n" id="running-palera1n"></a>

If you are using a USB-C to Lightning cable to do this process, you may run into issues entering into DFU mode

If you do have issues, get a USB-A to Lightning cable and, if necessary, also get a USB-C to USB-A adapter.

If you're using an Apple Silicon Mac and using a USB-C port to plug your cable/adapter into, you'll need to unplug and replug the device after `Checkmate!` appears in the logs.

1. Run `palera1n`
   * Make sure your device is plugged in when entering this command
2. When ready, press `Enter` and follow the on screen instructions to enter [DFU mode](https://ios.cfw.guide/faq/#what-is-dfu-mode).

A9(X) and earlier devices have an issue where they will get stuck midway through this process in pongoOS. To work around this issue, you'll need to do the following:

1. In the terminal window, press `Control` + `C` on your keyboard
2. Rerun the command that you just ran

You'll need to do this every time you rejailbreak your device as well.

Linux

Once the device boots up, open the palera1n loader app and tap `Sileo`. After a bit of time, you'll be prompted to set a passcode for using command line stuff, and then afterwards,`Sileo` should be on your home screen.

To rejailbreak your device, simply rerun the command you just ran and then repeat any other applicable steps.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.smhuda.com/pentesting/application-security/mobile-security/ios/ios-jailbreaking.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
