From cbdf4bc443e106361a062171ba8c006e6db12792 Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Fri, 16 Aug 2024 11:40:06 +0800 Subject: [PATCH] Some updates adjusting for the iPhone 4 iOS 4.2.x situation, and other changes --- README.md | 5 ++-- .../jailbreak/greenpois0n/iPhone3,3_8E303.tar | Bin 0 -> 61440 bytes .../jailbreak/greenpois0n/iPhone3,3_8E401.tar | Bin 0 -> 61440 bytes restore.sh | 24 ++++++++++-------- 4 files changed, 16 insertions(+), 13 deletions(-) create mode 100644 resources/jailbreak/greenpois0n/iPhone3,3_8E303.tar create mode 100644 resources/jailbreak/greenpois0n/iPhone3,3_8E401.tar diff --git a/README.md b/README.md index 5da3c06..ac0832e 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,7 @@ - Restore to other iOS versions with iOS 7 blobs (powdersn0w) - Tethered downgrades/restores to other iOS versions for A5/A6 and other devices - Jailbreak all 32-bit iOS devices on (almost) any iOS version - - Available on iOS versions 3.1 to 9.3.4 - - Only unsupported versions are iOS 9.0.x + - Available on iOS versions 3.1 to 9.3.4 with some exceptions - Hacktivation for iPhone 2G, 3G, 3GS, 4 GSM (activate without valid SIM card) - [FourThree Utility](https://github.com/LukeZGD/FourThree-iPad2) - Dualboot iOS 4.3.x for the iPad 2 - Restore to iOS 10.3.3 (signed OTA version) on supported A7 devices @@ -113,7 +112,7 @@ - iPhone 3G - Only 4.1 and 3.1.3 are supported - iPod touch 2 - Only 4.2.1, 4.1, and 3.1.3 are supported - iPhone 3GS - All versions are supported - - Other devices - All versions from 3.1.3 to 9.3.4 are supported, with some exceptions (9.0.x is not supported, A5(X) 8.0-8.2 is not supported) + - Other devices - All versions from 3.1.3 to 9.3.4 are supported, with some exceptions - For more details, go to the ["Jailbreaking" wiki page](https://github.com/LukeZGD/Legacy-iOS-Kit/wiki/Jailbreaking) diff --git a/resources/jailbreak/greenpois0n/iPhone3,3_8E303.tar b/resources/jailbreak/greenpois0n/iPhone3,3_8E303.tar new file mode 100644 index 0000000000000000000000000000000000000000..2ed7b1f5417226fe5fdfda5e36aa56bee4cf3993 GIT binary patch literal 61440 zcmeI53shXkdB}qjJt(6Q5GKz$4k`hPBWmy*OmVIS+ zp^z%^y0IO#$C8!c`Va|MsBxPd>m(tKoYpzg5l$RO?Xi7O>z+EUAFEen)FfS{IWciv z(f>DlFI*m`vLlj{_?yGG^Pib-=Fa`iTwv$EELJh^!G_>+IR(WC6x&@+8OsdHvpY6B zT~3Fs%4HWeyUn(FvoJg7y=T}!S0d?+o6RB~jV9;XUZ|_n@1M)zceBi5O|%6g^E(M> zkgs+8olY8myRFjBArpnZO}IOq7|Sa(%Agx!wA-(|0=v^g;Tl~tQ7 zh1oVg-I?0z`~3KS;jN!u%?FW%upHP8uzr&e4#m$TI`B~SCT{>$3g4@C(_+m&D>m{dA&n9t}# zsX!mxLX=KxWAT(WA|WNw8*Yn+lvpx8vkiA~VJ`ejTc`Ge=9Lz(FW#hAOU-0ajy7n% zmA6i9W3q;RPJVRf_LjSwx8B~U78hZj7=(yrlNv{@E=t5+n4;|1wL{CKnC3AV)kCb+ zBYz5t5{ibhQccgSPy0>v_2aFpBF8>^9PQY?v$3vryEcEDz@4_865>T{khZC9m+Dh{ zMI=%}EJrkk_!Y!?uqGGJ8vTeSEnCfYPj`>m;wPEc_#I2!Vn^m25 ztB^;1`25bd?SKDwN30(>b?R4nPcJ`JhP;)q34V}N-vJ~4EQ?2>43ll5-90{^lCan< zXg=76(iwG3pPfN;QAAI?4qe)|2cy@bOSOW5nP#Ntt(;*WGh<374%X-ZjlB--xR6&9qe zxiFkzETr?V6|jvk8`+(0j&)_NRm6?X>C?H~MX-N(HEgGI-jFgh!S{##e!EG_K&;i% zWyyLM-ebLLY@-=Q+oCpUd-}F#+n&ChH4|V0On?b60Vco%m;e)C0!)AjFaajO1egF5 zU;<2l2`~XBzyz286JP>NfC(@GCcp%k025#WOn?b60Vco%m;e)C0!)AjFaajO1egF5 zU;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3*V?nG zk$`92(OcGTlBtDf3Wp3QM46#Ax6JVA)h7#w7W6;pxq16vcq$r1#hMd_A=8M)yP>|P zev*DM{Rv2z1F6U5 zk4Sk?@@IIn!Y1aei7CXVx)7? z4)mX^x*hsK=w-;KHHQPLrnQGhRZZ&;e*-O_DS+?P-%;~hkx%#kQ{86hXGj}zMN7Ux zyrAaO`o+Jix&=C|`qW~-eyr*X@c)I>xSs&mKmRXjw7DDpdEkMs?J|Fbs_7c(Vrcvj zGEpwILFx@UU8VE6RhPd_r?>0$ojTp3)1T7mcAbvvbP4)FV@B6b<8}st+Yy8rRt8%O zTL&wLA*AT~@?zMv)_Hf&M^J9JR8?D?mDQUCNf$|{l$%L9q;!(3lF~u4Qpzfl_Sv4W zkZ61NPg&4b&lD`b38g)X$1Eg$0X!x_d-{U51gAb;K^CjeU=VQb4Mn}}LW%pmA>06w zU7gc%)h93D4wEFF01=M~#TSYu@VEzh)I+z7=~)aNSRIKZJA@L9;+YJ1f`dPt@FPDQ z?TR3xLK)ZcYV0)m;bTgf%Pj7tbFxzM~}w`hX4AX67Zi9zE}A0WB>TdmtJqY z*xhx`n2NhEIc<-a`kveJqng!^-}g%HO_t8GkKDgz##+C#2#};1r@z{pX zC0D=vmydVc`;~`Y-+1a(kL~`?-+N$RNfC(@GCcp%k025#WOn?b6fnSrr{{b&=PsIQL literal 0 HcmV?d00001 diff --git a/resources/jailbreak/greenpois0n/iPhone3,3_8E401.tar b/resources/jailbreak/greenpois0n/iPhone3,3_8E401.tar new file mode 100644 index 0000000000000000000000000000000000000000..a730cf7dc5d989964582c2be0b08a6ef5ba6a5f7 GIT binary patch literal 61440 zcmeI54|H4AeaEjXC2?Yh*h$*jjv;blT4zZt$(Ag`JWz}+J2*=WxSa=XpJhpowCGYllb`PQ-ut`v-S@foInsUqDlKBcgB8K)bO?$OD7HBrGL{*XXS3Hh zoDRFS+G!J3o7GxVBg~Ek?-@4GlSq2vX0wP#qsjTU7wXyN_s{3>%UM=wNpuAx3p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 b/restore.sh @@ -422,6 +422,7 @@ version_update() { print "* If this fails for some reason, run: git reset --hard" print "* To clean more files if needed, run: git clean -df" git pull + pushd "$(dirname "$0")/tmp$$" >/dev/null log "Done! Please run the script again" exit elif (( $(ls bin | wc -l) > 1 )); then @@ -448,6 +449,7 @@ version_update() { rm -r resources/ 2>/dev/null unzip -q tmp$$/latest.zip -d . cp tmp$$/firstrun resources 2>/dev/null + pushd "$(dirname "$0")/tmp$$" >/dev/null log "Done! Please run the script again" exit } @@ -1997,7 +1999,7 @@ ipsw_preference_set() { fi case $device_target_vers in - 9.3.[4321] | 9.3 | 9.[21]* | [8765]* | 4.[32]* ) ipsw_canjailbreak=1;; + 9.3.[4321] | 9.3 | 9.[21]* | [8765]* | 4.3* | 4.2.1 ) ipsw_canjailbreak=1;; 3.1.3 ) case $device_proc in 1 ) ipsw_canjailbreak=1;; @@ -2018,7 +2020,8 @@ ipsw_preference_set() { esac else case $device_target_vers in - 4.[10]* ) ipsw_nojailbreak_message;; + 4.2.1 ) :;; + 4.[210]* ) ipsw_nojailbreak_message;; esac fi @@ -5449,7 +5452,7 @@ device_ramdisk() { 7* ) untether="evasi0n7-untether.tar";; 6.1.[6543] ) untether="p0sixspwn.tar";; 6* ) untether="evasi0n6-untether.tar";; - 4.2.1 | 4.[10]* | 3.2* | 3.1.3 ) untether="greenpois0n/${device_type}_${build}.tar";; + 4.2.[8761] | 4.[10]* | 3.2* | 3.1.3 ) untether="greenpois0n/${device_type}_${build}.tar";; 5* | 4.[32]* ) untether="g1lbertJB/${device_type}_${build}.tar";; '' ) warn "Something wrong happened. Failed to get iOS version." @@ -5486,12 +5489,12 @@ device_ramdisk() { 9* | 8* ) device_send_rdtar fstab8.tar;; 7* ) device_send_rdtar fstab7.tar;; 6* ) device_send_rdtar fstab_rw.tar;; - 4.2.1 ) $ssh -p $ssh_port root@127.0.0.1 "[[ ! -e /mnt1/sbin/punchd ]] && mv /mnt1/sbin/launchd /mnt1/sbin/punchd";; + 4.2.[8761] ) $ssh -p $ssh_port root@127.0.0.1 "[[ ! -e /mnt1/sbin/punchd ]] && mv /mnt1/sbin/launchd /mnt1/sbin/punchd";; 5* | 4.[32]* ) untether="${device_type}_${build}.tar";; esac case $vers in 5* ) device_send_rdtar g1lbertJB.tar;; - 4.2.1 | 4.[10]* | 3* ) + 4.2.[8761] | 4.[10]* | 3* ) untether="${device_type}_${build}.tar" log "fstab" if [[ $device_proc == 1 || $device_type == "iPod2,1" ]]; then @@ -7081,9 +7084,9 @@ menu_ipsw() { ipsw_print_warnings() { case $device_type in - "iPhone3,1" ) - if [[ $device_target_vers == "4.2.1" ]]; then - warn "iOS 4.2.1 for iPhone3,1 might fail to boot after the restore/jailbreak." + "iPhone3"* ) + if [[ $device_target_vers == "4.2"* ]]; then + warn "iOS 4.2.x for $device_type might fail to boot after the restore/jailbreak." print "* It is recommended to select another version instead." fi ;; @@ -7621,7 +7624,7 @@ menu_other() { "Clear NVRAM" ) mode="ramdisknvram";; "Send Pwned iBSS" | "Enter pwnDFU Mode" ) mode="pwned-ibss";; "(Re-)Install Dependencies" ) install_depends;; - "Attempt Activation" ) mode="device_activate";; + "Attempt Activation" ) device_activate;; "Install alloc8 Exploit" ) mode="device_alloc8";; "Dump Baseband" ) mode="baseband";; "Activation Records" ) mode="actrec";; @@ -7764,7 +7767,7 @@ device_jailbreak() { print "* https://github.com/staturnzz/socket" return ;; - 9.3.[1234] | 9.3 | 9.2* | 9.1 | [87654]* | 3.2* | 3.1.3 ) :;; + 9.3.[1234] | 9.3 | 9.2* | 9.1 | [8765]* | 4.3* | 4.2.[8761] | 4.[10]* | 3.2* | 3.1.3 ) :;; 3.[10]* ) if [[ $device_type != "iPhone2,1" ]]; then warn "This version ($device_vers) is not supported for jailbreaking with SSHRD." @@ -8001,6 +8004,7 @@ device_activate() { ;; esac print "* If it returns an error, just try again." + pause } device_hacktivate() {