mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-02-02 18:22:38 +01:00
More pwndfu changes
This commit is contained in:
parent
1da44294e7
commit
c12b37c007
Binary file not shown.
79
restore.sh
79
restore.sh
@ -1502,6 +1502,7 @@ device_enter_mode() {
|
|||||||
if (( device_proc > 7 )); then
|
if (( device_proc > 7 )); then
|
||||||
# A8/A9/A10 uses gaster
|
# A8/A9/A10 uses gaster
|
||||||
log "Placing device to pwnDFU mode using gaster"
|
log "Placing device to pwnDFU mode using gaster"
|
||||||
|
print "* If pwning fails and gets stuck, you can press Ctrl+C to cancel."
|
||||||
$gaster pwn
|
$gaster pwn
|
||||||
tool_pwned=$?
|
tool_pwned=$?
|
||||||
log "gaster reset"
|
log "gaster reset"
|
||||||
@ -1511,7 +1512,7 @@ device_enter_mode() {
|
|||||||
device_ipwndfu pwn
|
device_ipwndfu pwn
|
||||||
tool_pwned=$?
|
tool_pwned=$?
|
||||||
elif [[ $device_proc == 4 ]]; then
|
elif [[ $device_proc == 4 ]]; then
|
||||||
# A4 uses ipwndfu/ipwnder
|
# A4/3gs/touch 3 uses ipwndfu/ipwnder
|
||||||
local selection
|
local selection
|
||||||
if [[ $platform == "linux" ]]; then
|
if [[ $platform == "linux" ]]; then
|
||||||
selection=("ipwndfu" "ipwnder (SHAtter)" "ipwnder (limera1n)")
|
selection=("ipwndfu" "ipwnder (SHAtter)" "ipwnder (limera1n)")
|
||||||
@ -1520,68 +1521,42 @@ device_enter_mode() {
|
|||||||
fi
|
fi
|
||||||
input "PwnDFU Tool Option"
|
input "PwnDFU Tool Option"
|
||||||
print "* Select tool to be used for entering pwned DFU mode."
|
print "* Select tool to be used for entering pwned DFU mode."
|
||||||
print "* This option is set to ipwndfu by default (1). Select this option if unsure."
|
print "* This option is set to ${selection[0]} by default (1). Select this option if unsure."
|
||||||
print "* If the first option does not work, try the other option(s)."
|
print "* If the first option does not work, try the other option(s)."
|
||||||
input "Select your option:"
|
input "Select your option:"
|
||||||
select opt2 in "${selection[@]}"; do
|
select opt2 in "${selection[@]}"; do
|
||||||
|
log "Placing device to pwnDFU mode using $opt2"
|
||||||
case $opt2 in
|
case $opt2 in
|
||||||
"ipwndfu" )
|
"ipwndfu" ) device_ipwndfu pwn; tool_pwned=$?; break;;
|
||||||
device_ipwndfu pwn
|
"ipwnder (SHAtter)" ) $ipwnder -s; tool_pwned=$?; break;;
|
||||||
tool_pwned=$?
|
"ipwnder (limera1n)" ) $ipwnder -p; tool_pwned=$?; break;;
|
||||||
break
|
"ipwnder" ) $ipwnder -d; tool_pwned=$?; break;;
|
||||||
;;
|
|
||||||
"ipwnder (SHAtter)" )
|
|
||||||
$ipwnder -s
|
|
||||||
tool_pwned=$?
|
|
||||||
break
|
|
||||||
;;
|
|
||||||
"ipwnder (limera1n)" )
|
|
||||||
$ipwnder -p
|
|
||||||
tool_pwned=$?
|
|
||||||
break
|
|
||||||
;;
|
|
||||||
"ipwnder" )
|
|
||||||
$ipwnder -d
|
|
||||||
tool_pwned=$?
|
|
||||||
break
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
elif [[ $platform == "linux" ]]; then
|
elif [[ $platform == "linux" ]]; then
|
||||||
if [[ $device_type == "iPhone2,1" || $device_type == "iPod3,1" ]]; then
|
# the linux checkm8 section for a6/a7. success rates are absolute garbage here
|
||||||
# 3gs/touch 3 linux uses ipwnder
|
# A6 linux uses ipwndfu, A7 linux uses gaster
|
||||||
log "Placing device to pwnDFU mode using ipwnder"
|
log "Please read the message below:"
|
||||||
$ipwnder -p
|
warn "Unfortunately, success rates for checkm8 are very low on Linux."
|
||||||
|
print "* Pwning using a Mac or another iOS device using iPwnder Lite are better options."
|
||||||
|
print "* For more details, read the \"Troubleshooting\" wiki page in GitHub"
|
||||||
|
print "* Troubleshooting links:"
|
||||||
|
print " - https://github.com/LukeZGD/Legacy-iOS-Kit/wiki/Troubleshooting"
|
||||||
|
print " - https://github.com/LukeZGD/Legacy-iOS-Kit/wiki/Pwning-Using-Another-iOS-Device"
|
||||||
|
if [[ $device_proc == 7 ]]; then
|
||||||
|
log "Placing device to pwnDFU mode using gaster"
|
||||||
|
print "* If pwning fails and gets stuck, you can press Ctrl+C to cancel."
|
||||||
|
$gaster pwn
|
||||||
tool_pwned=$?
|
tool_pwned=$?
|
||||||
else
|
else
|
||||||
# the linux checkm8 section for a6/a7. success rates are absolute garbage here
|
device_ipwndfu pwn
|
||||||
# A6 linux uses ipwndfu, A7 linux uses gaster
|
tool_pwned=$?
|
||||||
log "Please read the message below:"
|
|
||||||
warn "Unfortunately, success rates for checkm8 are very low on Linux."
|
|
||||||
print "* Pwning using a Mac or another iOS device using iPwnder Lite are better options."
|
|
||||||
print "* For more details, read the \"Troubleshooting\" wiki page in GitHub"
|
|
||||||
print "* Troubleshooting links:"
|
|
||||||
print " - https://github.com/LukeZGD/Legacy-iOS-Kit/wiki/Troubleshooting"
|
|
||||||
print " - https://github.com/LukeZGD/Legacy-iOS-Kit/wiki/Pwning-Using-Another-iOS-Device"
|
|
||||||
print "* If pwning gets stuck, you can press Ctrl+C to cancel."
|
|
||||||
if [[ $device_proc == 7 ]]; then
|
|
||||||
log "Placing device to pwnDFU mode using gaster"
|
|
||||||
$gaster pwn
|
|
||||||
tool_pwned=$?
|
|
||||||
else
|
|
||||||
device_ipwndfu pwn
|
|
||||||
tool_pwned=$?
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
elif [[ $(uname -m) != "x86_64" || $device_proc != 7 ]]; then
|
elif [[ $(uname -m) != "x86_64" || $device_proc == 6 ]]; then
|
||||||
# A4/A6/A7 asi mac uses ipwnder_lite
|
# A6/A7 asi mac uses ipwnder_lite
|
||||||
# A4/A6 mac uses ipwnder_lite
|
# A6 mac uses ipwnder_lite
|
||||||
log "Placing device to pwnDFU mode using ipwnder_lite"
|
log "Placing device to pwnDFU mode using ipwnder_lite"
|
||||||
opt="$ipwnder"
|
opt="${ipwnder}2 -p"
|
||||||
case $device_proc in
|
|
||||||
4 ) opt+=" -d";;
|
|
||||||
* ) opt+="2 -p";;
|
|
||||||
esac
|
|
||||||
$opt
|
$opt
|
||||||
tool_pwned=$?
|
tool_pwned=$?
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user