From 491db76b61a9bf961de0df4710e8118be5554147 Mon Sep 17 00:00:00 2001 From: LukeZGD Date: Mon, 19 Apr 2021 16:04:30 +0800 Subject: [PATCH] Some pwnDFU fixes Skip "Booting iBSS" when iPwnder32 is used --- README.md | 2 +- restore.sh | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c0d5984..b9b63b9 100755 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ - To make sure that SSH is successful, try these steps: Reinstall OpenSSH/Dropbear, reboot and rejailbreak, then reinstall them again - To devices with baseband, this script will restore your device with the latest baseband (except when jailbreak is enabled, and on iPhone5,1 as there are reported issues) - This script can also be used to just enter kDFU mode for all supported devices - - As alternatives to kloader/kDFU, checkm8 A5 or ipwndfu can also be used in DFU advanced menu + - As alternatives to kloader/kDFU, checkm8 A5 or pwnDFU A6 can also be used in DFU advanced menu - To enter DFU advanced menu, put your iOS device in DFU mode before running the script - This script can work on virtual machines, but I will not provide support for them - If you want to use other manually saved blobs for 6.1.3/8.4.1, create a folder named `saved`, then within it create another folder named `shsh`. You can then put your blob inside that folder. diff --git a/restore.sh b/restore.sh index b8eead2..0d95ccc 100755 --- a/restore.sh +++ b/restore.sh @@ -137,13 +137,17 @@ function Main { DFUManual=1 Mode='Downgrade' Log "32-bit device in DFU mode detected." - Echo "* Advanced options menu - use at your own risk" + Echo "* Advanced Options Menu" Input "This device is in:" - select opt in "kDFU mode" "DFU mode (ipwndfu A6)" "pwnDFU mode (checkm8 A5)" "(Any other key to exit)"; do + select opt in "kDFU mode" "DFU mode (A6)" "pwnDFU mode (A5)" "(Any other key to exit)"; do case $opt in "kDFU mode" ) break;; - "DFU mode (ipwndfu A6)" ) CheckM8; break;; - "pwnDFU mode (checkm8 A5)" ) kDFU iBSS; break;; + "DFU mode (A6)" ) CheckM8; break;; + "pwnDFU mode (A5)" ) + Echo "* Make sure that your device is in pwnDFU mode using an Arduino+USB Host Shield!"; + Input "Press ENTER to continue (or press Ctrl+C to cancel)"; + read -s; + kDFU iBSS; break;; * ) exit;; esac done @@ -408,7 +412,7 @@ function CheckM8 { cd ../.. else cd ../.. - kDFU iBSS + [[ $pwnDFUTool == "ipwndfu" ]] && kDFU iBSS || echo pwnDFUDevice=$? fi