Add gaster to pwnDFUTool option for A7

This commit is contained in:
LukeZGD 2022-09-02 12:19:04 +08:00
parent 69bcb5e6c4
commit bc342eff4f
5 changed files with 13 additions and 3 deletions

View File

@ -83,6 +83,7 @@
- [ipwndfu](https://github.com/LukeZGD/ipwndfu) - LukeZGD fork - [ipwndfu](https://github.com/LukeZGD/ipwndfu) - LukeZGD fork
- [iPwnder32](https://github.com/dora2-iOS/iPwnder32) - dora2ios - [iPwnder32](https://github.com/dora2-iOS/iPwnder32) - dora2ios
- [ipwnder_lite](https://github.com/dora2-iOS/ipwnder_lite) - dora2ios - [ipwnder_lite](https://github.com/dora2-iOS/ipwnder_lite) - dora2ios
- [gaster](https://github.com/0x7ff/gaster) - 0x7ff
- [daibutsuCFW](https://github.com/dora2-iOS/daibutsuCFW) - dora2ios ([LukeZGD fork](https://github.com/LukeZGD/daibutsuCFW)) - [daibutsuCFW](https://github.com/dora2-iOS/daibutsuCFW) - dora2ios ([LukeZGD fork](https://github.com/LukeZGD/daibutsuCFW))
- [libimobiledevice](https://github.com/libimobiledevice/libimobiledevice), [libirecovery](https://github.com/libimobiledevice/libirecovery) - libimobiledevice ([macOS/Windows builds](https://github.com/libimobiledevice-win32/imobiledevice-net)) - [libimobiledevice](https://github.com/libimobiledevice/libimobiledevice), [libirecovery](https://github.com/libimobiledevice/libirecovery) - libimobiledevice ([macOS/Windows builds](https://github.com/libimobiledevice-win32/imobiledevice-net))
- [tsschecker](https://github.com/tihmstar/tsschecker) - tihmstar ([1Conan fork](https://github.com/1Conan/tsschecker)) - [tsschecker](https://github.com/tihmstar/tsschecker) - tihmstar ([1Conan fork](https://github.com/1Conan/tsschecker))

View File

@ -53,6 +53,7 @@ SetToolPaths() {
fi fi
cherrybin="../$cherry/cherry" cherrybin="../$cherry/cherry"
gaster="./resources/tools/gaster_$platform"
ideviceenterrecovery="$MPath/ideviceenterrecovery" ideviceenterrecovery="$MPath/ideviceenterrecovery"
ideviceinfo="$MPath/ideviceinfo" ideviceinfo="$MPath/ideviceinfo"
idevicerestore="./resources/tools/idevicerestore_$platform" idevicerestore="./resources/tools/idevicerestore_$platform"

View File

@ -212,6 +212,7 @@ EnterPwnDFU() {
local pwnDFUTool local pwnDFUTool
local pwnDFUDevice local pwnDFUDevice
local pwnD=1 local pwnD=1
local Selection=()
if [[ $ProductType == "iPhone3,1" ]]; then if [[ $ProductType == "iPhone3,1" ]]; then
pwnDFUTool="$pwnedDFU" pwnDFUTool="$pwnedDFU"
@ -225,17 +226,21 @@ EnterPwnDFU() {
elif [[ $platform == "macos" ]]; then elif [[ $platform == "macos" ]]; then
pwnDFUTool="$ipwnder32" pwnDFUTool="$ipwnder32"
fi fi
elif [[ $platform == "macos" ]]; then elif [[ $platform == "macos" || $DeviceProc == 7 ]]; then
Selection=("ipwnder_lite" "iPwnder32") [[ $platform == "macos" ]] && Selection+=("ipwnder_lite" "iPwnder32")
[[ $DeviceProc == 7 ]] && Selection+=("gaster")
[[ $platform == "linux" ]] && Selection+=("ipwndfu")
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. Select 2 if 1 does not work." Echo "* If unsure, select 1. If 1 does not work, try selecting the other options."
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;;
"gaster" ) pwnDFUTool="$gaster"; break;;
"ipwndfu" ) pwnDFUTool="ipwndfu"; SaveExternal ipwndfu; break;;
esac esac
done done
else else
@ -257,6 +262,9 @@ EnterPwnDFU() {
cd ../.. cd ../..
SendPwnediBSS SendPwnediBSS
fi fi
elif [[ $pwnDFUTool == "$gaster" ]]; then
$pwnDFUTool pwn
pwnDFUDevice=$?
else else
$pwnDFUTool -p $pwnDFUTool -p
pwnDFUDevice=$? pwnDFUDevice=$?

BIN
resources/tools/gaster_linux Executable file

Binary file not shown.

BIN
resources/tools/gaster_macos Executable file

Binary file not shown.