Add Windows onboard blob dump

even though i cant get it to work. anyway...
This commit is contained in:
LukeZGD 2023-01-16 22:46:04 +08:00
parent 74d6c41eb3
commit f1d2f5d5a1
2 changed files with 19 additions and 10 deletions

BIN
bin/windows/shshdump Normal file

Binary file not shown.

View File

@ -2216,8 +2216,10 @@ device_ramdisk4() {
shsh_save_onboard() { shsh_save_onboard() {
if [[ $platform == "windows" ]]; then if [[ $platform == "windows" ]]; then
log "Saving onboard SHSH is not (yet) supported on Windows" print "* Saving onboard SHSH is not tested on Windows"
return print "* It is recommended to do this on Linux/macOS instead"
print "* You may also need iTunes 12.4.3 or older for shshdump to work"
pause
fi fi
device_target_other=1 device_target_other=1
ipsw_path_set ipsw_path_set
@ -2228,16 +2230,23 @@ shsh_save_onboard() {
sleep 5 sleep 5
device_find_mode Recovery device_find_mode Recovery
log "Dumping blobs now" log "Dumping blobs now"
(echo -e "/send ../resources/payload\ngo blobs\n/exit") | ${irecovery}2 -s if [[ $platform == "windows" ]]; then
${irecovery}2 -g myblob.dump "$dir/shshdump"
$irecovery -n else
"$dir/ticket" myblob.dump myblob.plist "$ipsw_path.ipsw" -z (echo -e "/send ../resources/payload\ngo blobs\n/exit") | ${irecovery}2 -s
"$dir/validate" myblob.plist "$ipsw_path.ipsw" -z ${irecovery}2 -g dump.shsh
if [[ ! -s myblob.plist ]]; then $irecovery -n
warn "Saving onboard blobs failed." fi
"$dir/ticket" dump.shsh dump.plist "$ipsw_path.ipsw" -z
"$dir/validate" dump.plist "$ipsw_path.ipsw" -z
if [[ $? != 0 ]]; then
warn "Saved SHSH blobs might be invalid. Did you select the correct IPSW?"
fi
if [[ ! -s dump.plist ]]; then
warn "Saving onboard SHSH blobs failed."
return return
fi fi
mv myblob.plist ../saved/shsh/$device_ecid-$device_type-$device_target_vers.shsh mv dump.plist ../saved/shsh/$device_ecid-$device_type-$device_target_vers.shsh
log "Successfully saved $device_target_vers blobs: saved/shsh/$device_ecid-$device_type-$device_target_vers.shsh" log "Successfully saved $device_target_vers blobs: saved/shsh/$device_ecid-$device_type-$device_target_vers.shsh"
} }