From bbb11ea01ff1e908ab6c61b6b73c2bbbefa111f4 Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Fri, 29 Jul 2022 10:58:15 +0800 Subject: [PATCH] Changes with some jailbreak stuff and device --- .gitignore | 2 ++ resources/device.sh | 18 +++++++++++------- .../firmware/src/target/n90/11D257/exploit | Bin 524288 -> 0 bytes resources/ipsw.sh | 8 ++++++-- 4 files changed, 19 insertions(+), 9 deletions(-) delete mode 100644 resources/firmware/src/target/n90/11D257/exploit diff --git a/.gitignore b/.gitignore index 54d845d..965b1d0 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ *.shsh2 *.txt Cydia* +exploit first_run iP*Custom*/ iP*Restore/ @@ -20,5 +21,6 @@ resources/jailbreak/untether.tar resources/libimobiledevice*/ resources/ramdisk/ saved/ +sshdeb.tar tmp/ version.xml diff --git a/resources/device.sh b/resources/device.sh index 4563d41..9d24973 100755 --- a/resources/device.sh +++ b/resources/device.sh @@ -42,16 +42,20 @@ FindDevice() { GetDeviceValues() { local ideviceinfo2 local version - - Log "Finding device in Normal mode..." DeviceState= - ideviceinfo2=$($ideviceinfo -s) - if [[ $? != 0 && $NoDevice != 1 ]]; then - Log "Finding device in DFU/recovery mode..." - DeviceState="$($irecovery -q 2>/dev/null | grep -w "MODE" | cut -c 7-)" - elif [[ $NoDevice == 1 ]]; then + + if [[ $NoDevice == 1 ]]; then Log "NoDevice argument detected. Skipping device detection" DeviceState="NoDevice" + else + Log "Finding device in Normal mode..." + ideviceinfo2=$($ideviceinfo -s) + opt=$? + fi + + if [[ $opt != 0 && $NoDevice != 1 ]]; then + Log "Finding device in DFU/recovery mode..." + DeviceState="$($irecovery -q 2>/dev/null | grep -w "MODE" | cut -c 7-)" elif [[ -n $ideviceinfo2 ]]; then DeviceState="Normal" fi diff --git a/resources/firmware/src/target/n90/11D257/exploit b/resources/firmware/src/target/n90/11D257/exploit deleted file mode 100644 index 8d26921159fbfe5f59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zfB^;=V1NMz7+`<_1{h#~0R|XgfB^;=V1NMz7+`<_1{h#~0R|XgfB^>HDh8580R> tmp/reboot.sh echo "nvram -d boot-partition; nvram -d boot-ramdisk" >> tmp/reboot.sh echo "/usr/bin/haxx_overwrite -$HWModel" >> tmp/reboot.sh - #JBFiles=("../resources/jailbreak/sshdeb.tar") # uncomment to add openssh to custom ipsw - #JailbreakFiles $JBURL/sshdeb.tar 0bffece0f8fd939c479159b57e923dd8c06191d3 # uncomment to add openssh to custom ipsw + #JBFiles=("../resources/jailbreak/sshdeb.tar") # uncomment to add openssh to custom ipsw + #JailbreakFiles $JBURL/sshdeb.tar sshdeb.tar 0bffece0f8fd939c479159b57e923dd8c06191d3 # uncomment to add openssh to custom ipsw JBFiles2=("bin.tar" "cydia.tar" "untether.tar") JBSHA1=("98034227c68610f4c7dd48ca9e622314a1e649e7" "2e9e662afe890e50ccf06d05429ca12ce2c0a3a3" "f88ec9a1b3011c4065733249363e9850af5f57c8") mkdir -p tmp/jailbreak @@ -250,6 +250,10 @@ IPSW4() { if [[ $OSVer == "4.3"* ]]; then IPSW4Cherry return + else + local JBURL2="https://github.com/LukeZGD/powdersn0w_pub/raw/main/xpwn/src/target/n90/11D257/exploit" + JailbreakFiles $JBURL2 exploit bedd10a96ba0f305a0af74a15e1eee88946070a1 + cp resources/jailbreak/exploit resources/firmware/src/target/n90/11D257/ fi if [[ $Jailbreak == 1 ]]; then