This commit is contained in:
Nebula committed 2022-10-03 16:16:06 -04:00
1 parent 554eb0dbd5
commit a5b611c0c7
8 files changed
+69 -40

No files matched your search

+2 -1
View File
@@ -9,4 +9,5 @@ boot*
.irecovery .irecovery
BuildManifest.plist BuildManifest.plist
blobs blobs
tweaksinstalled tweaksinstalled
logs
+5 -4
View File
@@ -1,5 +1,5 @@
# palera1n # 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? # 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. 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 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). 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 # Prerequisites
1. checkm8 vulnerable iOS device on iOS 15 (A8X-A11) 1. checkm8 vulnerable iOS device on iOS 15 (A8X-A11)
2. Linux or macOS computer 2. Linux or macOS computer
- Python 3 is required - Python 3 is required
3. iOS 15.0-15.3.1 3. iOS 15.0-15.3.1
4. a brain 4. A brain
- Remember, this is mainly for developers.
# How to use # How to use
1. Clone this repo with `git clone --recursive https://github.com/palera1n/palera1n && cd palera1n` 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 # Credits
- [Nathan](https://github.com/verygenericname) for a lot of the code from SSHRD_Script - [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 - 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. - [Mineek](https://github.com/mineek) for the patching and booting commands, and adding tweak support.
- [Amy](https://github.com/elihwyma) for the Pogo app - [Amy](https://github.com/elihwyma) for the Pogo app
- [nyuszika7h](https://github.com/nyuszika7h) for the script to help get into DFU - [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
View File
@@ -1,5 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
mkdir -p logs
{
set -e 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" version="1.0.0"
os=$(uname) os=$(uname)
dir="$(pwd)/binaries/$os" dir="$(pwd)/binaries/$os"
commit=$(git rev-parse --short HEAD)
if [[ "$@" == *"--debug"* ]]; then if [[ "$@" == *"--debug"* ]]; then
out=/dev/stdout out=/dev/stdout
else else
@@ -140,6 +145,18 @@ _exit_handler() {
fi fi
[ $? -eq 0 ] && exit [ $? -eq 0 ] && exit
echo "[-] An error occurred" 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 trap _exit_handler EXIT
@@ -208,8 +225,8 @@ chmod +x "$dir"/*
# Start # Start
# ============ # ============
echo "palera1n | Version $version" echo "palera1n | Version $version-$commit"
echo "Written by Nebula | Some code and ramdisk from Nathan | Patching commands and help from Mineek | Loader app by Amy" echo "Written by Nebula and Mineek | Some code and ramdisk from Nathan | Loader app by Amy"
echo "" echo ""
if [ "$1" = '--tweaks' ] && [ ! -e tweaksinstalled ]; then 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 ALSO MEANS THAT YOU'LL NEED A PC EVERY TIME TO BOOT."
echo "THIS ONLY WORKS ON 15.0-15.3.1" echo "THIS ONLY WORKS ON 15.0-15.3.1"
echo "IMPORTANT: iMessage will NOT work AT ALL!" 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 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, I UNDERSTAND TO CONTINUE" echo "DO YOU UNDERSTAND? TYPE 'Yes, do as I say.' TO CONTINUE"
read -r answer 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 "Are you REALLY sure? WE WARNED U!"
echo "Type 'YES, I'm really sure' to continue" echo "Type 'YES, I'm really sure' to continue"
read -r answer read -r answer
if [ "$answer" = 'YES, I'"'"'m really sure' ]; then if [ "$answer" = 'YES, I'"'"'m really sure' ]; then
echo "Enabling tweaks" echo "[*] Enabling tweaks"
tweaks=1 tweaks=1
else else
echo "Disabling tweaks" echo "[*] Disabling tweaks"
tweaks=0 tweaks=0
fi fi
else else
echo "Disabling tweaks" echo "[*] Disabling tweaks"
tweaks=0 tweaks=0
fi fi
fi fi
@@ -538,17 +555,10 @@ if [ "$os" = 'Darwin' ]; then
fi fi
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 if [ $1 = '--tweaks' ] && [ ! -f "tweaksinstalled" ]; then
echo "[*] Tweaks enabled, running postinstall." echo "[*] Tweaks enabled, running postinstall."
echo "[!] please install openssh and curl and wget from sileo ( mineek.github.io/repo ) and press ENTER" echo "[!] Please install OpenSSH, curl, and wget from Sileo (repo is mineek.github.io/repo). Then, press any key to continue"
read -r read -n 1 -s
echo "[*] Installing tweak support, please follow the instructions 100% or unexpected errors may occur" echo "[*] Installing tweak support, please follow the instructions 100% or unexpected errors may occur"
"$dir"/iproxy 2222 22 & "$dir"/iproxy 2222 22 &
if [ -f ~/.ssh/known_hosts ]; then if [ -f ~/.ssh/known_hosts ]; then
@@ -560,28 +570,45 @@ if [ $1 = '--tweaks' ] && [ ! -f "tweaksinstalled" ]; then
# run the preptweaks.sh script as root # 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" 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 # 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" echo "[*] Please install PreferenceLoader from BigBoss repo and NewTerm 2. Then, press any key to continue"
read -r read -n 1 -s
# now run sbreload # now run sbreload
"$dir"/sshpass -p alpine ssh -o StrictHostKeyChecking=no root@localhost -p 2222 "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 touch tweaksinstalled
fi fi
# if known hosts file exists, delete it if [ ! -f "tweaksinstalled" ]; then
if [ -f ~/.ssh/known_hosts ]; then # if known hosts file exists, delete it
rm ~/.ssh/known_hosts 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 fi
# run postboot.sh script cd logs
if [ -f binaries/postboot.sh ]; then for file in *.log; do
echo "[*] Running postboot.sh" mv "$file" SUCCESS_${file}
"$dir"/iproxy 2222 22 & done
scp -P2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=QUIET binaries/postboot.sh mobile@localhost:~/postboot.sh cd ..
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 rm -rf work rdwork
if [ -f ~/.ssh/known_hosts ]; then echo ""
rm ~/.ssh/known_hosts echo "Done!"
fi 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.