mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-02-17 08:56:22 +01:00
Fix for onboard blob dumping
This commit is contained in:
parent
8979541dfe
commit
24250c8af1
12
restore.sh
12
restore.sh
@ -31,6 +31,9 @@ pause() {
|
|||||||
|
|
||||||
clean() {
|
clean() {
|
||||||
rm -rf "$(dirname "$0")/tmp/"* "$(dirname "$0")/iP"*/ "$(dirname "$0")/tmp/"
|
rm -rf "$(dirname "$0")/tmp/"* "$(dirname "$0")/iP"*/ "$(dirname "$0")/tmp/"
|
||||||
|
if [[ $device_sudoloop == 1 ]]; then
|
||||||
|
sudo rm -rf /tmp/futurerestore /tmp/*.json "$(dirname "$0")/tmp/"* "$(dirname "$0")/iP"*/ "$(dirname "$0")/tmp/"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
clean_and_exit() {
|
clean_and_exit() {
|
||||||
@ -38,9 +41,6 @@ clean_and_exit() {
|
|||||||
input "Press Enter/Return to exit."
|
input "Press Enter/Return to exit."
|
||||||
read -s
|
read -s
|
||||||
fi
|
fi
|
||||||
if [[ $device_sudoloop == 1 ]]; then
|
|
||||||
sudo rm -rf /tmp/futurerestore /tmp/*.json
|
|
||||||
fi
|
|
||||||
clean
|
clean
|
||||||
kill $iproxy_pid $httpserver_pid $sudoloop_pid 2>/dev/null
|
kill $iproxy_pid $httpserver_pid $sudoloop_pid 2>/dev/null
|
||||||
exit $1
|
exit $1
|
||||||
@ -182,6 +182,7 @@ set_tool_paths() {
|
|||||||
idevicererestore="sudo "
|
idevicererestore="sudo "
|
||||||
ipwnder="sudo "
|
ipwnder="sudo "
|
||||||
irecovery="sudo "
|
irecovery="sudo "
|
||||||
|
irecovery2="sudo "
|
||||||
sudo chmod +x $dir/*
|
sudo chmod +x $dir/*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -259,6 +260,7 @@ set_tool_paths() {
|
|||||||
idevicerestore+="$dir/idevicerestore"
|
idevicerestore+="$dir/idevicerestore"
|
||||||
idevicererestore+="$dir/idevicererestore"
|
idevicererestore+="$dir/idevicererestore"
|
||||||
ipwnder+="$dir/ipwnder"
|
ipwnder+="$dir/ipwnder"
|
||||||
|
irecovery2+="$dir/irecovery2"
|
||||||
scp="$(which scp) -F ../resources/ssh_config"
|
scp="$(which scp) -F ../resources/ssh_config"
|
||||||
ssh="$(which ssh) -F ../resources/ssh_config"
|
ssh="$(which ssh) -F ../resources/ssh_config"
|
||||||
}
|
}
|
||||||
@ -2283,8 +2285,8 @@ shsh_save_onboard() {
|
|||||||
if [[ $platform == "windows" ]]; then
|
if [[ $platform == "windows" ]]; then
|
||||||
"$dir/shshdump"
|
"$dir/shshdump"
|
||||||
else
|
else
|
||||||
(echo -e "/send ../resources/payload\ngo blobs\n/exit") | ${irecovery}2 -s
|
(echo -e "/send ../resources/payload\ngo blobs\n/exit") | $irecovery2 -s
|
||||||
${irecovery}2 -g dump.shsh
|
$irecovery2 -g dump.shsh
|
||||||
$irecovery -n
|
$irecovery -n
|
||||||
fi
|
fi
|
||||||
"$dir/ticket" dump.shsh dump.plist "$ipsw_path.ipsw" -z
|
"$dir/ticket" dump.shsh dump.plist "$ipsw_path.ipsw" -z
|
||||||
|
Loading…
x
Reference in New Issue
Block a user