mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-02-18 17:36:23 +01:00
Add remaining 4.0.x and 4.1 tars
legacy ios kit can now jailbreak all of 4.x (except for ipad 2 4.3.x) also add disable bbupdate indicator
This commit is contained in:
parent
8000ca50c8
commit
6bbe22b45a
@ -17,7 +17,7 @@
|
|||||||
- Option to **jailbreak** all of the above devices
|
- Option to **jailbreak** all of the above devices
|
||||||
- Including latest iOS versions for some devices (4.2.1, 5.1.1, 6.1.6, 7.1.2)
|
- Including latest iOS versions for some devices (4.2.1, 5.1.1, 6.1.6, 7.1.2)
|
||||||
- There are two methods of jailbreaking: Custom IPSW and SSH Ramdisk
|
- There are two methods of jailbreaking: Custom IPSW and SSH Ramdisk
|
||||||
- Available on target versions iOS 4.1, 4.2.x, 4.3.x, 5.x, 6.x, 7.x, and 8.4.1
|
- Available on target versions 3.2.2, 4.0.x, 4.1, 4.2.x, 4.3.x, 5.x, 6.x, 7.x, and 8.4.1
|
||||||
- Jailbreaking iPad 2 on 4.3.x is not supported (only 5.x and newer will work)
|
- Jailbreaking iPad 2 on 4.3.x is not supported (only 5.x and newer will work)
|
||||||
- Restore to iOS 10.3.3 on supported A7 devices **(OTA signed)**
|
- Restore to iOS 10.3.3 on supported A7 devices **(OTA signed)**
|
||||||
- Restore A7/A8 devices to lower iOS versions **with SHSH blobs**
|
- Restore A7/A8 devices to lower iOS versions **with SHSH blobs**
|
||||||
|
BIN
resources/jailbreak/greenpois0n/iPad1,1_7B500.tar
Normal file
BIN
resources/jailbreak/greenpois0n/iPad1,1_7B500.tar
Normal file
Binary file not shown.
BIN
resources/jailbreak/greenpois0n/iPhone2,1_8A293.tar
Normal file
BIN
resources/jailbreak/greenpois0n/iPhone2,1_8A293.tar
Normal file
Binary file not shown.
BIN
resources/jailbreak/greenpois0n/iPhone2,1_8A306.tar
Normal file
BIN
resources/jailbreak/greenpois0n/iPhone2,1_8A306.tar
Normal file
Binary file not shown.
BIN
resources/jailbreak/greenpois0n/iPhone2,1_8A400.tar
Normal file
BIN
resources/jailbreak/greenpois0n/iPhone2,1_8A400.tar
Normal file
Binary file not shown.
BIN
resources/jailbreak/greenpois0n/iPhone3,1_8A293.tar
Normal file
BIN
resources/jailbreak/greenpois0n/iPhone3,1_8A293.tar
Normal file
Binary file not shown.
BIN
resources/jailbreak/greenpois0n/iPhone3,1_8A306.tar
Normal file
BIN
resources/jailbreak/greenpois0n/iPhone3,1_8A306.tar
Normal file
Binary file not shown.
BIN
resources/jailbreak/greenpois0n/iPhone3,1_8A400.tar
Normal file
BIN
resources/jailbreak/greenpois0n/iPhone3,1_8A400.tar
Normal file
Binary file not shown.
BIN
resources/jailbreak/greenpois0n/iPhone4,1_8B117.tar
Normal file
BIN
resources/jailbreak/greenpois0n/iPhone4,1_8B117.tar
Normal file
Binary file not shown.
BIN
resources/jailbreak/greenpois0n/iPod2,1_8A293.tar
Normal file
BIN
resources/jailbreak/greenpois0n/iPod2,1_8A293.tar
Normal file
Binary file not shown.
BIN
resources/jailbreak/greenpois0n/iPod2,1_8A400.tar
Normal file
BIN
resources/jailbreak/greenpois0n/iPod2,1_8A400.tar
Normal file
Binary file not shown.
BIN
resources/jailbreak/greenpois0n/iPod3,1_8A293.tar
Normal file
BIN
resources/jailbreak/greenpois0n/iPod3,1_8A293.tar
Normal file
Binary file not shown.
BIN
resources/jailbreak/greenpois0n/iPod3,1_8A400.tar
Normal file
BIN
resources/jailbreak/greenpois0n/iPod3,1_8A400.tar
Normal file
Binary file not shown.
BIN
resources/jailbreak/greenpois0n/iPod4,1_8B117.tar
Normal file
BIN
resources/jailbreak/greenpois0n/iPod4,1_8B117.tar
Normal file
Binary file not shown.
BIN
resources/jailbreak/greenpois0n/iPod4,1_8B118.tar
Normal file
BIN
resources/jailbreak/greenpois0n/iPod4,1_8B118.tar
Normal file
Binary file not shown.
54
restore.sh
54
restore.sh
@ -2696,7 +2696,7 @@ device_ramdisk() {
|
|||||||
|
|
||||||
mv iBSS iBEC AppleLogo.dec DeviceTree.dec Kernelcache.dec Ramdisk.dmg ../saved/$device_type/ramdisk 2>/dev/null
|
mv iBSS iBEC AppleLogo.dec DeviceTree.dec Kernelcache.dec Ramdisk.dmg ../saved/$device_type/ramdisk 2>/dev/null
|
||||||
|
|
||||||
if [[ $device_proc == 4 ]]; then
|
if [[ $device_proc == 4 || $1 == "jailbreak" ]]; then
|
||||||
device_enter_mode pwnDFU
|
device_enter_mode pwnDFU
|
||||||
else
|
else
|
||||||
device_enter_mode kDFU
|
device_enter_mode kDFU
|
||||||
@ -2756,14 +2756,14 @@ device_ramdisk() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
case $vers in
|
case $vers in
|
||||||
8.4.1 ) untether="etasonJB-untether.tar";;
|
8.4.1 ) untether="etasonJB-untether.tar";;
|
||||||
7.1* ) untether="panguaxe.tar";;
|
7.1* ) untether="panguaxe.tar";;
|
||||||
7* ) untether="evasi0n7-untether.tar";;
|
7* ) untether="evasi0n7-untether.tar";;
|
||||||
6.1.[3456] ) untether="p0sixspwn.tar";;
|
6.1.[3456] ) untether="p0sixspwn.tar";;
|
||||||
6* ) untether="evasi0n6-untether.tar";;
|
6* ) untether="evasi0n6-untether.tar";;
|
||||||
5* ) untether="pris0nbarake/tar-${device_model}_$build.tar";;
|
5* ) untether="pris0nbarake/tar-${device_model}_$build.tar";;
|
||||||
4.2.1 | 4.1 ) untether="greenpois0n/${device_type}_${build}.tar";;
|
4.2.1 | 4.1 | 4.0* | 3.2.2 ) untether="greenpois0n/${device_type}_${build}.tar";;
|
||||||
4.3* | 4.2* ) untether="unthredeh4il.tar";;
|
4.3* | 4.2* ) untether="unthredeh4il.tar";;
|
||||||
'' )
|
'' )
|
||||||
warn "Something wrong happened. Failed to get iOS version."
|
warn "Something wrong happened. Failed to get iOS version."
|
||||||
$ssh -p 2222 root@127.0.0.1 "reboot_bak"
|
$ssh -p 2222 root@127.0.0.1 "reboot_bak"
|
||||||
@ -2780,11 +2780,13 @@ device_ramdisk() {
|
|||||||
log "Nice, iOS $vers is compatible."
|
log "Nice, iOS $vers is compatible."
|
||||||
log "Sending $untether"
|
log "Sending $untether"
|
||||||
$scp -P 2222 $jelbrek/$untether root@127.0.0.1:/mnt1
|
$scp -P 2222 $jelbrek/$untether root@127.0.0.1:/mnt1
|
||||||
if [[ $vers == "4.1" ]]; then
|
case $vers in
|
||||||
untether="${device_type}_${build}.tar"
|
4.1 | 4.0* | 3.2.2 )
|
||||||
log "Extracting $untether"
|
untether="${device_type}_${build}.tar"
|
||||||
$ssh -p 2222 root@127.0.0.1 "tar -xvf /mnt1/$untether -C /mnt1; rm /mnt1/$untether"
|
log "Extracting $untether"
|
||||||
fi
|
$ssh -p 2222 root@127.0.0.1 "tar -xvf /mnt1/$untether -C /mnt1; rm /mnt1/$untether"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
log "Mounting filesystems"
|
log "Mounting filesystems"
|
||||||
$ssh -p 2222 root@127.0.0.1 "mount.sh pv"
|
$ssh -p 2222 root@127.0.0.1 "mount.sh pv"
|
||||||
case $vers in
|
case $vers in
|
||||||
@ -2795,7 +2797,7 @@ device_ramdisk() {
|
|||||||
4.2.1 ) $ssh -p 2222 root@127.0.0.1 "[[ ! -e /mnt1/sbin/punchd ]] && mv /mnt1/sbin/launchd /mnt1/sbin/punchd";;
|
4.2.1 ) $ssh -p 2222 root@127.0.0.1 "[[ ! -e /mnt1/sbin/punchd ]] && mv /mnt1/sbin/launchd /mnt1/sbin/punchd";;
|
||||||
esac
|
esac
|
||||||
case $vers in
|
case $vers in
|
||||||
4.2.1 | 4.1 )
|
4.2.1 | 4.1 | 4.0* | 3.2.2 )
|
||||||
untether="${device_type}_${build}.tar"
|
untether="${device_type}_${build}.tar"
|
||||||
if [[ $device_type == "iPod2,1" ]]; then
|
if [[ $device_type == "iPod2,1" ]]; then
|
||||||
$scp -P 2222 $jelbrek/fstab_old root@127.0.0.1:/mnt1/private/etc/fstab
|
$scp -P 2222 $jelbrek/fstab_old root@127.0.0.1:/mnt1/private/etc/fstab
|
||||||
@ -2805,13 +2807,16 @@ device_ramdisk() {
|
|||||||
$ssh -p 2222 root@127.0.0.1 "rm /mnt1/private/var/mobile/Library/Caches/com.apple.mobile.installation.plist"
|
$ssh -p 2222 root@127.0.0.1 "rm /mnt1/private/var/mobile/Library/Caches/com.apple.mobile.installation.plist"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if [[ $vers != "4.1" ]]; then
|
case $vers in
|
||||||
log "Extracting $untether"
|
4.1 | 4.0* | 3.2.2 ) :;;
|
||||||
$ssh -p 2222 root@127.0.0.1 "tar -xvf /mnt1/$untether -C /mnt1; rm /mnt1/$untether"
|
* )
|
||||||
fi
|
log "Extracting $untether"
|
||||||
|
$ssh -p 2222 root@127.0.0.1 "tar -xvf /mnt1/$untether -C /mnt1; rm /mnt1/$untether"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
case $vers in
|
case $vers in
|
||||||
8* | 7* | 6* ) device_ramdisktar freeze.tar;;
|
8* | 7* | 6* ) device_ramdisktar freeze.tar;;
|
||||||
5* | 4* ) device_ramdisktar freeze_old.tar;;
|
5* | 4* | 3* ) device_ramdisktar freeze_old.tar;;
|
||||||
esac
|
esac
|
||||||
log "Rebooting"
|
log "Rebooting"
|
||||||
$ssh -p 2222 root@127.0.0.1 "reboot_bak"
|
$ssh -p 2222 root@127.0.0.1 "reboot_bak"
|
||||||
@ -2941,6 +2946,9 @@ menu_print_info() {
|
|||||||
elif [[ $device_type == "iPhone2,1" || $device_type == "iPod2,1" ]]; then
|
elif [[ $device_type == "iPhone2,1" || $device_type == "iPod2,1" ]]; then
|
||||||
print "* This $device_type is an old bootrom model"
|
print "* This $device_type is an old bootrom model"
|
||||||
fi
|
fi
|
||||||
|
if [[ $de_bbupdate == 1 ]]; then
|
||||||
|
warn "Disable bbupdate flag detected, baseband update is disabled."
|
||||||
|
fi
|
||||||
print "* iOS Version: $device_vers"
|
print "* iOS Version: $device_vers"
|
||||||
print "* ECID: $device_ecid"
|
print "* ECID: $device_ecid"
|
||||||
echo
|
echo
|
||||||
@ -2963,7 +2971,7 @@ menu_main() {
|
|||||||
elif (( device_proc < 7 )); then
|
elif (( device_proc < 7 )); then
|
||||||
if [[ $device_mode == "Normal" ]]; then
|
if [[ $device_mode == "Normal" ]]; then
|
||||||
case $device_vers in
|
case $device_vers in
|
||||||
8.4.1 | 7* | 6* | 5* | 4.3* | 4.2* | 4.1 ) menu_items+=("Jailbreak Device");;
|
8.4.1 | 7* | 6* | 5* | 4* | 3.2.2 ) menu_items+=("Jailbreak Device");;
|
||||||
esac
|
esac
|
||||||
elif [[ $device_mode != "none" ]]; then
|
elif [[ $device_mode != "none" ]]; then
|
||||||
menu_items+=("Jailbreak Device")
|
menu_items+=("Jailbreak Device")
|
||||||
@ -3542,7 +3550,7 @@ device_jailbreakrd() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
case $device_vers in
|
case $device_vers in
|
||||||
8.4.1 | 7* | 6* | 5* | 4.3* | 4.2* | 4.1 ) :;;
|
8.4.1 | 7* | 6* | 5* | 4* | 3.2.2 ) :;;
|
||||||
* ) warn "This version is not supported for jailbreaking with SSHRD."; return;;
|
* ) warn "This version is not supported for jailbreaking with SSHRD."; return;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
@ -3641,7 +3649,7 @@ for i in "$@"; do
|
|||||||
"--ipsw-verbose" ) ipsw_verbose=1;;
|
"--ipsw-verbose" ) ipsw_verbose=1;;
|
||||||
"--jailbreak" ) ipsw_jailbreak=1;;
|
"--jailbreak" ) ipsw_jailbreak=1;;
|
||||||
"--memory" ) ipsw_memory=1;;
|
"--memory" ) ipsw_memory=1;;
|
||||||
"--disable-bbupdate" ) device_disable_bbupdate=1;;
|
"--disable-bbupdate" ) de_bbupdate=1; device_disable_bbupdate=1;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user