mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-23 10:39:48 +02:00
fixes
This commit is contained in:
8 files changed
+69
-40
No files matched your search
+2
-1
@@ -9,4 +9,5 @@ boot*
|
||||
.irecovery
|
||||
BuildManifest.plist
|
||||
blobs
|
||||
tweaksinstalled
|
||||
tweaksinstalled
|
||||
logs
|
||||
@@ -1,5 +1,5 @@
|
||||
# palera1n
|
||||
iOS 15.0-15.3.1 **work in progress** tethered checkm8 "jailbreak" ( TWEAK BRANCH )
|
||||
iOS 15.0-15.3.1 **work in progress** tethered checkm8 "jailbreak" (TWEAK BRANCH)
|
||||
|
||||
# What does this do?
|
||||
It boots the device with AMFI patches. On first run, it'll boot a ramdisk which dumps your onboard blob, and installs Sileo and Substitute.
|
||||
@@ -13,14 +13,15 @@ On A10 and A11, you **must disable your passcode while in the jailbroken state**
|
||||
# Linux issues
|
||||
Linux has some weird usbmuxd issues. We have tried our best to fix them, but there stil are issues. We highly recommend to compile and install [usbmuxd2](https://github.com/tihmstar/usbmuxd2).
|
||||
|
||||
Stop making issues about Linux not being able to connect, we are aware.
|
||||
Stop making issues about Linux not being able to connect, we are aware. This includes being stuck on waiting for ramdisk to finish booting.
|
||||
|
||||
# Prerequisites
|
||||
1. checkm8 vulnerable iOS device on iOS 15 (A8X-A11)
|
||||
2. Linux or macOS computer
|
||||
- Python 3 is required
|
||||
3. iOS 15.0-15.3.1
|
||||
4. a brain
|
||||
4. A brain
|
||||
- Remember, this is mainly for developers.
|
||||
|
||||
# How to use
|
||||
1. Clone this repo with `git clone --recursive https://github.com/palera1n/palera1n && cd palera1n`
|
||||
@@ -36,7 +37,7 @@ All repos work with the tweaks branch because it uses normal procursus and not r
|
||||
# Credits
|
||||
- [Nathan](https://github.com/verygenericname) for a lot of the code from SSHRD_Script
|
||||
- The ramdisk that dumps blobs is a slimmed down version of SSHRD_Script
|
||||
- They also helped me ( mineek ) getting the kernel up and running and with the patches.
|
||||
- Also helped Mineek getting the kernel up and running and with the patches.
|
||||
- [Mineek](https://github.com/mineek) for the patching and booting commands, and adding tweak support.
|
||||
- [Amy](https://github.com/elihwyma) for the Pogo app
|
||||
- [nyuszika7h](https://github.com/nyuszika7h) for the script to help get into DFU
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+61
-34
@@ -1,5 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
mkdir -p logs
|
||||
|
||||
{
|
||||
|
||||
set -e
|
||||
|
||||
# =========
|
||||
@@ -9,6 +13,7 @@ ipsw="" # IF YOU WERE TOLD TO PUT A CUSTOM IPSW URL, PUT IT HERE. YOU CAN FIND T
|
||||
version="1.0.0"
|
||||
os=$(uname)
|
||||
dir="$(pwd)/binaries/$os"
|
||||
commit=$(git rev-parse --short HEAD)
|
||||
if [[ "$@" == *"--debug"* ]]; then
|
||||
out=/dev/stdout
|
||||
else
|
||||
@@ -140,6 +145,18 @@ _exit_handler() {
|
||||
fi
|
||||
[ $? -eq 0 ] && exit
|
||||
echo "[-] An error occurred"
|
||||
|
||||
cd logs
|
||||
for file in *.log; do
|
||||
mv "$file" FAIL_${file}
|
||||
done
|
||||
cd ..
|
||||
|
||||
if [[ "$@" == *"--debug"* ]]; then
|
||||
echo "[*] A failure log has been made. If you're going to make a GitHub issue, please attatch the latest log."
|
||||
else
|
||||
echo "[*] A failure log has been made, but you aren't running with --debug. DO NOT send this in a GitHub issue."
|
||||
fi
|
||||
}
|
||||
trap _exit_handler EXIT
|
||||
|
||||
@@ -208,8 +225,8 @@ chmod +x "$dir"/*
|
||||
# Start
|
||||
# ============
|
||||
|
||||
echo "palera1n | Version $version"
|
||||
echo "Written by Nebula | Some code and ramdisk from Nathan | Patching commands and help from Mineek | Loader app by Amy"
|
||||
echo "palera1n | Version $version-$commit"
|
||||
echo "Written by Nebula and Mineek | Some code and ramdisk from Nathan | Loader app by Amy"
|
||||
echo ""
|
||||
|
||||
if [ "$1" = '--tweaks' ] && [ ! -e tweaksinstalled ]; then
|
||||
@@ -218,22 +235,22 @@ if [ "$1" = '--tweaks' ] && [ ! -e tweaksinstalled ]; then
|
||||
echo "THIS ALSO MEANS THAT YOU'LL NEED A PC EVERY TIME TO BOOT."
|
||||
echo "THIS ONLY WORKS ON 15.0-15.3.1"
|
||||
echo "IMPORTANT: iMessage will NOT work AT ALL!"
|
||||
echo "DON'T GET ANGRY AT US IF UR DEVICE IS BORKED, ITS UR OWN FAULT AND WE WARNED YOU"
|
||||
echo "DO YOU UNDERSTAND? TYPE YES, I UNDERSTAND TO CONTINUE"
|
||||
echo "DO NOT GET ANGRY AT US IF UR DEVICE IS BORKED, IT'S YOUR OWN FAULT AND WE WARNED YOU"
|
||||
echo "DO YOU UNDERSTAND? TYPE 'Yes, do as I say.' TO CONTINUE"
|
||||
read -r answer
|
||||
if [ "$answer" = 'YES, I UNDERSTAND' ]; then
|
||||
if [ "$answer" = 'Yes, do as I say.' ]; then
|
||||
echo "Are you REALLY sure? WE WARNED U!"
|
||||
echo "Type 'YES, I'm really sure' to continue"
|
||||
read -r answer
|
||||
if [ "$answer" = 'YES, I'"'"'m really sure' ]; then
|
||||
echo "Enabling tweaks"
|
||||
echo "[*] Enabling tweaks"
|
||||
tweaks=1
|
||||
else
|
||||
echo "Disabling tweaks"
|
||||
echo "[*] Disabling tweaks"
|
||||
tweaks=0
|
||||
fi
|
||||
else
|
||||
echo "Disabling tweaks"
|
||||
echo "[*] Disabling tweaks"
|
||||
tweaks=0
|
||||
fi
|
||||
fi
|
||||
@@ -538,17 +555,10 @@ if [ "$os" = 'Darwin' ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
rm -rf work rdwork
|
||||
echo ""
|
||||
echo "Done!"
|
||||
echo "The device should now boot to iOS"
|
||||
echo "If you already have ran palera1n, click Do All in the tools section of Pogo"
|
||||
echo "If not, Pogo should be installed to Tips"
|
||||
|
||||
if [ $1 = '--tweaks' ] && [ ! -f "tweaksinstalled" ]; then
|
||||
echo "[*] Tweaks enabled, running postinstall."
|
||||
echo "[!] please install openssh and curl and wget from sileo ( mineek.github.io/repo ) and press ENTER"
|
||||
read -r
|
||||
echo "[!] Please install OpenSSH, curl, and wget from Sileo (repo is mineek.github.io/repo). Then, press any key to continue"
|
||||
read -n 1 -s
|
||||
echo "[*] Installing tweak support, please follow the instructions 100% or unexpected errors may occur"
|
||||
"$dir"/iproxy 2222 22 &
|
||||
if [ -f ~/.ssh/known_hosts ]; then
|
||||
@@ -560,28 +570,45 @@ if [ $1 = '--tweaks' ] && [ ! -f "tweaksinstalled" ]; then
|
||||
# run the preptweaks.sh script as root
|
||||
ssh -p2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=QUIET mobile@localhost "echo 'alpine' | sudo -S sh ~/preptweaks.sh"
|
||||
# now tell the user to install preferenceloader from bigboss repo and newterm2
|
||||
echo "[*] ATTENTION: please install preferenceloader from bigboss repo and newterm2, then press ENTER"
|
||||
read -r
|
||||
echo "[*] Please install PreferenceLoader from BigBoss repo and NewTerm 2. Then, press any key to continue"
|
||||
read -n 1 -s
|
||||
# now run sbreload
|
||||
"$dir"/sshpass -p alpine ssh -o StrictHostKeyChecking=no root@localhost -p 2222 "sbreload"
|
||||
echo "[*] Tweak Support installed, you can freely use Sileo now."
|
||||
echo "[*] Tweak support installed, you can freely use Sileo now."
|
||||
touch tweaksinstalled
|
||||
fi
|
||||
|
||||
# if known hosts file exists, delete it
|
||||
if [ -f ~/.ssh/known_hosts ]; then
|
||||
rm ~/.ssh/known_hosts
|
||||
if [ ! -f "tweaksinstalled" ]; then
|
||||
# if known hosts file exists, delete it
|
||||
if [ -f ~/.ssh/known_hosts ]; then
|
||||
rm ~/.ssh/known_hosts
|
||||
fi
|
||||
|
||||
# run postboot.sh script
|
||||
if [ -f binaries/postboot.sh ]; then
|
||||
echo "[*] Running postboot"
|
||||
"$dir"/iproxy 2222 22 &
|
||||
scp -P2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=QUIET binaries/postboot.sh mobile@localhost:~/postboot.sh
|
||||
ssh -p2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=QUIET mobile@localhost "echo 'alpine' | sudo -S sh ~/postboot.sh"
|
||||
fi
|
||||
|
||||
# if known hosts file exists, delete it
|
||||
if [ -f ~/.ssh/known_hosts ]; then
|
||||
rm ~/.ssh/known_hosts
|
||||
fi
|
||||
fi
|
||||
|
||||
# run postboot.sh script
|
||||
if [ -f binaries/postboot.sh ]; then
|
||||
echo "[*] Running postboot.sh"
|
||||
"$dir"/iproxy 2222 22 &
|
||||
scp -P2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=QUIET binaries/postboot.sh mobile@localhost:~/postboot.sh
|
||||
ssh -p2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=QUIET mobile@localhost "echo 'alpine' | sudo -S sh ~/postboot.sh"
|
||||
fi
|
||||
cd logs
|
||||
for file in *.log; do
|
||||
mv "$file" SUCCESS_${file}
|
||||
done
|
||||
cd ..
|
||||
|
||||
# if known hosts file exists, delete it
|
||||
if [ -f ~/.ssh/known_hosts ]; then
|
||||
rm ~/.ssh/known_hosts
|
||||
fi
|
||||
rm -rf work rdwork
|
||||
echo ""
|
||||
echo "Done!"
|
||||
echo "The device should now boot to iOS"
|
||||
echo "If you already have ran palera1n, click Do All in the tools section of Pogo"
|
||||
echo "If not, Pogo should be installed to Tips"
|
||||
|
||||
} | tee logs/"$(date +%T)"-"$(date +%F)"-"$(uname)"-"$(uname -r)".log
|
||||
+1
-1
Submodule ramdisk updated: ff460975ac...20f95b5bf0.
Reference in new issue
Block a user