mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-01-12 08:19:13 +01:00
Small menu changes
This commit is contained in:
parent
b2f022b1d2
commit
dd8d8c0d2f
71
restore.sh
71
restore.sh
@ -4437,20 +4437,29 @@ ipsw_prepare() {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
device_remove4() {
|
menu_remove4() {
|
||||||
local rec
|
local menu_items
|
||||||
local selected
|
local selected
|
||||||
input "Select option:"
|
local back
|
||||||
select opt in "Disable Exploit" "Enable Exploit" "Go Back"; do
|
|
||||||
selected="$opt"
|
while [[ -z "$mode" && -z "$back" ]]; do
|
||||||
break
|
menu_items=("Disable Exploit" "Enable Exploit" "Go Back")
|
||||||
|
menu_print_info
|
||||||
|
print " > Main Menu > Other Utilities > Disable/Enable Exploit"
|
||||||
|
input "Select an option:"
|
||||||
|
select opt in "${menu_items[@]}"; do
|
||||||
|
selected="$opt"
|
||||||
|
break
|
||||||
|
done
|
||||||
|
case $selected in
|
||||||
|
"Disable Exploit" ) rec=0;;
|
||||||
|
"Enable Exploit" ) rec=2;;
|
||||||
|
esac
|
||||||
|
case $selected in
|
||||||
|
"Go Back" ) back=1;;
|
||||||
|
* ) mode="remove4";;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
case $selected in
|
|
||||||
"Disable Exploit" ) rec=0;;
|
|
||||||
"Enable Exploit" ) rec=2;;
|
|
||||||
* ) return;;
|
|
||||||
esac
|
|
||||||
device_ramdisk setnvram $rec
|
|
||||||
}
|
}
|
||||||
|
|
||||||
device_send_rdtar() {
|
device_send_rdtar() {
|
||||||
@ -5437,7 +5446,7 @@ menu_main() {
|
|||||||
done
|
done
|
||||||
case $selected in
|
case $selected in
|
||||||
"Restore/Downgrade" ) menu_restore;;
|
"Restore/Downgrade" ) menu_restore;;
|
||||||
"Jailbreak Device" ) mode="jailbreak";;
|
"Jailbreak Device" ) mode="device_jailbreak";;
|
||||||
"Save SHSH Blobs" ) menu_shsh;;
|
"Save SHSH Blobs" ) menu_shsh;;
|
||||||
"Sideload IPA" ) menu_ipa "$selected";;
|
"Sideload IPA" ) menu_ipa "$selected";;
|
||||||
"App Management" ) menu_appmanage;;
|
"App Management" ) menu_appmanage;;
|
||||||
@ -5618,9 +5627,9 @@ menu_ipa() {
|
|||||||
"Select IPA" ) menu_ipa_browse;;
|
"Select IPA" ) menu_ipa_browse;;
|
||||||
"Install IPA" )
|
"Install IPA" )
|
||||||
if [[ $1 == "Install"* ]]; then
|
if [[ $1 == "Install"* ]]; then
|
||||||
mode="ideviceinstaller"
|
mode="device_ideviceinstaller"
|
||||||
else
|
else
|
||||||
mode="altserver_linux"
|
mode="device_altserver_linux"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
"Use Dadoum Sideloader" )
|
"Use Dadoum Sideloader" )
|
||||||
@ -6784,27 +6793,27 @@ menu_other() {
|
|||||||
break
|
break
|
||||||
done
|
done
|
||||||
case $selected in
|
case $selected in
|
||||||
"Hacktivate Device" ) mode="hacktivate";;
|
"Hacktivate Device" ) mode="device_hacktivate";;
|
||||||
"Revert Hacktivation" ) mode="reverthacktivate";;
|
"Revert Hacktivation" ) mode="device_reverthacktivate";;
|
||||||
"Create Custom IPSW" ) menu_restore ipsw;;
|
"Create Custom IPSW" ) menu_restore ipsw;;
|
||||||
"Enter kDFU Mode" ) mode="kdfu";;
|
"Enter kDFU Mode" ) mode="kdfu";;
|
||||||
"Disable/Enable Exploit" ) mode="remove4";;
|
"Disable/Enable Exploit" ) menu_remove4;;
|
||||||
"SSH Ramdisk" ) mode="ramdisk4";;
|
"SSH Ramdisk" ) mode="device_enter_ramdisk";;
|
||||||
"Clear NVRAM" ) mode="ramdisknvram";;
|
"Clear NVRAM" ) mode="ramdisknvram";;
|
||||||
"Send Pwned iBSS" | "Enter pwnDFU Mode" ) mode="pwned-ibss";;
|
"Send Pwned iBSS" | "Enter pwnDFU Mode" ) mode="pwned-ibss";;
|
||||||
"(Re-)Install Dependencies" ) install_depends;;
|
"(Re-)Install Dependencies" ) install_depends;;
|
||||||
"Attempt Activation" ) mode="activate";;
|
"Attempt Activation" ) mode="device_activate";;
|
||||||
"Install alloc8 Exploit" ) mode="alloc8";;
|
"Install alloc8 Exploit" ) mode="device_alloc8";;
|
||||||
"Dump Baseband" ) mode="baseband";;
|
"Dump Baseband" ) mode="baseband";;
|
||||||
"Activation Records" ) mode="actrec";;
|
"Activation Records" ) mode="actrec";;
|
||||||
"Enter Recovery Mode" ) mode="enterrecovery";;
|
"Enter Recovery Mode" ) mode="enterrecovery";;
|
||||||
"Exit Recovery Mode" ) mode="exitrecovery";;
|
"Exit Recovery Mode" ) mode="exitrecovery";;
|
||||||
"DFU Mode Helper" ) mode="enterdfu";;
|
"DFU Mode Helper" ) mode="enterdfu";;
|
||||||
"Just Boot" ) mode="justboot";;
|
"Just Boot" ) mode="device_justboot";;
|
||||||
"Get iOS Version" ) mode="getversion";;
|
"Get iOS Version" ) mode="getversion";;
|
||||||
"Shutdown Device" ) mode="shutdown";;
|
"Shutdown Device" ) mode="shutdown";;
|
||||||
"Restart Device" ) mode="restart";;
|
"Restart Device" ) mode="restart";;
|
||||||
"Connect to SSH" ) mode="ssh";;
|
"Connect to SSH" ) mode="device_ssh";;
|
||||||
"Pair Device" ) device_pair;;
|
"Pair Device" ) device_pair;;
|
||||||
"Enable disable-bbupdate flag" )
|
"Enable disable-bbupdate flag" )
|
||||||
warn "This will enable the --disable-bbupdate flag."
|
warn "This will enable the --disable-bbupdate flag."
|
||||||
@ -6890,7 +6899,7 @@ device_alloc8() {
|
|||||||
print "* For more troubleshooting, go to: https://github.com/axi0mX/ipwndfu/blob/master/JAILBREAK-GUIDE.md"
|
print "* For more troubleshooting, go to: https://github.com/axi0mX/ipwndfu/blob/master/JAILBREAK-GUIDE.md"
|
||||||
}
|
}
|
||||||
|
|
||||||
device_jailbreakrd() {
|
device_jailbreak() {
|
||||||
if [[ $device_vers == *"iBoot"* || $device_vers == "Unknown"* ]]; then
|
if [[ $device_vers == *"iBoot"* || $device_vers == "Unknown"* ]]; then
|
||||||
read -p "$(input 'Enter current iOS version (eg. 6.1.3): ')" device_vers
|
read -p "$(input 'Enter current iOS version (eg. 6.1.3): ')" device_vers
|
||||||
else
|
else
|
||||||
@ -7627,33 +7636,23 @@ main() {
|
|||||||
;;
|
;;
|
||||||
"save-ota-blobs" ) shsh_save;;
|
"save-ota-blobs" ) shsh_save;;
|
||||||
"kdfu" ) device_enter_mode kDFU;;
|
"kdfu" ) device_enter_mode kDFU;;
|
||||||
"remove4" ) device_remove4;;
|
|
||||||
"ramdisk4" ) device_enter_ramdisk;;
|
|
||||||
"ramdisknvram" ) device_ramdisk clearnvram;;
|
"ramdisknvram" ) device_ramdisk clearnvram;;
|
||||||
"pwned-ibss" ) device_enter_mode pwnDFU;;
|
"pwned-ibss" ) device_enter_mode pwnDFU;;
|
||||||
"save-onboard-blobs" ) shsh_save_onboard;;
|
"save-onboard-blobs" ) shsh_save_onboard;;
|
||||||
"save-onboard-dump" ) shsh_save_onboard dump;;
|
"save-onboard-dump" ) shsh_save_onboard dump;;
|
||||||
"save-cydia-blobs" ) shsh_save_cydia;;
|
"save-cydia-blobs" ) shsh_save_cydia;;
|
||||||
"activate" ) device_activate;;
|
|
||||||
"alloc8" ) device_alloc8;;
|
|
||||||
"jailbreak" ) device_jailbreakrd;;
|
|
||||||
"customipsw" ) restore_customipsw;;
|
|
||||||
"enterrecovery" ) device_enter_mode Recovery;;
|
"enterrecovery" ) device_enter_mode Recovery;;
|
||||||
"exitrecovery" ) $irecovery -n;;
|
"exitrecovery" ) $irecovery -n;;
|
||||||
"enterdfu" ) device_enter_mode DFU;;
|
"enterdfu" ) device_enter_mode DFU;;
|
||||||
"dfuipsw" ) restore_dfuipsw;;
|
"dfuipsw" ) restore_dfuipsw;;
|
||||||
"dfuipswipsw" ) restore_dfuipsw ipsw;;
|
"dfuipswipsw" ) restore_dfuipsw ipsw;;
|
||||||
"justboot" ) device_justboot;;
|
"customipsw" ) restore_customipsw;;
|
||||||
"getversion" ) device_ramdisk getversion;;
|
"getversion" ) device_ramdisk getversion;;
|
||||||
"shutdown" ) "$dir/idevicediagnostics" shutdown;;
|
"shutdown" ) "$dir/idevicediagnostics" shutdown;;
|
||||||
"restart" ) "$dir/idevicediagnostics" restart;;
|
"restart" ) "$dir/idevicediagnostics" restart;;
|
||||||
"ideviceinstaller" ) device_ideviceinstaller;;
|
|
||||||
"altserver_linux" ) device_altserver_linux;;
|
|
||||||
"hacktivate" ) device_hacktivate;;
|
|
||||||
"reverthacktivate" ) device_reverthacktivate;;
|
|
||||||
"restore-latest" ) restore_latest64;;
|
"restore-latest" ) restore_latest64;;
|
||||||
"convert-onboard-blobs" ) cp "$shsh_path" dump.raw; shsh_convert_onboard;;
|
"convert-onboard-blobs" ) cp "$shsh_path" dump.raw; shsh_convert_onboard;;
|
||||||
"ssh" ) device_ssh;;
|
"remove4" ) device_ramdisk setnvram $rec;;
|
||||||
"device"* ) $mode;;
|
"device"* ) $mode;;
|
||||||
* ) :;;
|
* ) :;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user