mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-27 18:34:14 +01:00
Update pwnedDFU Linux
This commit is contained in:
parent
35d6f15a31
commit
529f266dd4
@ -239,23 +239,25 @@ EnterPwnDFU() {
|
|||||||
read -s
|
read -s
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
elif [[ $platform == "macos" ]]; then
|
else
|
||||||
Selection+=("ipwnder_lite" "iPwnder32")
|
[[ $platform == "macos" ]] && Selection+=("ipwnder_lite" "iPwnder32")
|
||||||
Input "PwnDFU Tool Option"
|
Input "PwnDFU Tool Option"
|
||||||
Echo "* This option selects what tool to use to put your device in pwnDFU mode."
|
Echo "* This option selects what tool to use to put your device in pwnDFU mode."
|
||||||
Echo "* If unsure, select 1. If 1 does not work, try selecting the other option."
|
Echo "* If unsure, select 1. If 1 does not work, try selecting the other option."
|
||||||
|
if [[ $platform == "linux" ]]; then
|
||||||
|
Selection+=("pwnedDFU" "ipwndfu")
|
||||||
|
Echo "* Make sure to have python2 installed first before proceeding."
|
||||||
|
fi
|
||||||
Echo "* This option is set to ${Selection[0]} by default (1)."
|
Echo "* This option is set to ${Selection[0]} by default (1)."
|
||||||
Input "Select your option:"
|
Input "Select your option:"
|
||||||
select opt in "${Selection[@]}"; do
|
select opt in "${Selection[@]}"; do
|
||||||
case $opt in
|
case $opt in
|
||||||
"ipwnder_lite" ) pwnDFUTool="$ipwnder_lite"; break;;
|
"ipwnder_lite" ) pwnDFUTool="$ipwnder_lite"; break;;
|
||||||
"iPwnder32" ) pwnDFUTool="$ipwnder32"; break;;
|
"iPwnder32" ) pwnDFUTool="$ipwnder32"; break;;
|
||||||
|
"ipwndfu" ) pwnDFUTool="ipwndfu"; SaveExternal ipwndfu; break;;
|
||||||
|
"pwnedDFU" ) pwnDFUTool="$pwnedDFU"; break;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
else
|
|
||||||
Echo "* Make sure to have python2 installed first before using ipwndfu."
|
|
||||||
pwnDFUTool="ipwndfu"
|
|
||||||
SaveExternal ipwndfu
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
Log "Entering pwnDFU mode with: $pwnDFUTool"
|
Log "Entering pwnDFU mode with: $pwnDFUTool"
|
||||||
@ -275,6 +277,14 @@ EnterPwnDFU() {
|
|||||||
else
|
else
|
||||||
$pwnDFUTool -p
|
$pwnDFUTool -p
|
||||||
pwnDFUDevice=$?
|
pwnDFUDevice=$?
|
||||||
|
if [[ $DeviceProc == 7 && $pwnDFUTool == "$pwnedDFU" ]]; then
|
||||||
|
SaveExternal ipwndfu
|
||||||
|
cd resources/ipwndfu
|
||||||
|
Log "Running rmsigchks.py..."
|
||||||
|
$rmsigchks
|
||||||
|
pwnDFUDevice=$?
|
||||||
|
cd ../..
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ $DeviceProc == 4 || $DeviceProc == 7 ]]; then
|
if [[ $DeviceProc == 4 || $DeviceProc == 7 ]]; then
|
||||||
pwnD=$($irecovery -q | grep -c "PWND")
|
pwnD=$($irecovery -q | grep -c "PWND")
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user