mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-01-11 15:59:08 +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)
|
||||
- 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)
|
||||
- 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 VMWare users, enable Autoconnect USB Devices
|
||||
- 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"
|
||||
echo "Extracting tsschecker..."
|
||||
unzip -j tmp/tsschecker.zip tsschecker_$platform -d "tools/"
|
||||
chmod +x tools/tsschecker_$platform
|
||||
echo
|
||||
fi
|
||||
chmod +x tools/tsschecker_$platform
|
||||
if [ ! -e tools/tsschecker_$platform ]
|
||||
then
|
||||
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"
|
||||
echo "Extracting futurerestore..."
|
||||
unzip -j tmp/futurerestore.zip futurerestore_$platform -d "tools/"
|
||||
chmod +x tools/futurerestore_$platform
|
||||
echo
|
||||
fi
|
||||
chmod +x tools/futurerestore_$platform
|
||||
if [ ! -e tools/futurerestore_$platform ]
|
||||
then
|
||||
echo "Download/extract futurerestore failed. Please run the script again"
|
||||
@ -252,6 +252,7 @@ function pwnDFU {
|
||||
echo "Decrypting iBSS..."
|
||||
echo "IV = ${!iv}"
|
||||
echo "Key = ${!key}"
|
||||
chmod +x tools/xpwntool_$platform
|
||||
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
|
||||
echo
|
||||
@ -304,7 +305,7 @@ function pwnDFU {
|
||||
echo
|
||||
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)"
|
||||
ssh root@$IPAddress "chmod 0755 /$kloader && /$kloader /pwnediBSS"
|
||||
ssh root@$IPAddress "chmod 755 /$kloader && /$kloader /pwnediBSS"
|
||||
echo
|
||||
fi
|
||||
|
||||
|
25
install.sh
25
install.sh
@ -5,6 +5,26 @@ function ubuntu {
|
||||
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 {
|
||||
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
|
||||
@ -15,9 +35,12 @@ echo "******* 32bit-OTA-Downgrader *******"
|
||||
echo " - by LukeZGD "
|
||||
echo
|
||||
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
|
||||
"Ubuntu 16.04" ) ubuntu; break;;
|
||||
"Ubuntu 18.04" ) ubuntu; ubuntu1804; break;;
|
||||
"Arch Linux" ) arch; break;;
|
||||
esac
|
||||
done
|
||||
echo
|
||||
echo "Install script done"
|
||||
|
Loading…
x
Reference in New Issue
Block a user