Update ipwndfu

This commit is contained in:
LukeZGD 2023-10-02 23:41:14 +08:00
parent d96dd2ab0f
commit 18c353c5dd
2 changed files with 6 additions and 3 deletions

View File

@ -27,13 +27,14 @@ jobs:
- name: Download some files - name: Download some files
run: | run: |
pushd resources pushd resources
curl -L https://github.com/LukeZGD/ipwndfu/archive/0883efd7de10e806e8d5e3d825950b04bb5a12b7.zip -o ipwndfu.zip curl -L https://github.com/LukeZGD/ipwndfu/archive/89a7943f94e7938431b2100276a9099c7f6736e4.zip -o ipwndfu.zip
curl -L https://github.com/LukeZGD/Legacy-iOS-Kit-Keys/archive/refs/heads/master.zip -o keys.zip curl -L https://github.com/LukeZGD/Legacy-iOS-Kit-Keys/archive/refs/heads/master.zip -o keys.zip
unzip keys.zip -d . unzip keys.zip -d .
unzip ipwndfu.zip -d . unzip ipwndfu.zip -d .
cp -r Legacy-iOS-Kit-Keys-master/* firmware cp -r Legacy-iOS-Kit-Keys-master/* firmware
mv ipwndfu*/ ipwndfu mv ipwndfu*/ ipwndfu
rm -rf Legacy-iOS-Kit-Keys-master/ ipwndfu.zip keys.zip rm -rf Legacy-iOS-Kit-Keys-master/ ipwndfu.zip keys.zip
echo "97d7ed8591692eb9565397c752ea765bfe6e4efe" > ipwndfu/sha1
popd popd
- name: Move linux binaries - name: Move linux binaries

View File

@ -1263,6 +1263,8 @@ 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 == "macos" && $(uname -m) != "x86_64" ]]; then
error_msg+=$'\n* If you get the error "No backend available" in ipwndfu, install libusb in Homebrew: brew install libusb'
fi fi
error_msg+=$'\n* For more details, read the "Troubleshooting" wiki page in GitHub' error_msg+=$'\n* For more details, read the "Troubleshooting" wiki page in GitHub'
error_msg+=$'\n* Troubleshooting links: error_msg+=$'\n* Troubleshooting links:
@ -1326,10 +1328,10 @@ device_ipwndfu() {
fi fi
device_enter_mode DFU device_enter_mode DFU
local ipwndfu_sha1="4655789fc683b71cee1f08f4ecc53e7043eddddb" local ipwndfu_sha1="97d7ed8591692eb9565397c752ea765bfe6e4efe"
if [[ ! -d ../resources/ipwndfu || $(cat ../resources/ipwndfu/sha1) != "$ipwndfu_sha1" ]]; then if [[ ! -d ../resources/ipwndfu || $(cat ../resources/ipwndfu/sha1) != "$ipwndfu_sha1" ]]; then
rm -rf ../resources/ipwndfu rm -rf ../resources/ipwndfu
download_file https://github.com/LukeZGD/ipwndfu/archive/84ec75c67c0df08fdfc95f98e5f3698602279ce7.zip ipwndfu.zip $ipwndfu_sha1 download_file https://github.com/LukeZGD/ipwndfu/archive/89a7943f94e7938431b2100276a9099c7f6736e4.zip ipwndfu.zip $ipwndfu_sha1
unzip -q ipwndfu.zip -d ../resources unzip -q ipwndfu.zip -d ../resources
mv ../resources/ipwndfu*/ ../resources/ipwndfu/ mv ../resources/ipwndfu*/ ../resources/ipwndfu/
echo "$ipwndfu_sha1" > ../resources/ipwndfu/sha1 echo "$ipwndfu_sha1" > ../resources/ipwndfu/sha1