mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-12-24 15:21:49 +01:00
Update pwndfu tool options
This commit is contained in:
parent
fa96d5a6c1
commit
ef7edbe364
BIN
bin/macos/ipwnder32
Executable file
BIN
bin/macos/ipwnder32
Executable file
Binary file not shown.
65
restore.sh
65
restore.sh
@ -225,6 +225,7 @@ set_tool_paths() {
|
|||||||
ideviceenterrecovery="$(which ideviceenterrecovery)"
|
ideviceenterrecovery="$(which ideviceenterrecovery)"
|
||||||
ideviceinfo="$(which ideviceinfo)"
|
ideviceinfo="$(which ideviceinfo)"
|
||||||
iproxy="$(which iproxy)"
|
iproxy="$(which iproxy)"
|
||||||
|
ipwnder32="$dir/ipwnder32"
|
||||||
irecovery="$(which irecovery)"
|
irecovery="$(which irecovery)"
|
||||||
ping="ping -c1"
|
ping="ping -c1"
|
||||||
sha1sum="$(which shasum) -a 1"
|
sha1sum="$(which shasum) -a 1"
|
||||||
@ -881,38 +882,48 @@ device_enter_mode() {
|
|||||||
|
|
||||||
device_enter_mode DFU
|
device_enter_mode DFU
|
||||||
|
|
||||||
if [[ $device_proc == 6 && $platform != "macos" ]]; then
|
if [[ $device_proc == 4 && $platform != "macos" ]]; then
|
||||||
|
# A4 linux uses ipwnder
|
||||||
|
$ipwnder -p
|
||||||
|
tool_pwned=$?
|
||||||
|
elif [[ $device_proc == 6 && $platform != "macos" ]]; then
|
||||||
# A6 linux uses ipwndfu
|
# A6 linux uses ipwndfu
|
||||||
device_ipwndfu pwn
|
device_ipwndfu pwn
|
||||||
elif [[ $device_proc == 7 ]]; then
|
elif [[ $device_proc == 7 && $platform == "macos" && $(uname -m) != "x86_64" ]]; then
|
||||||
# A7 uses gaster or ipwnder
|
# A7 asi mac uses ipwnder_lite
|
||||||
opt="$ipwnder"
|
log "Placing device to pwnDFU mode using ipwnder_lite"
|
||||||
if [[ $platform != "macos" ]]; then
|
$ipwnder
|
||||||
opt+=" -p"
|
|
||||||
fi
|
|
||||||
if [[ $platform != "macos" ]] || [[ $platform == "macos" && $(uname -m) == "x86_64" ]]; then
|
|
||||||
input "PwnDFU Tool Option"
|
|
||||||
print "* Select tool to be used for entering pwned DFU mode."
|
|
||||||
print "* This option is set to ipwnder by default (1)."
|
|
||||||
input "Select your option:"
|
|
||||||
select opt2 in "ipwnder" "gaster"; do
|
|
||||||
case $opt2 in
|
|
||||||
"gaster" ) opt="$gaster pwn"; break;;
|
|
||||||
* ) break;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
log "Placing device to pwnDFU mode using: $opt"
|
|
||||||
$opt
|
|
||||||
tool_pwned=$?
|
tool_pwned=$?
|
||||||
else
|
else
|
||||||
# A4/A6 uses ipwnder
|
# A4/A6 mac uses ipwnder_lite/ipwnder32
|
||||||
opt="-p"
|
# A7 intel mac uses ipwnder_lite/ipwnder32/gaster
|
||||||
if [[ $platform == "macos" ]]; then
|
# A7 linux uses ipwnder/gaster
|
||||||
opt=
|
input "PwnDFU Tool Option"
|
||||||
|
print "* Select tool to be used for entering pwned DFU mode."
|
||||||
|
print "* This option is set to ipwnder by default (1)."
|
||||||
|
input "Select your option:"
|
||||||
|
local selection=("ipwnder")
|
||||||
|
if [[ $device_proc == 7 ]]; then
|
||||||
|
selection+=("gaster")
|
||||||
fi
|
fi
|
||||||
log "Placing device to pwnDFU mode using ipwnder"
|
if [[ $platform == "macos" ]]; then
|
||||||
$ipwnder $opt
|
selection+=("ipwnder32")
|
||||||
|
fi
|
||||||
|
select opt2 in "${selection[@]}"; do
|
||||||
|
case $opt2 in
|
||||||
|
"gaster" ) opt="$gaster pwn"; break;;
|
||||||
|
"ipwnder32" ) opt="$ipwnder32 -p"; break;;
|
||||||
|
* )
|
||||||
|
opt="$ipwnder"
|
||||||
|
if [[ $platform != "macos" ]]; then
|
||||||
|
opt+=" -p"
|
||||||
|
fi
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
log "Placing device to pwnDFU mode using: $opt"
|
||||||
|
$opt
|
||||||
tool_pwned=$?
|
tool_pwned=$?
|
||||||
fi
|
fi
|
||||||
irec_pwned=$($irecovery -q | grep -c "PWND")
|
irec_pwned=$($irecovery -q | grep -c "PWND")
|
||||||
|
Loading…
Reference in New Issue
Block a user