diff --git a/README.md b/README.md index e9c639f..6b7a07e 100644 --- a/README.md +++ b/README.md @@ -138,6 +138,7 @@ - iPad 2 iOS 4.3.x bundles from [selfisht, Ralph0045](https://www.reddit.com/r/LegacyJailbreak/comments/1172ulo/release_ios_4_ipad_2_odysseus_firmware_bundles/) - [sshpass](https://sourceforge.net/project/sshpass) - Bootstrap tar from [SpiritNET](https://invoxiplaygames.uk/projects/spiritnet/) +- [Cydia HTTPatch](https://cydia.invoxiplaygames.uk/package/cydiahttpatch) for 3.1.3 downgrades/jailbreaks - [Pangu](https://www.theiphonewiki.com/wiki/Pangu) - [p0sixspwn](https://www.theiphonewiki.com/wiki/p0sixspwn) - [unthredeh4il](https://www.theiphonewiki.com/wiki/Unthredera1n#unthredeh4il) @@ -145,5 +146,5 @@ - [pris0nbarake](https://github.com/LukeZGD/pris0nbarake) - LukeZGD fork - [Corona](https://www.theiphonewiki.com/wiki/Corona) and [Rocky Racoon](https://www.theiphonewiki.com/wiki/Rocky_Racoon) - [greenpois0n](https://github.com/OpenJailbreak/greenpois0n/tree/0f1eac8e748abb200fc36969e616aaad009f7ebf) -- Some patches from [PwnageTool](https://www.theiphonewiki.com/wiki/PwnageTool) and [sn0wbreeze](https://www.theiphonewiki.com/wiki/sn0wbreeze) +- Some patches from [PwnageTool](https://www.theiphonewiki.com/wiki/PwnageTool), [sn0wbreeze](https://www.theiphonewiki.com/wiki/sn0wbreeze), [redsn0w](https://www.theiphonewiki.com/wiki/redsn0w) - SSH Ramdisk tar from [SSH-Ramdisk-Maker-and-Loader](https://github.com/Ralph0045/SSH-Ramdisk-Maker-and-Loader) and [msftguy's ssh-rd](https://github.com/msftguy/ssh-rd) diff --git a/resources/jailbreak/cydiahttpatch.tar b/resources/jailbreak/cydiahttpatch.tar new file mode 100644 index 0000000..921b6f7 Binary files /dev/null and b/resources/jailbreak/cydiahttpatch.tar differ diff --git a/resources/jailbreak/cydiasubstrate.tar b/resources/jailbreak/cydiasubstrate.tar new file mode 100644 index 0000000..076d497 Binary files /dev/null and b/resources/jailbreak/cydiasubstrate.tar differ diff --git a/resources/patch/old/iPhone2,1/3.1.2/018-6051-014.dmg.patch b/resources/patch/old/iPhone2,1/3.1.2/018-6051-014.dmg.patch deleted file mode 100644 index 0091af5..0000000 Binary files a/resources/patch/old/iPhone2,1/3.1.2/018-6051-014.dmg.patch and /dev/null differ diff --git a/resources/patch/old/iPhone2,1/3.1.2/LLB.n88ap.RELEASE.img3.patch b/resources/patch/old/iPhone2,1/3.1.2/LLB.n88ap.RELEASE.img3.patch deleted file mode 100644 index b14199e..0000000 Binary files a/resources/patch/old/iPhone2,1/3.1.2/LLB.n88ap.RELEASE.img3.patch and /dev/null differ diff --git a/resources/patch/old/iPhone2,1/3.1.2/iBSS.n88ap.RELEASE.dfu.patch b/resources/patch/old/iPhone2,1/3.1.2/iBSS.n88ap.RELEASE.dfu.patch deleted file mode 100644 index 4780165..0000000 Binary files a/resources/patch/old/iPhone2,1/3.1.2/iBSS.n88ap.RELEASE.dfu.patch and /dev/null differ diff --git a/resources/patch/old/iPhone2,1/3.1.2/iBoot.n88ap.RELEASE.img3.patch b/resources/patch/old/iPhone2,1/3.1.2/iBoot.n88ap.RELEASE.img3.patch deleted file mode 100644 index 027c90f..0000000 Binary files a/resources/patch/old/iPhone2,1/3.1.2/iBoot.n88ap.RELEASE.img3.patch and /dev/null differ diff --git a/resources/patch/old/iPhone2,1/3.1.2/kernelcache.release.s5l8920x.patch b/resources/patch/old/iPhone2,1/3.1.2/kernelcache.release.s5l8920x.patch deleted file mode 100644 index 832d023..0000000 Binary files a/resources/patch/old/iPhone2,1/3.1.2/kernelcache.release.s5l8920x.patch and /dev/null differ diff --git a/resources/patch/old/iPhone2,1/3.1/018-5352-086.dmg.patch b/resources/patch/old/iPhone2,1/3.1/018-5352-086.dmg.patch deleted file mode 100644 index 872caf8..0000000 Binary files a/resources/patch/old/iPhone2,1/3.1/018-5352-086.dmg.patch and /dev/null differ diff --git a/resources/patch/old/iPhone2,1/3.1/LLB.n88ap.RELEASE.img3.patch b/resources/patch/old/iPhone2,1/3.1/LLB.n88ap.RELEASE.img3.patch deleted file mode 100644 index b6ae31d..0000000 Binary files a/resources/patch/old/iPhone2,1/3.1/LLB.n88ap.RELEASE.img3.patch and /dev/null differ diff --git a/resources/patch/old/iPhone2,1/3.1/iBSS.n88ap.RELEASE.dfu.patch b/resources/patch/old/iPhone2,1/3.1/iBSS.n88ap.RELEASE.dfu.patch deleted file mode 100644 index 4780165..0000000 Binary files a/resources/patch/old/iPhone2,1/3.1/iBSS.n88ap.RELEASE.dfu.patch and /dev/null differ diff --git a/resources/patch/old/iPhone2,1/3.1/iBoot.n88ap.RELEASE.img3.patch b/resources/patch/old/iPhone2,1/3.1/iBoot.n88ap.RELEASE.img3.patch deleted file mode 100644 index e2cbabe..0000000 Binary files a/resources/patch/old/iPhone2,1/3.1/iBoot.n88ap.RELEASE.img3.patch and /dev/null differ diff --git a/resources/patch/old/iPhone2,1/3.1/kernelcache.release.s5l8920x.patch b/resources/patch/old/iPhone2,1/3.1/kernelcache.release.s5l8920x.patch deleted file mode 100644 index acdfd76..0000000 Binary files a/resources/patch/old/iPhone2,1/3.1/kernelcache.release.s5l8920x.patch and /dev/null differ diff --git a/resources/patch/old/iPhone2,1/4.0/018-6461-399.dmg.patch b/resources/patch/old/iPhone2,1/4.0/018-6461-399.dmg.patch deleted file mode 100644 index 93102f6..0000000 Binary files a/resources/patch/old/iPhone2,1/4.0/018-6461-399.dmg.patch and /dev/null differ diff --git a/resources/patch/old/iPhone2,1/4.0/LLB.n88ap.RELEASE.img3.patch b/resources/patch/old/iPhone2,1/4.0/LLB.n88ap.RELEASE.img3.patch deleted file mode 100644 index 05bab33..0000000 Binary files a/resources/patch/old/iPhone2,1/4.0/LLB.n88ap.RELEASE.img3.patch and /dev/null differ diff --git a/resources/patch/old/iPhone2,1/4.0/iBSS.n88ap.RELEASE.dfu.patch b/resources/patch/old/iPhone2,1/4.0/iBSS.n88ap.RELEASE.dfu.patch deleted file mode 100644 index 16e03ab..0000000 Binary files a/resources/patch/old/iPhone2,1/4.0/iBSS.n88ap.RELEASE.dfu.patch and /dev/null differ diff --git a/resources/patch/old/iPhone2,1/4.0/iBoot.n88ap.RELEASE.img3.patch b/resources/patch/old/iPhone2,1/4.0/iBoot.n88ap.RELEASE.img3.patch deleted file mode 100644 index e18189e..0000000 Binary files a/resources/patch/old/iPhone2,1/4.0/iBoot.n88ap.RELEASE.img3.patch and /dev/null differ diff --git a/resources/patch/old/iPhone2,1/4.0/kernelcache.release.n88.patch b/resources/patch/old/iPhone2,1/4.0/kernelcache.release.n88.patch deleted file mode 100644 index 4256301..0000000 Binary files a/resources/patch/old/iPhone2,1/4.0/kernelcache.release.n88.patch and /dev/null differ diff --git a/resources/patch/old/iPhone2,1/4.3.3/038-1447-003.dmg.patch b/resources/patch/old/iPhone2,1/4.3.3/038-1447-003.dmg.patch index cffbebc..8e0dc43 100644 Binary files a/resources/patch/old/iPhone2,1/4.3.3/038-1447-003.dmg.patch and b/resources/patch/old/iPhone2,1/4.3.3/038-1447-003.dmg.patch differ diff --git a/resources/patch/old/iPhone2,1/4.3.3/LLB.n88ap.RELEASE.img3.patch b/resources/patch/old/iPhone2,1/4.3.3/LLB.n88ap.RELEASE.img3.patch index abdf718..07461f6 100644 Binary files a/resources/patch/old/iPhone2,1/4.3.3/LLB.n88ap.RELEASE.img3.patch and b/resources/patch/old/iPhone2,1/4.3.3/LLB.n88ap.RELEASE.img3.patch differ diff --git a/resources/patch/old/iPhone2,1/4.3.3/iBSS.n88ap.RELEASE.dfu.patch b/resources/patch/old/iPhone2,1/4.3.3/iBSS.n88ap.RELEASE.dfu.patch index 3de65aa..8e6e432 100644 Binary files a/resources/patch/old/iPhone2,1/4.3.3/iBSS.n88ap.RELEASE.dfu.patch and b/resources/patch/old/iPhone2,1/4.3.3/iBSS.n88ap.RELEASE.dfu.patch differ diff --git a/resources/patch/old/iPhone2,1/4.3.3/iBoot.n88ap.RELEASE.img3.patch b/resources/patch/old/iPhone2,1/4.3.3/iBoot.n88ap.RELEASE.img3.patch index 64f30b7..f4d56f3 100644 Binary files a/resources/patch/old/iPhone2,1/4.3.3/iBoot.n88ap.RELEASE.img3.patch and b/resources/patch/old/iPhone2,1/4.3.3/iBoot.n88ap.RELEASE.img3.patch differ diff --git a/resources/patch/old/iPhone2,1/4.3.3/kernelcache.release.n88.patch b/resources/patch/old/iPhone2,1/4.3.3/kernelcache.release.n88.patch index 929bd27..8234fb4 100644 Binary files a/resources/patch/old/iPhone2,1/4.3.3/kernelcache.release.n88.patch and b/resources/patch/old/iPhone2,1/4.3.3/kernelcache.release.n88.patch differ diff --git a/resources/patch/old/iPhone2,1/5.0/018-7919-343.dmg.patch b/resources/patch/old/iPhone2,1/5.0/018-7919-343.dmg.patch deleted file mode 100644 index 5c94bba..0000000 Binary files a/resources/patch/old/iPhone2,1/5.0/018-7919-343.dmg.patch and /dev/null differ diff --git a/resources/patch/old/iPhone2,1/5.0/LLB.n88ap.RELEASE.img3.patch b/resources/patch/old/iPhone2,1/5.0/LLB.n88ap.RELEASE.img3.patch deleted file mode 100644 index f40fc32..0000000 Binary files a/resources/patch/old/iPhone2,1/5.0/LLB.n88ap.RELEASE.img3.patch and /dev/null differ diff --git a/resources/patch/old/iPhone2,1/5.0/iBEC.n88ap.RELEASE.dfu.patch b/resources/patch/old/iPhone2,1/5.0/iBEC.n88ap.RELEASE.dfu.patch deleted file mode 100644 index d2cd2cc..0000000 Binary files a/resources/patch/old/iPhone2,1/5.0/iBEC.n88ap.RELEASE.dfu.patch and /dev/null differ diff --git a/resources/patch/old/iPhone2,1/5.0/iBSS.n88ap.RELEASE.dfu.patch b/resources/patch/old/iPhone2,1/5.0/iBSS.n88ap.RELEASE.dfu.patch deleted file mode 100644 index ccf54f8..0000000 Binary files a/resources/patch/old/iPhone2,1/5.0/iBSS.n88ap.RELEASE.dfu.patch and /dev/null differ diff --git a/resources/patch/old/iPhone2,1/5.0/iBoot.n88ap.RELEASE.img3.patch b/resources/patch/old/iPhone2,1/5.0/iBoot.n88ap.RELEASE.img3.patch deleted file mode 100644 index ca15502..0000000 Binary files a/resources/patch/old/iPhone2,1/5.0/iBoot.n88ap.RELEASE.img3.patch and /dev/null differ diff --git a/resources/patch/old/iPhone2,1/5.0/kernelcache.release.n88.patch b/resources/patch/old/iPhone2,1/5.0/kernelcache.release.n88.patch deleted file mode 100644 index e92cfce..0000000 Binary files a/resources/patch/old/iPhone2,1/5.0/kernelcache.release.n88.patch and /dev/null differ diff --git a/resources/patch/old/iPhone2,1/5.1/038-1811-170.dmg.patch b/resources/patch/old/iPhone2,1/5.1/038-1811-170.dmg.patch deleted file mode 100644 index a5e8a69..0000000 Binary files a/resources/patch/old/iPhone2,1/5.1/038-1811-170.dmg.patch and /dev/null differ diff --git a/resources/patch/old/iPhone2,1/5.1/LLB.n88ap.RELEASE.img3.patch b/resources/patch/old/iPhone2,1/5.1/LLB.n88ap.RELEASE.img3.patch deleted file mode 100644 index 92254d9..0000000 Binary files a/resources/patch/old/iPhone2,1/5.1/LLB.n88ap.RELEASE.img3.patch and /dev/null differ diff --git a/resources/patch/old/iPhone2,1/5.1/iBEC.n88ap.RELEASE.dfu.patch b/resources/patch/old/iPhone2,1/5.1/iBEC.n88ap.RELEASE.dfu.patch deleted file mode 100644 index 1aaa935..0000000 Binary files a/resources/patch/old/iPhone2,1/5.1/iBEC.n88ap.RELEASE.dfu.patch and /dev/null differ diff --git a/resources/patch/old/iPhone2,1/5.1/iBSS.n88ap.RELEASE.dfu.patch b/resources/patch/old/iPhone2,1/5.1/iBSS.n88ap.RELEASE.dfu.patch deleted file mode 100644 index b66f1c6..0000000 Binary files a/resources/patch/old/iPhone2,1/5.1/iBSS.n88ap.RELEASE.dfu.patch and /dev/null differ diff --git a/resources/patch/old/iPhone2,1/5.1/iBoot.n88ap.RELEASE.img3.patch b/resources/patch/old/iPhone2,1/5.1/iBoot.n88ap.RELEASE.img3.patch deleted file mode 100644 index 4b659e3..0000000 Binary files a/resources/patch/old/iPhone2,1/5.1/iBoot.n88ap.RELEASE.img3.patch and /dev/null differ diff --git a/resources/patch/old/iPhone2,1/5.1/kernelcache.release.n88.patch b/resources/patch/old/iPhone2,1/5.1/kernelcache.release.n88.patch deleted file mode 100644 index 0fc5ed0..0000000 Binary files a/resources/patch/old/iPhone2,1/5.1/kernelcache.release.n88.patch and /dev/null differ diff --git a/resources/patch/old/iPod2,1/4.0/018-6462-368.dmg.patch b/resources/patch/old/iPod2,1/4.0/018-6462-368.dmg.patch deleted file mode 100644 index f25c074..0000000 Binary files a/resources/patch/old/iPod2,1/4.0/018-6462-368.dmg.patch and /dev/null differ diff --git a/resources/patch/old/iPod2,1/4.0/LLB.n72ap.RELEASE.img3.patch b/resources/patch/old/iPod2,1/4.0/LLB.n72ap.RELEASE.img3.patch deleted file mode 100644 index 81d1067..0000000 Binary files a/resources/patch/old/iPod2,1/4.0/LLB.n72ap.RELEASE.img3.patch and /dev/null differ diff --git a/resources/patch/old/iPod2,1/4.0/iBSS.n72ap.RELEASE.dfu.patch b/resources/patch/old/iPod2,1/4.0/iBSS.n72ap.RELEASE.dfu.patch deleted file mode 100644 index d6a516b..0000000 Binary files a/resources/patch/old/iPod2,1/4.0/iBSS.n72ap.RELEASE.dfu.patch and /dev/null differ diff --git a/resources/patch/old/iPod2,1/4.0/iBoot.n72ap.RELEASE.img3.patch b/resources/patch/old/iPod2,1/4.0/iBoot.n72ap.RELEASE.img3.patch deleted file mode 100644 index 84cf1b1..0000000 Binary files a/resources/patch/old/iPod2,1/4.0/iBoot.n72ap.RELEASE.img3.patch and /dev/null differ diff --git a/resources/patch/old/iPod2,1/4.0/kernelcache.release.n72.patch b/resources/patch/old/iPod2,1/4.0/kernelcache.release.n72.patch deleted file mode 100644 index 46f0ecb..0000000 Binary files a/resources/patch/old/iPod2,1/4.0/kernelcache.release.n72.patch and /dev/null differ diff --git a/restore.sh b/restore.sh index ee579db..25fd97f 100755 --- a/restore.sh +++ b/restore.sh @@ -808,10 +808,14 @@ device_enter_mode() { sleep 2 log "Please read the message below:" - print "1. Make sure to have installed the requirements from Cydia." - print " - Only proceed if you have followed the steps in the GitHub wiki." + print "1. Make sure to have OpenSSH installed on your iOS device." + if [[ $device_det == 1 ]]; then + print " - Make sure to also have Dropbear installed from my repo." + print " - Repo: https://lukezgd.github.io/repo" + fi + print " - Only proceed if you have these requirements installed using Cydia/Zebra." print " - You will be prompted to enter the root password of your iOS device." - print " - The default root password is \"alpine\"" + print " - The default root password is: alpine" print " - Do not worry that your input is not visible, it is still being entered." print "2. Afterwards, the device will disconnect and its screen will stay black." print " - Proceed to either press the TOP/HOME button, or unplug and replug the device." @@ -967,10 +971,10 @@ device_enter_mode() { print "* Select tool to be used for entering pwned DFU mode." local selection=() if [[ $platform == "macos" ]]; then - print "* This option is set to ipwnder32 by default (1)." + print "* This option is set to ipwnder32 by default (1). Select this option if unsure." selection+=("ipwnder32" "ipwnder") elif [[ $device_proc == 7 ]]; then - print "* This option is set to gaster by default (1)." + print "* This option is set to gaster by default (1). Select this option if unsure." fi if [[ $device_proc == 7 ]]; then selection+=("gaster") @@ -1304,15 +1308,14 @@ ipsw_preference_set() { return fi - if [[ $device_target_vers == "3.1.3" || $device_target_vers == "4.0" ]] || - [[ $device_target_vers == "4.3.3" && $device_type == "iPhone2,1" ]]; then + if [[ $device_target_vers == "3.1"* || $device_target_vers == "4.0" ]]; then #log "Jailbreak Option is always enabled for $device_target_vers" ipsw_jailbreak=1 elif [[ $device_target_other != 1 || $ipsw_canjailbreak == 1 ]] && [[ -z $ipsw_jailbreak ]]; then input "Jailbreak Option" print "* When this option is enabled, your device will be jailbroken on restore." print "* I recommend to enable this option to have the jailbreak and Cydia pre-installed." - print "* This option is enabled by default (Y)." + print "* This option is enabled by default (Y). Select this option if unsure." read -p "$(input 'Enable this option? (Y/n): ')" ipsw_jailbreak if [[ $ipsw_jailbreak == 'N' || $ipsw_jailbreak == 'n' ]]; then ipsw_jailbreak= @@ -1337,7 +1340,7 @@ ipsw_preference_set() { print "* When this option is enabled, system RAM will be used for the IPSW creation process." print "* I recommend to enable this option to speed up creating the custom IPSW." print "* However, if you have less than 8 GB of RAM, disable this option." - print "* This option is enabled by default (Y)." + print "* This option is enabled by default (Y). Select this option if unsure." read -p "$(input 'Enable this option? (Y/n): ')" ipsw_memory if [[ $ipsw_memory == 'N' || $ipsw_memory == 'n' ]]; then log "Memory option disabled by user." @@ -1352,7 +1355,7 @@ ipsw_preference_set() { if [[ $device_target_powder == 1 && -z $ipsw_verbose ]]; then input "Verbose Boot Option" print "* When this option is enabled, the device will have verbose boot on restore." - print "* This option is enabled by default (Y)." + print "* This option is enabled by default (Y). Select this option if unsure." read -p "$(input 'Enable this option? (Y/n): ')" ipsw_verbose if [[ $ipsw_verbose == 'N' || $ipsw_verbose == 'n' ]]; then ipsw_verbose= @@ -1916,6 +1919,9 @@ ipsw_prepare_32bit() { fi ;; esac + if [[ $device_target_vers == "5"* ]]; then + JBFiles+=("$jelbrek/cydiasubstrate.tar") + fi if [[ $ipsw_openssh == 1 ]]; then JBFiles+=("$jelbrek/sshdeb.tar") fi @@ -1957,6 +1963,7 @@ ipsw_prepare_powder() { 5.1.1 ) JBFiles+=("$jelbrek/rockyracoon.tar");; 5.0.1 ) JBFiles+=("$jelbrek/corona.tar");; esac + JBFiles+=("$jelbrek/cydiasubstrate.tar") fi if [[ $ipsw_openssh == 1 ]]; then JBFiles+=("$jelbrek/sshdeb.tar") @@ -2064,6 +2071,9 @@ ipsw_prepare_powder2() { fi if [[ $ipsw_jailbreak == 1 ]]; then cp $jelbrek/freeze.tar . + if [[ $device_target_vers == "5"* ]]; then + ExtraArgs+=" $jelbrek/cydiasubstrate.tar" + fi if [[ $ipsw_openssh == 1 ]]; then ExtraArgs+=" $jelbrek/sshdeb.tar" fi @@ -2098,10 +2108,10 @@ ipsw_prepare_custom() { return fi - if [[ $device_target_vers == "5"* ]]; then + if [[ $device_target_vers == "5"* || $device_target_vers == "6"* ]]; then comps+=("iBEC") fi - if [[ $device_type == "iPod2,1" && $device_target_vers == "3.1.3" ]]; then + if [[ $device_type == "iPod2,1" && $device_target_vers == "3.1"* ]]; then : else case $device_target_vers in @@ -2179,11 +2189,17 @@ ipsw_prepare_custom() { if [[ $ipsw_jailbreak == 1 ]]; then log "Extracting Cydia" "$dir/hfsplus" out.dmg untar $jelbrek/freeze.tar + log "Extracting untether" case $device_target_vers in "5.1.1" ) "$dir/hfsplus" out.dmg untar $jelbrek/rockyracoon.tar;; - "3"* | "4.0"* | "4.3.3" ) "$dir/hfsplus" out.dmg add $jelbrek/fstab_old private/etc/fstab;; - "4.2.1" | "4.1" ) + "5.0.1" ) "$dir/hfsplus" out.dmg untar $jelbrek/corona.tar;; + "3.1"* | "4"* ) + "$dir/hfsplus" out.dmg rm private/etc/fstab "$dir/hfsplus" out.dmg add $jelbrek/fstab_old private/etc/fstab + ;; + esac + case $device_target_vers in + "4.2.1" | "4.1" ) if [[ $device_target_vers == "4.2.1" ]]; then "$dir/hfsplus" out.dmg mv sbin/launchd sbin/punchd fi @@ -2191,9 +2207,13 @@ ipsw_prepare_custom() { ;; * ) "$dir/hfsplus" out.dmg untar $jelbrek/unthredeh4il.tar;; esac - if [[ $device_type == "iPod2,1" && $device_target_vers == "3.1.3" ]]; then + if [[ $device_type == "iPod2,1" && $device_target_vers == "3.1"* ]]; then "$dir/hfsplus" out.dmg untar $jelbrek/greenpois0n/${device_type}_${device_target_build}.tar fi + "$dir/hfsplus" out.dmg untar $jelbrek/cydiasubstrate.tar + if [[ $device_target_vers == "3.1"* ]]; then + "$dir/hfsplus" out.dmg untar $jelbrek/cydiahttpatch.tar + fi if [[ $ipsw_openssh == 1 ]]; then "$dir/hfsplus" out.dmg untar $jelbrek/sshdeb.tar fi @@ -2361,6 +2381,11 @@ restore_idevicerestore() { print "* Please read the \"Troubleshooting\" wiki page in GitHub before opening any issue!" print "* Your problem may have already been addressed within the wiki page." print "* If opening an issue in GitHub, please provide a FULL log/output. Otherwise, your issue may be dismissed." + if [[ $ipsw_jailbreak == 1 ]]; then + case $device_target_vers in + 5* | 4* | 3* ) warn "Do not update Cydia Substrate and Substrate Safe Mode in Cydia!";; + esac + fi } restore_futurerestore() { @@ -2463,6 +2488,11 @@ restore_latest() { if [[ $device_target_vers == "4"* ]]; then print "* For device activation, go to: Other Utilities -> Attempt Activation" fi + if [[ $ipsw_jailbreak == 1 ]]; then + case $device_target_vers in + 5* | 4* | 3* ) warn "Do not update Cydia Substrate and Substrate Safe Mode in Cydia!";; + esac + fi } restore_prepare_1033() { @@ -2955,6 +2985,12 @@ device_ramdisk() { $ssh -p 2222 root@127.0.0.1 "tar -xvf /mnt1/$untether -C /mnt1; rm /mnt1/$untether" ;; esac + case $vers in + 5* | 4* | 3* ) device_ramdisktar cydiasubstrate.tar;; + esac + case $vers in + 3* ) device_ramdisktar cydiahttpatch.tar;; + esac device_ramdisktar freeze.tar data if [[ $ipsw_openssh == 1 ]]; then device_ramdisktar sshdeb.tar @@ -2979,6 +3015,9 @@ device_ramdisk() { $ssh -p 2222 root@127.0.0.1 "reboot_bak" fi log "Cool, done and jailbroken (hopefully)" + case $vers in + 5* | 4* | 3* ) warn "Do not update Cydia Substrate and Substrate Safe Mode in Cydia!";; + esac return ;; @@ -3270,17 +3309,16 @@ menu_restore() { iPad2,[123] | iPhone4,1 ) menu_items+=("iOS 6.1.3");; iPhone2,1 ) - menu_items+=("5.1.1" "5.1" "5.0.1" "5.0" "4.3.3" "4.1" "4.0" "3.1.3" "3.1.2" "3.1");; + menu_items+=("5.1.1" "5.0.1" "4.3.3" "4.1" "3.1.3");; iPod3,1 ) menu_items+=("4.1");; iPod2,1 ) - menu_items+=("4.1") - if [[ $device_newbr == 0 ]]; then - menu_items+=("4.0") - fi - menu_items+=("3.1.3") + menu_items+=("4.1" "3.1.3") ;; esac + if (( device_proc < 7 )); then + menu_items+=("Latest iOS ($device_latest_vers)") + fi case $device_type in iPhone4,1 | iPhone5,[1234] | iPad2,4 | iPod5,1 ) menu_items+=("Other (powdersn0w 7.x blobs)");; @@ -3289,10 +3327,7 @@ menu_restore() { iPhone2,1 | iPod2,1 ) menu_items+=("Other (Custom IPSW)");; esac - if (( device_proc < 7 )); then - menu_items+=("Latest iOS ($device_latest_vers)") - fi - menu_items+=("Other (use SHSH blobs)" "Go Back") + menu_items+=("Other (Use SHSH blobs)" "Go Back") menu_print_info if [[ $1 == "ipsw" ]]; then print " > Main Menu > Other Utilities > Create Custom IPSW" @@ -3422,7 +3457,7 @@ menu_ipsw() { ipsw_custom_set $newpath newpath+="_Restore" fi - if [[ $1 == "Other (use SHSH blobs)" ]]; then + if [[ $1 == "Other (Use SHSH blobs)" ]]; then device_target_other=1 elif [[ $1 == *"powdersn0w"* ]]; then device_target_powder=1 @@ -3827,10 +3862,14 @@ device_dump() { device_enter_mode pwnDFU fi if [[ $device_mode == "Normal" ]]; then - print "* Make sure to have installed the requirements from Cydia/Zebra." - print "* Only proceed if you have followed the steps in the GitHub wiki." + print "* Make sure to have OpenSSH installed on your iOS device." + if [[ $(echo "$device_vers" | cut -c 1) == 1 ]]; then + print "* Make sure to also have Dropbear installed from my repo." + print "* Repo: https://lukezgd.github.io/repo" + fi + print "* Only proceed if you have these requirements installed using Cydia/Zebra." print "* You will be prompted to enter the root password of your iOS device." - print "* The default root password is \"alpine\"" + print "* The default root password is: alpine" log "Running iproxy for SSH..." $iproxy 2222 22 >/dev/null & iproxy_pid=$!