diff --git a/resources/patches/iBSS.j1.RELEASE.patch b/resources/patches/iBSS.j1.RELEASE.patch deleted file mode 100644 index 091c3e1..0000000 Binary files a/resources/patches/iBSS.j1.RELEASE.patch and /dev/null differ diff --git a/resources/patches/iBSS.j1ap.RELEASE.patch b/resources/patches/iBSS.j1ap.RELEASE.patch index 5f6c07a..6124cba 100644 Binary files a/resources/patches/iBSS.j1ap.RELEASE.patch and b/resources/patches/iBSS.j1ap.RELEASE.patch differ diff --git a/resources/patches/iBSS.j2.RELEASE.patch b/resources/patches/iBSS.j2.RELEASE.patch index 091c3e1..2ca5bbe 100644 Binary files a/resources/patches/iBSS.j2.RELEASE.patch and b/resources/patches/iBSS.j2.RELEASE.patch differ diff --git a/resources/patches/iBSS.j2a.RELEASE.patch b/resources/patches/iBSS.j2a.RELEASE.patch index 091c3e1..8fe960c 100644 Binary files a/resources/patches/iBSS.j2a.RELEASE.patch and b/resources/patches/iBSS.j2a.RELEASE.patch differ diff --git a/resources/patches/iBSS.j2aap.RELEASE.patch b/resources/patches/iBSS.j2aap.RELEASE.patch deleted file mode 100644 index 2647353..0000000 Binary files a/resources/patches/iBSS.j2aap.RELEASE.patch and /dev/null differ diff --git a/resources/patches/iBSS.k93.RELEASE.patch b/resources/patches/iBSS.k93.RELEASE.patch index 0ae4ca8..9460aa4 100644 Binary files a/resources/patches/iBSS.k93.RELEASE.patch and b/resources/patches/iBSS.k93.RELEASE.patch differ diff --git a/resources/patches/iBSS.k93a.RELEASE.patch b/resources/patches/iBSS.k93a.RELEASE.patch index d3f3367..cc43f29 100644 Binary files a/resources/patches/iBSS.k93a.RELEASE.patch and b/resources/patches/iBSS.k93a.RELEASE.patch differ diff --git a/resources/patches/iBSS.k93ap.RELEASE.patch b/resources/patches/iBSS.k93ap.RELEASE.patch deleted file mode 100644 index 65738f8..0000000 Binary files a/resources/patches/iBSS.k93ap.RELEASE.patch and /dev/null differ diff --git a/resources/patches/iBSS.k94.RELEASE.patch b/resources/patches/iBSS.k94.RELEASE.patch index 0ae4ca8..2cead10 100644 Binary files a/resources/patches/iBSS.k94.RELEASE.patch and b/resources/patches/iBSS.k94.RELEASE.patch differ diff --git a/resources/patches/iBSS.k94ap.RELEASE.patch b/resources/patches/iBSS.k94ap.RELEASE.patch deleted file mode 100644 index 65738f8..0000000 Binary files a/resources/patches/iBSS.k94ap.RELEASE.patch and /dev/null differ diff --git a/resources/patches/iBSS.k95.RELEASE.patch b/resources/patches/iBSS.k95.RELEASE.patch index 0ae4ca8..dea2e9b 100644 Binary files a/resources/patches/iBSS.k95.RELEASE.patch and b/resources/patches/iBSS.k95.RELEASE.patch differ diff --git a/resources/patches/iBSS.k95ap.RELEASE.patch b/resources/patches/iBSS.k95ap.RELEASE.patch deleted file mode 100644 index 65738f8..0000000 Binary files a/resources/patches/iBSS.k95ap.RELEASE.patch and /dev/null differ diff --git a/resources/patches/iBSS.n41.RELEASE.patch b/resources/patches/iBSS.n41.RELEASE.patch index d99fdd1..3bbfcf8 100644 Binary files a/resources/patches/iBSS.n41.RELEASE.patch and b/resources/patches/iBSS.n41.RELEASE.patch differ diff --git a/resources/patches/iBSS.n42.RELEASE.patch b/resources/patches/iBSS.n42.RELEASE.patch index d99fdd1..b39c05a 100644 Binary files a/resources/patches/iBSS.n42.RELEASE.patch and b/resources/patches/iBSS.n42.RELEASE.patch differ diff --git a/resources/patches/iBSS.n48.RELEASE.patch b/resources/patches/iBSS.n48.RELEASE.patch index 9baea75..fcbc80f 100644 Binary files a/resources/patches/iBSS.n48.RELEASE.patch and b/resources/patches/iBSS.n48.RELEASE.patch differ diff --git a/resources/patches/iBSS.n49.RELEASE.patch b/resources/patches/iBSS.n49.RELEASE.patch index 9baea75..8db9773 100644 Binary files a/resources/patches/iBSS.n49.RELEASE.patch and b/resources/patches/iBSS.n49.RELEASE.patch differ diff --git a/resources/patches/iBSS.n49ap.RELEASE.patch b/resources/patches/iBSS.n49ap.RELEASE.patch deleted file mode 100644 index 4ed34c3..0000000 Binary files a/resources/patches/iBSS.n49ap.RELEASE.patch and /dev/null differ diff --git a/resources/patches/iBSS.n78.RELEASE.patch b/resources/patches/iBSS.n78.RELEASE.patch deleted file mode 100644 index 9b00981..0000000 Binary files a/resources/patches/iBSS.n78.RELEASE.patch and /dev/null differ diff --git a/resources/patches/iBSS.n78ap.RELEASE.patch b/resources/patches/iBSS.n78ap.RELEASE.patch index 73d1229..d3784ab 100644 Binary files a/resources/patches/iBSS.n78ap.RELEASE.patch and b/resources/patches/iBSS.n78ap.RELEASE.patch differ diff --git a/resources/patches/iBSS.n94.RELEASE.patch b/resources/patches/iBSS.n94.RELEASE.patch index 884e666..bd4558a 100644 Binary files a/resources/patches/iBSS.n94.RELEASE.patch and b/resources/patches/iBSS.n94.RELEASE.patch differ diff --git a/resources/patches/iBSS.n94ap.RELEASE.patch b/resources/patches/iBSS.n94ap.RELEASE.patch deleted file mode 100644 index 0241517..0000000 Binary files a/resources/patches/iBSS.n94ap.RELEASE.patch and /dev/null differ diff --git a/resources/patches/iBSS.p101.RELEASE.patch b/resources/patches/iBSS.p101.RELEASE.patch index df3fd57..f7af7de 100644 Binary files a/resources/patches/iBSS.p101.RELEASE.patch and b/resources/patches/iBSS.p101.RELEASE.patch differ diff --git a/resources/patches/iBSS.p102.RELEASE.patch b/resources/patches/iBSS.p102.RELEASE.patch index df3fd57..5e59b0e 100644 Binary files a/resources/patches/iBSS.p102.RELEASE.patch and b/resources/patches/iBSS.p102.RELEASE.patch differ diff --git a/resources/patches/iBSS.p103.RELEASE.patch b/resources/patches/iBSS.p103.RELEASE.patch index df3fd57..6a7420a 100644 Binary files a/resources/patches/iBSS.p103.RELEASE.patch and b/resources/patches/iBSS.p103.RELEASE.patch differ diff --git a/resources/patches/iBSS.p105.RELEASE.patch b/resources/patches/iBSS.p105.RELEASE.patch index 9db3f1b..de97328 100644 Binary files a/resources/patches/iBSS.p105.RELEASE.patch and b/resources/patches/iBSS.p105.RELEASE.patch differ diff --git a/resources/patches/iBSS.p106.RELEASE.patch b/resources/patches/iBSS.p106.RELEASE.patch index 9db3f1b..ef93d1b 100644 Binary files a/resources/patches/iBSS.p106.RELEASE.patch and b/resources/patches/iBSS.p106.RELEASE.patch differ diff --git a/resources/patches/iBSS.p107.RELEASE.patch b/resources/patches/iBSS.p107.RELEASE.patch index 9db3f1b..29506b8 100644 Binary files a/resources/patches/iBSS.p107.RELEASE.patch and b/resources/patches/iBSS.p107.RELEASE.patch differ diff --git a/resources/tools/xpwntool_linux b/resources/tools/xpwntool_linux deleted file mode 100755 index f00e75b..0000000 Binary files a/resources/tools/xpwntool_linux and /dev/null differ diff --git a/resources/tools/xpwntool_macos b/resources/tools/xpwntool_macos deleted file mode 100755 index 555bfec..0000000 Binary files a/resources/tools/xpwntool_macos and /dev/null differ diff --git a/restore.sh b/restore.sh index 66afa5e..6f61c30 100755 --- a/restore.sh +++ b/restore.sh @@ -159,8 +159,6 @@ function Action { fi iBEC="iBEC.$iBSS.RELEASE" iBSS="iBSS.$iBSS.RELEASE" - IV=$(cat $Firmware/$iBSSBuildVer/iv 2>/dev/null) - Key=$(cat $Firmware/$iBSSBuildVer/key 2>/dev/null) [[ $Mode == 'Downgrade' ]] && Downgrade [[ $Mode == 'SaveOTABlobs' ]] && SaveOTABlobs @@ -193,12 +191,9 @@ function kDFU { mkdir -p saved/$ProductType 2>/dev/null mv $iBSS.dfu saved/$ProductType fi - Log "Decrypting iBSS..." - Log "IV = $IV" - Log "Key = $Key" - resources/tools/xpwntool_$platform saved/$ProductType/$iBSS.dfu tmp/iBSS.dec -k $Key -iv $IV + [[ ! -e saved/$ProductType/$iBSS.dfu ]] && Error "Failed to save iBSS. Please run the script again" Log "Patching iBSS..." - bspatch tmp/iBSS.dec tmp/pwnediBSS resources/patches/$iBSS.patch + bspatch saved/$ProductType/$iBSS.dfu tmp/pwnediBSS resources/patches/$iBSS.patch [[ $VersionDetect == 1 ]] && kloader='kloader_hgsp' [[ $VersionDetect == 5 ]] && kloader='kloader5' @@ -561,7 +556,8 @@ function BasebandDetect { elif [ $ProductType == 0 ]; then Error "Please put the device in normal mode (and jailbroken for 32-bit) before proceeding." "Recovery or DFU mode is also applicable for A7 devices" elif [ $ProductType != iPad2,1 ] && [ $ProductType != iPad2,4 ] && [ $ProductType != iPad2,5 ] && - [ $ProductType != iPad3,1 ] && [ $ProductType != iPad3,4 ] && [ $ProductType != iPod5,1 ]; then + [ $ProductType != iPad3,1 ] && [ $ProductType != iPad3,4 ] && [ $ProductType != iPod5,1 ] && + [ $ProductType != iPhone5,3 ] && [ $ProductType != iPhone5,4 ]; then Error "Your device $ProductType is not supported." fi [ $ProductType == iPhone6,1 ] && HWModel=n51