pwndfu tool option for a4 on linux

addresses #454
This commit is contained in:
LukeZGD 2024-04-08 17:59:55 +08:00
parent 736e605342
commit 24a8d45d6c

View File

@ -1301,9 +1301,32 @@ device_enter_mode() {
$ipwnder -p $ipwnder -p
tool_pwned=$? tool_pwned=$?
elif [[ $device_proc == 4 ]]; then elif [[ $device_proc == 4 ]]; then
# A4 linux uses ipwndfu # A4 linux uses ipwndfu/ipwnder
device_ipwndfu pwn local selection=("ipwndfu" "ipwnder (SHAtter)" "ipwnder (limera1n)")
tool_pwned=$? input "PwnDFU Tool Option"
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 "* If the first option does not work, try the other option(s)."
input "Select your option:"
select opt2 in "${selection[@]}"; do
case $opt2 in
"ipwndfu" )
device_ipwndfu pwn
tool_pwned=$?
break
;;
"ipwnder (SHAtter)" )
$ipwnder -s
tool_pwned=$?
break
;;
"ipwnder (limera1n)" )
$ipwnder -p
tool_pwned=$?
break
;;
esac
done
else else
# the linux checkm8 section. success rates are absolute garbage here # the linux checkm8 section. success rates are absolute garbage here
# A6 linux uses ipwndfu, A7 linux uses gaster # A6 linux uses ipwndfu, A7 linux uses gaster
@ -1389,6 +1412,9 @@ device_pwnerror() {
if [[ $platform == "linux" && $device_proc != 4 ]]; then if [[ $platform == "linux" && $device_proc != 4 ]]; then
error_msg+=$'\n* Unfortunately, success rates for checkm8 are very low on Linux.' error_msg+=$'\n* Unfortunately, success rates for checkm8 are very low on Linux.'
error_msg+=$'\n* Pwning using a Mac or another iOS device using iPwnder Lite are better options.' error_msg+=$'\n* Pwning using a Mac or another iOS device using iPwnder Lite are better options.'
elif [[ $platform == "linux" && $device_proc == 4 ]]; then
error_msg+=$'\n* Unfortunately, pwning may have low success rates for PCs with an AMD CPU.'
error_msg+=$'\n* Pwning using an Intel PC or another device may be better options.'
elif [[ $platform == "macos" ]]; then elif [[ $platform == "macos" ]]; then
error_msg+=$'\n* If you get the error "No backend available" in ipwndfu, install libusb in Homebrew/MacPorts' error_msg+=$'\n* If you get the error "No backend available" in ipwndfu, install libusb in Homebrew/MacPorts'
fi fi