mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-01-23 13:41:16 +01:00
Bring back bsdiff patches
This commit is contained in:
parent
efbac7a2df
commit
c4d166f4d4
BIN
resources/iBSS.n92ap.RELEASE.patch
Normal file
BIN
resources/iBSS.n92ap.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/iBSS.n94.RELEASE.patch
Normal file
BIN
resources/iBSS.n94.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/iBSS.p101.RELEASE.patch
Normal file
BIN
resources/iBSS.p101.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/iBSS.p102.RELEASE.patch
Normal file
BIN
resources/iBSS.p102.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/iBSS.p103.RELEASE.patch
Normal file
BIN
resources/iBSS.p103.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/iBSS.p105.RELEASE.patch
Normal file
BIN
resources/iBSS.p105.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/iBSS.p106.RELEASE.patch
Normal file
BIN
resources/iBSS.p106.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/iBSS.p107.RELEASE.patch
Normal file
BIN
resources/iBSS.p107.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBEC.j1ap.RELEASE.patch
Normal file
BIN
resources/patch/iBEC.j1ap.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBEC.j2.RELEASE.patch
Normal file
BIN
resources/patch/iBEC.j2.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBEC.j2aap.RELEASE.patch
Normal file
BIN
resources/patch/iBEC.j2aap.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBEC.k93aap.RELEASE.patch
Normal file
BIN
resources/patch/iBEC.k93aap.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBEC.k93ap.RELEASE.patch
Normal file
BIN
resources/patch/iBEC.k93ap.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBEC.k94ap.RELEASE.patch
Normal file
BIN
resources/patch/iBEC.k94ap.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBEC.k95.RELEASE.patch
Normal file
BIN
resources/patch/iBEC.k95.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBEC.n41ap.RELEASE.patch
Normal file
BIN
resources/patch/iBEC.n41ap.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBEC.n42ap.RELEASE.patch
Normal file
BIN
resources/patch/iBEC.n42ap.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBEC.n48ap.RELEASE.patch
Normal file
BIN
resources/patch/iBEC.n48ap.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBEC.n49ap.RELEASE.patch
Normal file
BIN
resources/patch/iBEC.n49ap.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBEC.n78ap.RELEASE.patch
Normal file
BIN
resources/patch/iBEC.n78ap.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBEC.n90ap.RELEASE.patch
Normal file
BIN
resources/patch/iBEC.n90ap.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBEC.n90bap.RELEASE.patch
Normal file
BIN
resources/patch/iBEC.n90bap.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBEC.n92ap.RELEASE.patch
Normal file
BIN
resources/patch/iBEC.n92ap.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBEC.n94ap.RELEASE.patch
Normal file
BIN
resources/patch/iBEC.n94ap.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBEC.p101ap.RELEASE.patch
Normal file
BIN
resources/patch/iBEC.p101ap.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBEC.p102.RELEASE.patch
Normal file
BIN
resources/patch/iBEC.p102.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBEC.p103ap.RELEASE.patch
Normal file
BIN
resources/patch/iBEC.p103ap.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBEC.p105ap.RELEASE.patch
Normal file
BIN
resources/patch/iBEC.p105ap.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBEC.p106.RELEASE.patch
Normal file
BIN
resources/patch/iBEC.p106.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBEC.p107.RELEASE.patch
Normal file
BIN
resources/patch/iBEC.p107.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBSS.j1ap.RELEASE.patch
Normal file
BIN
resources/patch/iBSS.j1ap.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBSS.j2.RELEASE.patch
Normal file
BIN
resources/patch/iBSS.j2.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBSS.j2a.RELEASE.patch
Normal file
BIN
resources/patch/iBSS.j2a.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBSS.k93.RELEASE.patch
Normal file
BIN
resources/patch/iBSS.k93.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBSS.k93a.RELEASE.patch
Normal file
BIN
resources/patch/iBSS.k93a.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBSS.k94.RELEASE.patch
Normal file
BIN
resources/patch/iBSS.k94.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBSS.k95.RELEASE.patch
Normal file
BIN
resources/patch/iBSS.k95.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBSS.n41.RELEASE.patch
Normal file
BIN
resources/patch/iBSS.n41.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBSS.n42.RELEASE.patch
Normal file
BIN
resources/patch/iBSS.n42.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBSS.n48.RELEASE.patch
Normal file
BIN
resources/patch/iBSS.n48.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBSS.n49.RELEASE.patch
Normal file
BIN
resources/patch/iBSS.n49.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBSS.n78ap.RELEASE.patch
Normal file
BIN
resources/patch/iBSS.n78ap.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBSS.n90ap.RELEASE.patch
Normal file
BIN
resources/patch/iBSS.n90ap.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/iBSS.n92ap.RELEASE.patch
Normal file
BIN
resources/patch/iBSS.n92ap.RELEASE.patch
Normal file
Binary file not shown.
BIN
resources/patch/kernelcache.release.n72.patch
Normal file
BIN
resources/patch/kernelcache.release.n72.patch
Normal file
Binary file not shown.
35
restore.sh
35
restore.sh
@ -1125,14 +1125,18 @@ patch_ibss() {
|
||||
local build_id
|
||||
case $device_type in
|
||||
iPad1,1 | iPod3,1 ) build_id="9B206";;
|
||||
iPhone5,[34] ) build_id="11D257";;
|
||||
* ) build_id="10B329";;
|
||||
iPhone2,1 | iPod4,1 ) build_id="10B500";;
|
||||
iPad3,1 | iPhone3,[123] ) build_id="11D257";;
|
||||
iPod5,1 ) build_id="10B329";;
|
||||
* ) build_id="12H321";;
|
||||
esac
|
||||
if [[ -n $device_ramdisk_build ]]; then
|
||||
build_id="$device_ramdisk_build"
|
||||
fi
|
||||
download_comp $build_id iBSS
|
||||
log "Patching iBSS..."
|
||||
if [[ $build_id == "9B206" || $build_id == "10B500" ||
|
||||
$device_type == "iPhone3,2" || -n $device_ramdisk_build ]]; then
|
||||
device_fw_key_check temp $build_id
|
||||
local iv=$(echo $device_fw_key_temp | $jq -j '.keys[] | select(.image | startswith("iBSS")) | .iv')
|
||||
local key=$(echo $device_fw_key_temp | $jq -j '.keys[] | select(.image | startswith("iBSS")) | .key')
|
||||
@ -1140,6 +1144,9 @@ patch_ibss() {
|
||||
"$dir/xpwntool" iBSS.dec iBSS.raw
|
||||
"$dir/iBoot32Patcher" iBSS.raw iBSS.patched --rsa
|
||||
"$dir/xpwntool" iBSS.patched pwnediBSS -t iBSS.dec
|
||||
else
|
||||
$bspatch iBSS pwnediBSS "../resources/patch/$download_targetfile.patch"
|
||||
fi
|
||||
cp pwnediBSS ../saved/$device_type/
|
||||
log "Pwned iBSS saved at: saved/$device_type/pwnediBSS"
|
||||
}
|
||||
@ -1148,9 +1155,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";;
|
||||
iPhone5,[34] ) build_id="11D257";;
|
||||
* ) build_id="10B329";;
|
||||
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"
|
||||
@ -1169,7 +1189,12 @@ patch_ibec() {
|
||||
"$dir/xpwntool" $name.orig $name.dec -iv $iv -k $key -decrypt
|
||||
"$dir/xpwntool" $name.dec $name.raw
|
||||
log "Patching iBEC..."
|
||||
if [[ $build_id == "9B206" || $build_id == "10B500" ||
|
||||
$device_type == "iPhone3,2" || -n $device_ramdisk_build ]]; then
|
||||
"$dir/iBoot32Patcher" $name.raw $name.patched --rsa --debug --ticket -b "rd=md0 -v amfi=0xff cs_enforcement_disable=1" -c "go" $address
|
||||
else
|
||||
$bspatch $name.raw $name.patched "../resources/patch/$download_targetfile.patch"
|
||||
fi
|
||||
"$dir/xpwntool" $name.patched pwnediBEC -t $name.dec
|
||||
rm $name.dec $name.orig $name.raw $name.patched
|
||||
cp pwnediBEC ../saved/$device_type/
|
||||
|
Loading…
x
Reference in New Issue
Block a user