mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-02-04 11:06:38 +01:00
install.sh 18.04 support
This commit is contained in:
parent
270d9b753a
commit
00a7364cba
@ -9,7 +9,7 @@
|
|||||||
- **MTerminal** installed on iOS device (10.x users)
|
- **MTerminal** installed on iOS device (10.x users)
|
||||||
- iOS 7 Pangu users should install [this](http://apt.saurik.com/debs/io.pangu.axe7_0.3_iphoneos-arm.deb)
|
- iOS 7 Pangu users should install [this](http://apt.saurik.com/debs/io.pangu.axe7_0.3_iphoneos-arm.deb)
|
||||||
- iOS 8 Pangu users should install [this](http://apt.saurik.com/debs/io.pangu.xuanyuansword8_0.5_iphoneos-arm.deb)
|
- iOS 8 Pangu users should install [this](http://apt.saurik.com/debs/io.pangu.xuanyuansword8_0.5_iphoneos-arm.deb)
|
||||||
- A Linux install or live USB (Tested on Lubuntu **16.04**, Manjaro, and Arch Linux) (macOS may also work with dependencies installed)
|
- A Linux install or live USB (Tested on Lubuntu 16.04, 18.04, Manjaro, and Arch Linux) (macOS may also work with dependencies installed)
|
||||||
- For VirtualBox users, add a New USB Filter in the VM settings
|
- For VirtualBox users, add a New USB Filter in the VM settings
|
||||||
- For VMWare users, enable Autoconnect USB Devices
|
- For VMWare users, enable Autoconnect USB Devices
|
||||||
- The computer and device must be on the same network (for SSH)
|
- The computer and device must be on the same network (for SSH)
|
||||||
|
@ -112,9 +112,9 @@ function SaveOTABlobs {
|
|||||||
curl -L -# "https://github.com/tihmstar/tsschecker/releases/download/v212/tsschecker_v212_mac_win_linux.zip" -o "tmp/tsschecker.zip"
|
curl -L -# "https://github.com/tihmstar/tsschecker/releases/download/v212/tsschecker_v212_mac_win_linux.zip" -o "tmp/tsschecker.zip"
|
||||||
echo "Extracting tsschecker..."
|
echo "Extracting tsschecker..."
|
||||||
unzip -j tmp/tsschecker.zip tsschecker_$platform -d "tools/"
|
unzip -j tmp/tsschecker.zip tsschecker_$platform -d "tools/"
|
||||||
chmod +x tools/tsschecker_$platform
|
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
chmod +x tools/tsschecker_$platform
|
||||||
if [ ! -e tools/tsschecker_$platform ]
|
if [ ! -e tools/tsschecker_$platform ]
|
||||||
then
|
then
|
||||||
echo "Download/extract tsschecker failed. Please run the script again"
|
echo "Download/extract tsschecker failed. Please run the script again"
|
||||||
@ -180,9 +180,9 @@ function Downgrade {
|
|||||||
curl -L -# "http://api.tihmstar.net/builds/futurerestore/futurerestore-latest.zip" -o "tmp/futurerestore.zip"
|
curl -L -# "http://api.tihmstar.net/builds/futurerestore/futurerestore-latest.zip" -o "tmp/futurerestore.zip"
|
||||||
echo "Extracting futurerestore..."
|
echo "Extracting futurerestore..."
|
||||||
unzip -j tmp/futurerestore.zip futurerestore_$platform -d "tools/"
|
unzip -j tmp/futurerestore.zip futurerestore_$platform -d "tools/"
|
||||||
chmod +x tools/futurerestore_$platform
|
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
chmod +x tools/futurerestore_$platform
|
||||||
if [ ! -e tools/futurerestore_$platform ]
|
if [ ! -e tools/futurerestore_$platform ]
|
||||||
then
|
then
|
||||||
echo "Download/extract futurerestore failed. Please run the script again"
|
echo "Download/extract futurerestore failed. Please run the script again"
|
||||||
@ -252,6 +252,7 @@ function pwnDFU {
|
|||||||
echo "Decrypting iBSS..."
|
echo "Decrypting iBSS..."
|
||||||
echo "IV = ${!iv}"
|
echo "IV = ${!iv}"
|
||||||
echo "Key = ${!key}"
|
echo "Key = ${!key}"
|
||||||
|
chmod +x tools/xpwntool_$platform
|
||||||
tools/xpwntool_$platform "tmp/${iBSS}.dfu" tmp/iBSS.dec -k ${!key} -iv ${!iv} -decrypt
|
tools/xpwntool_$platform "tmp/${iBSS}.dfu" tmp/iBSS.dec -k ${!key} -iv ${!iv} -decrypt
|
||||||
dd bs=64 skip=1 if=tmp/iBSS.dec of=tmp/iBSS.dec2
|
dd bs=64 skip=1 if=tmp/iBSS.dec of=tmp/iBSS.dec2
|
||||||
echo
|
echo
|
||||||
@ -304,7 +305,7 @@ function pwnDFU {
|
|||||||
echo
|
echo
|
||||||
echo "Entering pwnDFU mode... (press Ctrl+C after entering root password to continue)"
|
echo "Entering pwnDFU mode... (press Ctrl+C after entering root password to continue)"
|
||||||
echo "Try using tools like kDFUApp if the script fails to put device to pwnDFU (like on iPad2,3)"
|
echo "Try using tools like kDFUApp if the script fails to put device to pwnDFU (like on iPad2,3)"
|
||||||
ssh root@$IPAddress "chmod 0755 /$kloader && /$kloader /pwnediBSS"
|
ssh root@$IPAddress "chmod 755 /$kloader && /$kloader /pwnediBSS"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
25
install.sh
25
install.sh
@ -5,6 +5,26 @@ function ubuntu {
|
|||||||
sudo apt -y install bsdiff curl ifuse libimobiledevice-utils libzip4 usbmuxd
|
sudo apt -y install bsdiff curl ifuse libimobiledevice-utils libzip4 usbmuxd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function ubuntu1804 {
|
||||||
|
sudo apt -y install binutils
|
||||||
|
mkdir tmp
|
||||||
|
cd tmp
|
||||||
|
apt download -o=dir::cache=. libcurl3
|
||||||
|
ar x libcurl3* data.tar.xz
|
||||||
|
tar xf data.tar.xz
|
||||||
|
sudo cp -L usr/lib/x86_64-linux-gnu/libcurl.so.4 /usr/lib/libcurl.so.3
|
||||||
|
if [ $(uname -m) == 'x86_64' ]
|
||||||
|
then
|
||||||
|
mtype='amd64'
|
||||||
|
else
|
||||||
|
mtype='i386'
|
||||||
|
fi
|
||||||
|
curl -L -# http://mirrors.edge.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1.1_${mtype}.deb -o libpng12.deb
|
||||||
|
sudo dpkg -i libpng12.deb
|
||||||
|
cd ..
|
||||||
|
rm -rf tmp
|
||||||
|
}
|
||||||
|
|
||||||
function arch {
|
function arch {
|
||||||
sudo pacman -Sy --noconfirm bsdiff curl ifuse libcurl-compat libimobiledevice libpng12 libzip openssh openssl-1.0 usbmuxd usbutils
|
sudo pacman -Sy --noconfirm bsdiff curl ifuse libcurl-compat libimobiledevice libpng12 libzip openssh openssl-1.0 usbmuxd usbutils
|
||||||
sudo ln -sf /usr/lib/libzip.so.5 /usr/lib/libzip.so.4
|
sudo ln -sf /usr/lib/libzip.so.5 /usr/lib/libzip.so.4
|
||||||
@ -15,9 +35,12 @@ echo "******* 32bit-OTA-Downgrader *******"
|
|||||||
echo " - by LukeZGD "
|
echo " - by LukeZGD "
|
||||||
echo
|
echo
|
||||||
echo "Install dependencies"
|
echo "Install dependencies"
|
||||||
select opt in "Ubuntu 16.04" "Arch Linux"; do
|
select opt in "Ubuntu 16.04" "Ubuntu 18.04" "Arch Linux"; do
|
||||||
case $opt in
|
case $opt in
|
||||||
"Ubuntu 16.04" ) ubuntu; break;;
|
"Ubuntu 16.04" ) ubuntu; break;;
|
||||||
|
"Ubuntu 18.04" ) ubuntu; ubuntu1804; break;;
|
||||||
"Arch Linux" ) arch; break;;
|
"Arch Linux" ) arch; break;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
echo
|
||||||
|
echo "Install script done"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user