# Palera1n

## MacOS

B1: Mở terminal&#x20;

> Ấn Command + Space gõ terminal

B2: Dán lện sau vào terminal

```
sudo /bin/sh -c "$(curl -fsSL https://static.palera.in/scripts/install.sh)"
```

<figure><img src="/files/4MquVVAyT0mn8kwNfLct" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Lúc này bạn hãy nhập pass quản trị vào nhé.&#x20;

> Cứ nhập đi nó sẽ không hiển thị gì hết
>
> > Cứ nhập đúng rồi enter là được
> > {% endhint %}

> Như vậy cơ bản là xong rồi nhé
>
> > Để sử dụng bạn chỉ cần gõ palera1n vào terminal&#x20;

## Sử dụng palera1n

{% hint style="info" %}
Mặc định khi bạn gõ lệnh palera1n

Thì bạn sẽ jailbreak ở chế độ rootless

> Nếu bạn jailbreak ở rootfull thì bạn sẽ cần gắn thêm các flag trong câu lệnh
> {% endhint %}

{% hint style="info" %}
Một câu lệnh rootfull thông thường sẽ là&#x20;

`palera1n -f -c -v -V`

> Trong đó:
>
> * palera1n là lệnh khởi động palera1n
> * -f là flag kích hoạt chế độ rootfull
> * -c là flag create fakefs
> * -v là flag kích hoạt chế độ debug
> * -V là flag kích hoạt chế độ verbose&#x20;

> Sau đó làm theo hướng dẫn của tool nhé

Tiếp đó sau khi iDevice khởi động lên thì bạn tiếp tục gõ lệnh `palera1n -f -v -V`
{% endhint %}

{% hint style="danger" %}
Đối với chip Apple Silicon và sử dụng type C thì bạn cần replug iDevice khi dòng `Checkmate!` hiện ra ở logs
{% endhint %}

## Palera1n  iso

B1: Tải palera1n iso [tại đây](https://hackintosher-my.sharepoint.com/:u:/g/personal/hoanglongvonguyen_hackintosher_onmicrosoft_com/ESvF8Tn8Wh5BreCoC0LwMKYB4nFUgS4yLgSgYSAeqESH4g?e=j8Xnem)

B2: Tải ventoy [tại đây](https://www.ventoy.net/en/index.html)

B3: Chạy file `Ventoy2Disk.exe`

B4: Connect usb với máy tính

B5: Ấn `Install`

<figure><img src="/files/l5UFql84htauqrD4TAv6" alt=""><figcaption></figcaption></figure>

B6: Copy file iso palera1n vào usb vừa install ventoy

<figure><img src="/files/9oljQyBRAtO3b2xnnlW8" alt=""><figcaption></figcaption></figure>

B7: Tiến hành boot vào usb và chọn `palera1n`

B8: Chọn `Switch`

<figure><img src="/files/UZjpxhRAQ1Ho5Zeyri61" alt=""><figcaption></figcaption></figure>

B9: Chọn `rootful` hoặc `rootless`

<figure><img src="/files/JByfPqBFIP8NMAOlrCEB" alt=""><figcaption></figcaption></figure>

B10: Chọn `Option`

<figure><img src="/files/B0Opyz4NB6XMspL0vSCJ" alt=""><figcaption></figcaption></figure>

B11: Tiến hành tick theo những mục dưới đây

* Create fakefs: Tick nếu như bạn chọn rootful ở B8
* Verbose: Hiển thị các dòng log trực tiếp trên màn hình
* Debug: Kích hoạt chế độ gỡ lỗi

> Ấn Space để chọn&#x20;

<figure><img src="/files/6PooZLgawB2KURm6EXfX" alt=""><figcaption></figcaption></figure>

B12: Ấn stab vào nút `Select` và ấn enter

B13: Ấn Start

<figure><img src="/files/531h13H6m8vWzcnmkF4t" alt=""><figcaption></figcaption></figure>

> Tiến hành cắm iDevices và đưa thiết bị về chế độ DFU như hướng dẫn của tool nhé
>
> > Nếu như bạn sử dụng rootful thì sau khi bạn chạy xong lần đầu tiên thì tiếp tục chạy lần thứ hai.
> >
> > > Tuy nhiên ở lần thứ 2 này bạn sẽ không tick vào option `Create fakefs`&#x20;

B14: Sau khi hoàn thành bạn tiến hành gõ `exit` vào SSH

B15: Ấn Reboot

{% hint style="info" %}
Với checkra1n thì bạn cũng làm tương tự nhưng không phải rườm ra như vậy bạn chỉ cần chạy thôi mà không cần phải vào option chỉnh bất cứ điều gì
{% endhint %}

{% hint style="warning" %}
Nếu như bạn sử dụng rootful mà muốn xoá Jailbreak thì hãy tick&#x20;

* Clean fakefs
* Revert Install
  {% endhint %}


---

# 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://ios.heavietnam.com/jailbreak/palera1n.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.
