diff --git a/resources/firmware/iPad3,3/10B329/index.html b/resources/firmware/iPad3,3/10B329/index.html new file mode 100644 index 0000000..5c040e2 --- /dev/null +++ b/resources/firmware/iPad3,3/10B329/index.html @@ -0,0 +1 @@ +{"identifier": "iPad3,3", "buildid": "10B329", "codename": "BrightonMaps", "restoreramdiskexists": true, "updateramdiskexists": true, "keys": [{"image": "RootFS", "filename": "048-2645-005.dmg", "date": "2021-12-09T08:23:56.231137", "key": "b25062445770e1a11c83f1d3458854eed48e4e177c5bb1814445b14c06d6cad90694f35a"}, {"image": "UpdateRamdisk", "filename": "048-2525-005.dmg", "date": "2021-12-09T08:23:56.231168", "iv": "fba67b6b0287d346d254152794569b7b", "key": "6bb60f8d1aa59d2871e27d05a713b7c627be40c46f78103f3fe6b2db289be1b0", "kbag": "fba67b6b0287d346d254152794569b7b6bb60f8d1aa59d2871e27d05a713b7c627be40c46f78103f3fe6b2db289be1b0"}, {"image": "RestoreRamdisk", "filename": "048-2557-005.dmg", "date": "2021-12-09T08:23:56.231182", "iv": "491b5b47280e0f5d074bd7ce3ddcb88c", "key": "eaab43dfe48ed09d3cf0bdd4f169a5c75d5d3fa4e8bbb1a366ed5b599b4a3025", "kbag": "491b5b47280e0f5d074bd7ce3ddcb88ceaab43dfe48ed09d3cf0bdd4f169a5c75d5d3fa4e8bbb1a366ed5b599b4a3025"}, {"image": "AppleLogo", "filename": "applelogo@2x.s5l8945x.img3", "date": "2021-12-09T08:23:56.231192", "iv": "97213b756451a4f79f9dd33ec04ebb84", "key": "8fc99dde5e247cde5ff77bbcce2e78576bb6914a17052dacc7e22609596d041b", "kbag": "97213b756451a4f79f9dd33ec04ebb848fc99dde5e247cde5ff77bbcce2e78576bb6914a17052dacc7e22609596d041b"}, {"image": "BatteryCharging0", "filename": "batterycharging0@2x.s5l8945x.img3", "date": "2021-12-09T08:23:56.231202", "iv": "2a28ed40081dd22810e897c4c8306175", "key": "95a0b6fcbf853e3cf38e665908da5c655b4dcfc9913d5e9ab8b027b09df872bf", "kbag": "2a28ed40081dd22810e897c4c830617595a0b6fcbf853e3cf38e665908da5c655b4dcfc9913d5e9ab8b027b09df872bf"}, {"image": "BatteryCharging1", "filename": "batterycharging1@2x.s5l8945x.img3", "date": "2021-12-09T08:23:56.231212", "iv": "4a2418011512f43f2d3ed5e0e7f3a27b", "key": "235f9dd48f17d62b569cf87a1d70eaccaf96d4b0e9f2c90bcaf012577b211efe", "kbag": "4a2418011512f43f2d3ed5e0e7f3a27b235f9dd48f17d62b569cf87a1d70eaccaf96d4b0e9f2c90bcaf012577b211efe"}, {"image": "BatteryFull", "filename": "batteryfull@2x.s5l8945x.img3", "date": "2021-12-09T08:23:56.231221", "iv": "1de8138993ef85e04cf9df3531115829", "key": "3b8250d2f2dc3f25c9fd45c7c56c5aaf97327550cc34122e7878a77e9ed707c1", "kbag": "1de8138993ef85e04cf9df35311158293b8250d2f2dc3f25c9fd45c7c56c5aaf97327550cc34122e7878a77e9ed707c1"}, {"image": "BatteryLow0", "filename": "batterylow0@2x.s5l8945x.img3", "date": "2021-12-09T08:23:56.231230", "iv": "1269a1c6ca64633c017f674deae287a5", "key": "792db300fdc51b8117d6982f1272075ce36067d8ee0a6a809179fc4039bb85d9", "kbag": "1269a1c6ca64633c017f674deae287a5792db300fdc51b8117d6982f1272075ce36067d8ee0a6a809179fc4039bb85d9"}, {"image": "BatteryLow1", "filename": "batterylow1@2x.s5l8945x.img3", "date": "2021-12-09T08:23:56.231238", "iv": "1e3813d4f5e731d442925b597655a04b", "key": "2fc10e544b23905b782bb69578281ff92ca592d57f50bc793155a4620dfb3b5f", "kbag": "1e3813d4f5e731d442925b597655a04b2fc10e544b23905b782bb69578281ff92ca592d57f50bc793155a4620dfb3b5f"}, {"image": "DeviceTree", "filename": "DeviceTree.j2aap.img3", "date": "2021-12-09T08:23:56.231247", "iv": "229b617c1880314c82f3427ebf1e0c18", "key": "72a3b49e50ebdf1e2925245951428e480c8531123e10d01f1e968134932e85c8", "kbag": "229b617c1880314c82f3427ebf1e0c1872a3b49e50ebdf1e2925245951428e480c8531123e10d01f1e968134932e85c8"}, {"image": "GlyphCharging", "filename": "glyphcharging@2x.s5l8945x.img3", "date": "2021-12-09T08:23:56.231256", "iv": "af2e3f83a6846e00c3381a18251c533c", "key": "0ff6d829bffd43403a6a50c3fdf49e0edb789cae216e471c8ee6af09ca5fb62d", "kbag": "af2e3f83a6846e00c3381a18251c533c0ff6d829bffd43403a6a50c3fdf49e0edb789cae216e471c8ee6af09ca5fb62d"}, {"image": "GlyphPlugin", "filename": "glyphplugin@2x.s5l8945x.img3", "date": "2021-12-09T08:23:56.231265", "iv": "8b20f21e1708443a5c6759f1b317e1d8", "key": "30b4f7c18db59683aaa5bd68e8eb4d66d6c2eeece21cae4c80fea99f2a70acd5", "kbag": "8b20f21e1708443a5c6759f1b317e1d830b4f7c18db59683aaa5bd68e8eb4d66d6c2eeece21cae4c80fea99f2a70acd5"}, {"image": "iBEC", "filename": "iBEC.j2aap.RELEASE.dfu", "date": "2021-12-09T08:23:56.231274", "iv": "6331e3a65d829557578c6707d29517b6", "key": "c8db5d6867ba37ed0f4262f27d690051d0d3704d94723f0fba09537e5d12206b", "kbag": "6331e3a65d829557578c6707d29517b6c8db5d6867ba37ed0f4262f27d690051d0d3704d94723f0fba09537e5d12206b"}, {"image": "iBoot", "filename": "iBoot.j2aap.RELEASE.img3", "date": "2021-12-09T08:23:56.231283", "iv": "8d6f58f1b0e98c18f319c21826356946", "key": "f41371719d371ca35afd7606e53e2c0e2edcaff2170f2aca1fefa691934f39f1", "kbag": "8d6f58f1b0e98c18f319c21826356946f41371719d371ca35afd7606e53e2c0e2edcaff2170f2aca1fefa691934f39f1"}, {"image": "iBSS", "filename": "iBSS.j2aap.RELEASE.dfu", "date": "2021-12-09T08:23:56.231292", "iv": "bddda5b682c9044278bbd82dd800be9a", "key": "023c7f98822fe3230f48dced2a1baa41bb524d096999fcdee762f3d69bb2db9c", "kbag": "bddda5b682c9044278bbd82dd800be9a023c7f98822fe3230f48dced2a1baa41bb524d096999fcdee762f3d69bb2db9c"}, {"image": "Kernelcache", "filename": "kernelcache.release.j2a", "date": "2021-12-09T08:23:56.231301", "iv": "81216ca61c770d1574cdf8134269fa3c", "key": "d7da4700cb1b61ffca0db14a07d8523fba86bfaa0e3be2252ced7a4a90e95bc7", "kbag": "81216ca61c770d1574cdf8134269fa3cd7da4700cb1b61ffca0db14a07d8523fba86bfaa0e3be2252ced7a4a90e95bc7"}, {"image": "LLB", "filename": "LLB.j2aap.RELEASE.img3", "date": "2021-12-09T08:23:56.231310", "iv": "04ece614fc2e06d9f294d27d8f1f7524", "key": "9c89560a390905dc87db592fe3b7f17113d262a6ea44117e22b4c807c553be0b", "kbag": "04ece614fc2e06d9f294d27d8f1f75249c89560a390905dc87db592fe3b7f17113d262a6ea44117e22b4c807c553be0b"}, {"image": "RecoveryMode", "filename": "recoverymode@2x~ipad.s5l8945x.img3", "date": "2021-12-09T08:23:56.231319", "iv": "366ef0fea1f62d85ea26c5663e8f8ccb", "key": "c189d6f1a337bed77a1d9997ed239b31d097fa775c15f4c321102de327c5b81f", "kbag": "366ef0fea1f62d85ea26c5663e8f8ccbc189d6f1a337bed77a1d9997ed239b31d097fa775c15f4c321102de327c5b81f"}]} \ No newline at end of file diff --git a/resources/firmware/iPad3,3/9B206/sha1sum b/resources/firmware/iPad3,3/9B206/sha1sum new file mode 100644 index 0000000..466f46f --- /dev/null +++ b/resources/firmware/iPad3,3/9B206/sha1sum @@ -0,0 +1 @@ +d294f3d2db8193033fa28de98347bb728d1a5e7a diff --git a/resources/patch/iBEC.j1ap.RELEASE.patch b/resources/patch/iBEC.j1ap.RELEASE.patch new file mode 100644 index 0000000..ba5fd13 Binary files /dev/null and b/resources/patch/iBEC.j1ap.RELEASE.patch differ diff --git a/resources/patch/iBEC.j2.RELEASE.patch b/resources/patch/iBEC.j2.RELEASE.patch new file mode 100644 index 0000000..dad18fe Binary files /dev/null and b/resources/patch/iBEC.j2.RELEASE.patch differ diff --git a/resources/patch/iBEC.j2aap.RELEASE.patch b/resources/patch/iBEC.j2aap.RELEASE.patch new file mode 100644 index 0000000..1b5463a Binary files /dev/null and b/resources/patch/iBEC.j2aap.RELEASE.patch differ diff --git a/resources/patch/iBEC.k93aap.RELEASE.patch b/resources/patch/iBEC.k93aap.RELEASE.patch new file mode 100644 index 0000000..8a81d39 Binary files /dev/null and b/resources/patch/iBEC.k93aap.RELEASE.patch differ diff --git a/resources/patch/iBEC.k93ap.RELEASE.patch b/resources/patch/iBEC.k93ap.RELEASE.patch new file mode 100644 index 0000000..0eba4eb Binary files /dev/null and b/resources/patch/iBEC.k93ap.RELEASE.patch differ diff --git a/resources/patch/iBEC.k94ap.RELEASE.patch b/resources/patch/iBEC.k94ap.RELEASE.patch new file mode 100644 index 0000000..f44cfe5 Binary files /dev/null and b/resources/patch/iBEC.k94ap.RELEASE.patch differ diff --git a/resources/patch/iBEC.k95.RELEASE.patch b/resources/patch/iBEC.k95.RELEASE.patch new file mode 100644 index 0000000..ea16d64 Binary files /dev/null and b/resources/patch/iBEC.k95.RELEASE.patch differ diff --git a/resources/patch/iBEC.n41ap.RELEASE.patch b/resources/patch/iBEC.n41ap.RELEASE.patch new file mode 100644 index 0000000..9c983e4 Binary files /dev/null and b/resources/patch/iBEC.n41ap.RELEASE.patch differ diff --git a/resources/patch/iBEC.n42ap.RELEASE.patch b/resources/patch/iBEC.n42ap.RELEASE.patch new file mode 100644 index 0000000..9c983e4 Binary files /dev/null and b/resources/patch/iBEC.n42ap.RELEASE.patch differ diff --git a/resources/patch/iBEC.n48ap.RELEASE.patch b/resources/patch/iBEC.n48ap.RELEASE.patch new file mode 100644 index 0000000..ade2ec0 Binary files /dev/null and b/resources/patch/iBEC.n48ap.RELEASE.patch differ diff --git a/resources/patch/iBEC.n49ap.RELEASE.patch b/resources/patch/iBEC.n49ap.RELEASE.patch new file mode 100644 index 0000000..ade2ec0 Binary files /dev/null and b/resources/patch/iBEC.n49ap.RELEASE.patch differ diff --git a/resources/patch/iBEC.n78ap.RELEASE.patch b/resources/patch/iBEC.n78ap.RELEASE.patch new file mode 100644 index 0000000..4ae9378 Binary files /dev/null and b/resources/patch/iBEC.n78ap.RELEASE.patch differ diff --git a/resources/patch/iBEC.n90ap.RELEASE.patch b/resources/patch/iBEC.n90ap.RELEASE.patch new file mode 100644 index 0000000..5bae5b6 Binary files /dev/null and b/resources/patch/iBEC.n90ap.RELEASE.patch differ diff --git a/resources/patch/iBEC.n90bap.RELEASE.patch b/resources/patch/iBEC.n90bap.RELEASE.patch new file mode 100644 index 0000000..c56face Binary files /dev/null and b/resources/patch/iBEC.n90bap.RELEASE.patch differ diff --git a/resources/patch/iBEC.n92ap.RELEASE.patch b/resources/patch/iBEC.n92ap.RELEASE.patch new file mode 100644 index 0000000..e83fd00 Binary files /dev/null and b/resources/patch/iBEC.n92ap.RELEASE.patch differ diff --git a/resources/patch/iBEC.n94ap.RELEASE.patch b/resources/patch/iBEC.n94ap.RELEASE.patch new file mode 100644 index 0000000..0179cb7 Binary files /dev/null and b/resources/patch/iBEC.n94ap.RELEASE.patch differ diff --git a/resources/patch/iBEC.p101ap.RELEASE.patch b/resources/patch/iBEC.p101ap.RELEASE.patch new file mode 100644 index 0000000..927cddd Binary files /dev/null and b/resources/patch/iBEC.p101ap.RELEASE.patch differ diff --git a/resources/patch/iBEC.p102.RELEASE.patch b/resources/patch/iBEC.p102.RELEASE.patch new file mode 100644 index 0000000..0725e12 Binary files /dev/null and b/resources/patch/iBEC.p102.RELEASE.patch differ diff --git a/resources/patch/iBEC.p103ap.RELEASE.patch b/resources/patch/iBEC.p103ap.RELEASE.patch new file mode 100644 index 0000000..927cddd Binary files /dev/null and b/resources/patch/iBEC.p103ap.RELEASE.patch differ diff --git a/resources/patch/iBEC.p105ap.RELEASE.patch b/resources/patch/iBEC.p105ap.RELEASE.patch new file mode 100644 index 0000000..c42b7f9 Binary files /dev/null and b/resources/patch/iBEC.p105ap.RELEASE.patch differ diff --git a/resources/patch/iBEC.p106.RELEASE.patch b/resources/patch/iBEC.p106.RELEASE.patch new file mode 100644 index 0000000..5925cbc Binary files /dev/null and b/resources/patch/iBEC.p106.RELEASE.patch differ diff --git a/resources/patch/iBEC.p107.RELEASE.patch b/resources/patch/iBEC.p107.RELEASE.patch new file mode 100644 index 0000000..5925cbc Binary files /dev/null and b/resources/patch/iBEC.p107.RELEASE.patch differ diff --git a/restore.sh b/restore.sh index df241da..4012541 100755 --- a/restore.sh +++ b/restore.sh @@ -1474,10 +1474,22 @@ patch_ibec() { # creates file pwnediBEC to be sent to device for blob dumping local build_id case $device_type in - iPad1,1 | iPod3,1 ) build_id="9B206";; - iPhone2,1 | iPod4,1 ) build_id="10B500";; - iPhone3,[123] ) build_id="11D257";; - * ) build_id="12H321";; + iPad1,1 | iPod3,1 ) + build_id="9B206";; + iPhone2,1 | iPod4,1 ) + build_id="10B500";; + iPad2,[145] | iPad3,[346] | iPhone4,1 | iPhone5,[12] | iPod5,1 ) + build_id="10B329";; + iPad2,2 | iPhone3,[123] ) + build_id="11D257";; + iPad2,[367] | iPad3,[25] ) + build_id="12H321";; + iPad3,1 ) + build_id="10B146";; + iPhone5,3 ) + build_id="11B511";; + iPhone5,4 ) + build_id="11B651";; esac if [[ -n $device_ramdisk_build ]]; then build_id="$device_ramdisk_build" @@ -1494,8 +1506,11 @@ patch_ibec() { log "Decrypting iBEC..." mv iBEC $name.orig "$dir/xpwntool" $name.orig $name.dec -iv $iv -k $key - log "Patching iBEC..." - "$dir/iBoot32Patcher" $name.dec $name.patched --rsa --debug --ticket -b "rd=md0 -v amfi=0xff cs_enforcement_disable=1" -c "go" $address + if [[ $build_id == "9B206" || $build_id == "10B500" || -n $device_ramdisk_build ]]; then + "$dir/iBoot32Patcher" $name.dec $name.patched --rsa --debug --ticket -b "rd=md0 -v amfi=0xff cs_enforcement_disable=1" -c "go" $address + else + $bspatch $name.dec $name.patched "../resources/patch/$download_targetfile.patch" + fi "$dir/xpwntool" $name.patched pwnediBEC.dfu -t $name.orig rm $name.dec $name.orig $name.patched cp pwnediBEC.dfu ../saved/$device_type/ @@ -2155,15 +2170,17 @@ ipsw_prepare_32bit() { for i in {0..2}; do JBFiles[i]=$jelbrek/${JBFiles[$i]} done - case $device_target_vers in - 5.1.1 ) JBFiles+=("$jelbrek/rockyracoon.tar");; - 5.0.1 ) JBFiles+=("$jelbrek/corona.tar");; - 5.0 ) - if [[ $device_type == "iPhone4,1" ]]; then - JBFiles+=("$jelbrek/corona.tar") - fi - ;; - esac + if [[ $device_proc == 5 ]]; then + case $device_target_vers in + 5.1.1 ) JBFiles+=("$jelbrek/rockyracoon.tar");; + 5.0.1 ) JBFiles+=("$jelbrek/corona.tar");; + 5.0 ) + if [[ $device_type == "iPhone4,1" ]]; then + JBFiles+=("$jelbrek/corona.tar") + fi + ;; + esac + fi if [[ $device_target_vers == "5"* ]]; then JBFiles+=("$jelbrek/cydiasubstrate.tar") fi @@ -2445,8 +2462,6 @@ ipsw_prepare_custom() { "4.1" ) "$dir/hfsplus" out.dmg untar $jelbrek/greenpois0n/${device_type}_${device_target_build}.tar;; esac case $device_target_vers in - "5.1.1" ) "$dir/hfsplus" out.dmg untar $jelbrek/rockyracoon.tar;; - "5.0.1" ) "$dir/hfsplus" out.dmg untar $jelbrek/corona.tar;; "4"* | "3.1.3" ) "$dir/hfsplus" out.dmg rm private/etc/fstab "$dir/hfsplus" out.dmg add $jelbrek/fstab_old private/etc/fstab @@ -3326,14 +3341,18 @@ device_ramdisk() { 5* ) untether="tar-${device_model}_$build.tar";; 4.2.1 ) $ssh -p 2222 root@127.0.0.1 "[[ ! -e /mnt1/sbin/punchd ]] && mv /mnt1/sbin/launchd /mnt1/sbin/punchd";; esac + if [[ $device_proc == 5 ]]; then + case $vers in + 5.1.1 ) device_ramdisktar rockyracoon.tar;; + 5.0.1 ) device_ramdisktar corona.tar;; + 5.0 ) + if [[ $device_type == "iPhone4,1" ]]; then + device_ramdisktar corona.tar + fi + ;; + esac + fi case $vers in - 5.1.1 ) device_ramdisktar rockyracoon.tar;; - 5.0.1 ) device_ramdisktar corona.tar;; - 5.0 ) - if [[ $device_type == "iPhone4,1" ]]; then - device_ramdisktar corona.tar - fi - ;; 4.2.1 | 4.1 | 4.0* | 3* ) untether="${device_type}_${build}.tar" if [[ $device_type == "iPod2,1" ]]; then