mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-12-25 15:51:50 +01:00
Update ipsw.sh
fix ios4fix script even though it doesn't really work anyway
This commit is contained in:
parent
9248c9002c
commit
d151d71aac
@ -4,7 +4,7 @@
|
|||||||
- **iPhone4Down: Downgrade your iPhone 4 on Linux (using ch3rryflower)**
|
- **iPhone4Down: Downgrade your iPhone 4 on Linux (using ch3rryflower)**
|
||||||
- **Linux and macOS** are supported
|
- **Linux and macOS** are supported
|
||||||
- **Partial support for Windows** - usage is not recommended
|
- **Partial support for Windows** - usage is not recommended
|
||||||
- iPhone4Down is focused on Linux only - macOS is untested, Windows is unsupported
|
- iPhone4Down is focused on Linux only - macOS and Windows are unsupported
|
||||||
- **Read the ["How to Use" wiki page](https://github.com/LukeZGD/iOS-OTA-Downgrader/wiki/How-to-Use) for a step-by-step tutorial**
|
- **Read the ["How to Use" wiki page](https://github.com/LukeZGD/iOS-OTA-Downgrader/wiki/How-to-Use) for a step-by-step tutorial**
|
||||||
- **Read the ["Troubleshooting" wiki page](https://github.com/LukeZGD/iOS-OTA-Downgrader/wiki/Troubleshooting) for tips, frequent questions, and troubleshooting**
|
- **Read the ["Troubleshooting" wiki page](https://github.com/LukeZGD/iOS-OTA-Downgrader/wiki/Troubleshooting) for tips, frequent questions, and troubleshooting**
|
||||||
|
|
||||||
|
@ -176,7 +176,7 @@ IPSW32() {
|
|||||||
echo "mount_hfs /dev/disk0s1s1 /mnt1; mount_hfs /dev/disk0s1s2 /mnt2" >> tmp/reboot.sh
|
echo "mount_hfs /dev/disk0s1s1 /mnt1; mount_hfs /dev/disk0s1s2 /mnt2" >> tmp/reboot.sh
|
||||||
echo "nvram -d boot-partition; nvram -d boot-ramdisk" >> tmp/reboot.sh
|
echo "nvram -d boot-partition; nvram -d boot-ramdisk" >> tmp/reboot.sh
|
||||||
echo "/usr/bin/haxx_overwrite -$HWModel" >> tmp/reboot.sh
|
echo "/usr/bin/haxx_overwrite -$HWModel" >> tmp/reboot.sh
|
||||||
#JBFiles=("../resources/jailbreak/sshdeb.tar") # uncomment to add openssh to custom ipsw
|
#JBFiles=("../resources/jailbreak/sshdeb.tar") # uncomment to add openssh to custom ipsw
|
||||||
#JailbreakFiles $JBURL/sshdeb.tar 0bffece0f8fd939c479159b57e923dd8c06191d3 # uncomment to add openssh to custom ipsw
|
#JailbreakFiles $JBURL/sshdeb.tar 0bffece0f8fd939c479159b57e923dd8c06191d3 # uncomment to add openssh to custom ipsw
|
||||||
JBFiles2=("bin.tar" "cydia.tar" "untether.tar")
|
JBFiles2=("bin.tar" "cydia.tar" "untether.tar")
|
||||||
JBSHA1=("98034227c68610f4c7dd48ca9e622314a1e649e7" "2e9e662afe890e50ccf06d05429ca12ce2c0a3a3" "f88ec9a1b3011c4065733249363e9850af5f57c8")
|
JBSHA1=("98034227c68610f4c7dd48ca9e622314a1e649e7" "2e9e662afe890e50ccf06d05429ca12ce2c0a3a3" "f88ec9a1b3011c4065733249363e9850af5f57c8")
|
||||||
@ -369,15 +369,15 @@ IPSW4() {
|
|||||||
mv -v applelogo-640x960.s5l8930x.img3 applelogo4-640x960.s5l8930x.img3
|
mv -v applelogo-640x960.s5l8930x.img3 applelogo4-640x960.s5l8930x.img3
|
||||||
echo "0000010: 34" | xxd -r - applelogo4-640x960.s5l8930x.img3
|
echo "0000010: 34" | xxd -r - applelogo4-640x960.s5l8930x.img3
|
||||||
echo "0000020: 34" | xxd -r - applelogo4-640x960.s5l8930x.img3
|
echo "0000020: 34" | xxd -r - applelogo4-640x960.s5l8930x.img3
|
||||||
if [[ $platform == macos ]]; then
|
if [[ $platform == "macos" ]]; then
|
||||||
plutil -extract 'APTicket' xml1 ../../../../../../shsh/$UniqueChipID-iPhone3,1-$OSVer.shsh -o 'apticket.plist'
|
plutil -extract 'APTicket' xml1 ../../../../../../$SHSH -o 'apticket.plist'
|
||||||
cat apticket.plist | sed -ne '/<data>/,/<\/data>/p' | sed -e "s/<data>//" | sed "s/<\/data>//" | awk '{printf "%s",$0}' | base64 --decode > apticket.der
|
cat apticket.plist | sed -ne '/<data>/,/<\/data>/p' | sed -e "s/<data>//" | sed "s/<\/data>//" | awk '{printf "%s",$0}' | base64 --decode > apticket.der
|
||||||
else
|
else
|
||||||
$xmlstarlet sel -t -m "/plist/dict/key[.='APTicket']" -v "following-sibling::data[1]" ../../../../../../shsh/$UniqueChipID-iPhone3,1-$OSVer.shsh > apticket.plist
|
$xmlstarlet sel -t -m "/plist/dict/key[.='APTicket']" -v "following-sibling::data[1]" ../../../../../../$SHSH > apticket.plist
|
||||||
sed -i -e 's/[ \t]*//' apticket.plist
|
sed -i -e 's/[ \t]*//' apticket.plist
|
||||||
cat apticket.plist | base64 --decode > apticket.der
|
cat apticket.plist | base64 --decode > apticket.der
|
||||||
fi
|
fi
|
||||||
env LD_LIBRARY_PATH=../../../../../../resources/lib ../../../../../../$cherry/bin/xpwntool apticket.der applelogoT-640x960.s5l8930x.img3 -t scab_template.img3
|
../../../../../$xpwntool apticket.der applelogoT-640x960.s5l8930x.img3 -t scab_template.img3
|
||||||
cd ../../..
|
cd ../../..
|
||||||
zip -r0 ../../../$IPSWCustom.ipsw Firmware/all_flash/all_flash.n90ap.production/manifest
|
zip -r0 ../../../$IPSWCustom.ipsw Firmware/all_flash/all_flash.n90ap.production/manifest
|
||||||
zip -r0 ../../../$IPSWCustom.ipsw Firmware/all_flash/all_flash.n90ap.production/applelogo4-640x960.s5l8930x.img3
|
zip -r0 ../../../$IPSWCustom.ipsw Firmware/all_flash/all_flash.n90ap.production/applelogo4-640x960.s5l8930x.img3
|
||||||
|
Loading…
Reference in New Issue
Block a user