raw dump stuff, custom ipsw select check, fr tss ip update

details on "fr tss ip update":
the ip address urls being used by idevicerestore, tsschecker, and futurerestore for tss are "17.171.36.30" and "17.151.36.30", both are dead.
the hex edits done to the binaries in b416862 and this commit change these dead ip's to "17.111.103.65" and "17.111.103.15".
This commit is contained in:
LukeZGD 2024-03-15 10:51:05 +08:00
parent 5cc36784a1
commit 9380b48e5c
9 changed files with 21 additions and 6 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -4772,8 +4772,9 @@ shsh_save_onboard64() {
if [[ ! -s $shsh ]]; then if [[ ! -s $shsh ]]; then
warn "Failed to convert raw dump to SHSH." warn "Failed to convert raw dump to SHSH."
if [[ -s dump.raw ]]; then if [[ -s dump.raw ]]; then
mv dump.raw ../saved/rawdump_$device_ecid-$device_type-$device_target_vers.raw local raw="../saved/shsh/rawdump_$device_ecid-$device_type-$device_target_vers-$(date +%Y-%m-%d-%H%M).raw"
log "Raw dump saved at: ../saved/rawdump_$device_ecid-$device_type-$device_target_vers-$(date +%Y-%m-%d-%H%M).raw" mv dump.raw $raw
log "Raw dump saved at: $raw"
warn "This raw dump is not usable for restoring, you need to convert it first." warn "This raw dump is not usable for restoring, you need to convert it first."
print "* If unable to be converted, this dump is likely not usable for restoring." print "* If unable to be converted, this dump is likely not usable for restoring."
fi fi
@ -4810,8 +4811,9 @@ shsh_save_onboard() {
if [[ $? != 0 ]]; then if [[ $? != 0 ]]; then
warn "Saved SHSH blobs might be invalid. Did you select the correct IPSW?" warn "Saved SHSH blobs might be invalid. Did you select the correct IPSW?"
if [[ -s dump.raw ]]; then if [[ -s dump.raw ]]; then
mv dump.raw ../saved/rawdump_$device_ecid-$device_type-$device_target_vers.raw local raw="../saved/shsh/rawdump_$device_ecid-$device_type-$device_target_vers-$(date +%Y-%m-%d-%H%M).raw"
log "Raw dump saved at: ../saved/rawdump_$device_ecid-$device_type-$device_target_vers-$(date +%Y-%m-%d-%H%M).raw" mv dump.raw $raw
log "Raw dump saved at: $raw"
warn "This raw dump is not usable for restoring, you need to convert it first." warn "This raw dump is not usable for restoring, you need to convert it first."
print "* If unable to be converted, this dump is likely not usable for restoring." print "* If unable to be converted, this dump is likely not usable for restoring."
fi fi
@ -4838,7 +4840,7 @@ shsh_convert_onboard() {
if [[ ! -s dump.shsh ]]; then if [[ ! -s dump.shsh ]]; then
error "Converting onboard SHSH blobs failed." error "Converting onboard SHSH blobs failed."
fi fi
local shsh="../saved/shsh/converted-$device_ecid-$device_type-$(date +%Y-%m-%d-%H%M).shsh" local shsh="../saved/shsh/converted_$device_ecid-$device_type-$(date +%Y-%m-%d-%H%M).shsh"
mv dump.shsh $shsh mv dump.shsh $shsh
log "Successfully saved $device_target_vers blobs: $shsh" log "Successfully saved $device_target_vers blobs: $shsh"
} }
@ -5140,6 +5142,8 @@ menu_shsh_convert() {
if [[ -n $shsh_path ]]; then if [[ -n $shsh_path ]]; then
print "* Selected dump: $shsh_path" print "* Selected dump: $shsh_path"
menu_items+=("Convert Raw Dump") menu_items+=("Convert Raw Dump")
else
print "* Select raw dump file to continue"
fi fi
menu_items+=("Go Back") menu_items+=("Go Back")
echo echo
@ -5442,7 +5446,7 @@ menu_ipsw() {
print "* Selected Target IPSW: $ipsw_path.ipsw" print "* Selected Target IPSW: $ipsw_path.ipsw"
print "* Target Version: $device_target_vers-$device_target_build" print "* Target Version: $device_target_vers-$device_target_build"
case $device_target_build in case $device_target_build in
7* | 8[CE]* ) warn "Selected target version will restore but is most likely not functional.";; 7* | 8[CE]* ) warn "Selected target version will restore but will most likely not boot.";;
esac esac
else else
print "* Select Target IPSW to continue" print "* Select Target IPSW to continue"
@ -5697,6 +5701,7 @@ menu_logo_browse() {
menu_ipsw_browse() { menu_ipsw_browse() {
local versionc local versionc
local newpath local newpath
local ipswcc=0
local text="target" local text="target"
[[ $1 == "base" ]] && text="base" [[ $1 == "base" ]] && text="base"
@ -5706,6 +5711,16 @@ menu_ipsw_browse() {
[[ ! -s "$newpath" ]] && return [[ ! -s "$newpath" ]] && return
newpath="${newpath%?????}" newpath="${newpath%?????}"
log "Selected IPSW file: $newpath.ipsw" log "Selected IPSW file: $newpath.ipsw"
if (( device_proc < 7 )); then
ipswcc="$(unzip -l "$newpath.ipsw" | grep -c 20[23])"
fi
if [[ $1 != "custom" && $ipswcc != 0 ]]; then
warn "Custom IPSW selected, cannot continue."
print "* Do NOT select a custom IPSW for this selection."
print "* Please select the original IPSW for the IPSW selection."
pause
return
fi
ipsw_version_set "$newpath" "$1" ipsw_version_set "$newpath" "$1"
if [[ $(cat Restore.plist | grep -c $device_type) == 0 ]]; then if [[ $(cat Restore.plist | grep -c $device_type) == 0 ]]; then
log "Selected IPSW is not for your device $device_type." log "Selected IPSW is not for your device $device_type."