mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-27 10:24:16 +01:00
More pwndfu changes
This commit is contained in:
parent
a108f81b23
commit
f4597756f4
21
restore.sh
21
restore.sh
@ -1552,10 +1552,14 @@ device_enter_mode() {
|
|||||||
device_ipwndfu pwn
|
device_ipwndfu pwn
|
||||||
tool_pwned=$?
|
tool_pwned=$?
|
||||||
fi
|
fi
|
||||||
elif [[ $(uname -m) != "x86_64" || $device_proc == 6 ]]; then
|
elif [[ $device_proc == 6 ]]; then
|
||||||
# A6/A7 asi mac uses ipwnder_lite
|
|
||||||
# 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"
|
||||||
|
$ipwnder -d
|
||||||
|
tool_pwned=$?
|
||||||
|
elif [[ $platform_arch == "arm64" ]]; then
|
||||||
|
# A7 asi mac uses ipwnder_lite
|
||||||
|
log "Placing device to pwnDFU mode using ipwnder_lite"
|
||||||
opt="${ipwnder}2 -p"
|
opt="${ipwnder}2 -p"
|
||||||
$opt
|
$opt
|
||||||
tool_pwned=$?
|
tool_pwned=$?
|
||||||
@ -1592,9 +1596,6 @@ device_enter_mode() {
|
|||||||
if [[ $irec_pwned != 1 && $tool_pwned != 0 ]]; then
|
if [[ $irec_pwned != 1 && $tool_pwned != 0 ]]; then
|
||||||
device_pwnerror
|
device_pwnerror
|
||||||
fi
|
fi
|
||||||
if [[ $opt == "${ipwnder}2 -p" && $device_proc == 6 ]]; then
|
|
||||||
${ipwnder}2 --upload-iboot
|
|
||||||
fi
|
|
||||||
if [[ $platform == "macos" ]] || (( device_proc > 7 )); then
|
if [[ $platform == "macos" ]] || (( device_proc > 7 )); then
|
||||||
return
|
return
|
||||||
elif [[ $device_proc == 7 ]]; then
|
elif [[ $device_proc == 7 ]]; then
|
||||||
@ -4472,14 +4473,14 @@ restore_latest() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
restore_prepare_1033() {
|
restore_prepare_pwnrec64() {
|
||||||
device_enter_mode pwnDFU
|
|
||||||
local attempt=1
|
local attempt=1
|
||||||
|
|
||||||
if [[ $device_pwnrec == 1 ]]; then
|
if [[ $device_pwnrec == 1 ]]; then
|
||||||
warn "Pwned recovery flag detected, skipping pwnREC mode procedure. Proceed with caution"
|
warn "Pwned recovery flag detected, skipping pwnREC mode procedure. Proceed with caution"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
device_enter_mode pwnDFU
|
||||||
if [[ $device_proc == 7 ]]; then
|
if [[ $device_proc == 7 ]]; then
|
||||||
log "gaster reset"
|
log "gaster reset"
|
||||||
$gaster reset
|
$gaster reset
|
||||||
@ -4655,7 +4656,7 @@ restore_prepare() {
|
|||||||
iBSS=$iBSSb
|
iBSS=$iBSSb
|
||||||
iBEC=$iBECb
|
iBEC=$iBECb
|
||||||
fi
|
fi
|
||||||
restore_prepare_1033
|
restore_prepare_pwnrec64
|
||||||
shsh_save apnonce $($irecovery -q | grep "NONC" | cut -c 7-)
|
shsh_save apnonce $($irecovery -q | grep "NONC" | cut -c 7-)
|
||||||
restore_futurerestore --skip-blob
|
restore_futurerestore --skip-blob
|
||||||
elif [[ $device_target_vers == "$device_latest_vers" ]]; then
|
elif [[ $device_target_vers == "$device_latest_vers" ]]; then
|
||||||
@ -5017,7 +5018,7 @@ device_ramdisk64() {
|
|||||||
mv $ramdisk_path/iBEC.img4 $ramdisk_path/iBEC.im4p
|
mv $ramdisk_path/iBEC.img4 $ramdisk_path/iBEC.im4p
|
||||||
iBSS="$ramdisk_path/iBSS"
|
iBSS="$ramdisk_path/iBSS"
|
||||||
iBEC="$ramdisk_path/iBEC"
|
iBEC="$ramdisk_path/iBEC"
|
||||||
restore_prepare_1033
|
restore_prepare_pwnrec64
|
||||||
|
|
||||||
log "Booting, please wait..."
|
log "Booting, please wait..."
|
||||||
$irecovery -f $ramdisk_path/RestoreRamdisk.img4
|
$irecovery -f $ramdisk_path/RestoreRamdisk.img4
|
||||||
|
Loading…
Reference in New Issue
Block a user