Update ipwnder to attempt fix #244

This commit is contained in:
LukeZGD 2023-01-18 09:00:32 +08:00
parent c74c380d05
commit ecfd71c851
2 changed files with 8 additions and 2 deletions

Binary file not shown.

View File

@ -760,7 +760,9 @@ device_enter_mode() {
clean_and_exit
fi
if [[ $device_mode == "DFU" && $mode != "pwned-ibss" ]] && (( device_proc < 7 )); then
if [[ $device_proc == 4 ]]; then
print "* Note that kDFU mode will NOT work for iPhone4Down downgrades!"
elif [[ $device_mode == "DFU" && $mode != "pwned-ibss" ]] && (( device_proc < 7 )); then
read -p "$(input 'Is your device already in pwned iBSS/kDFU mode? (y/N): ')" opt
if [[ $opt == "Y" || $opt == "y" ]]; then
log "Pwned iBSS/kDFU mode specified by user."
@ -788,8 +790,12 @@ device_enter_mode() {
if [[ $device_proc == 6 && $platform != "macos" ]]; then
device_ipwndfu pwn
else
opt=-p
if [[ $platform == "macos" ]]; then
opt=
fi
log "Placing device to pwnDFU mode using ipwnder"
$ipwnder -p
$ipwnder $opt
tool_pwned=$?
fi
irec_pwned=$($irecovery -q | grep -c "PWND")