mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-27 18:34:14 +01:00
Add pzb bins, fix retry and stuff
This commit is contained in:
parent
222323414f
commit
a53d04db73
BIN
resources/tools/pzb_linux
Normal file
BIN
resources/tools/pzb_linux
Normal file
Binary file not shown.
BIN
resources/tools/pzb_macos
Normal file
BIN
resources/tools/pzb_macos
Normal file
Binary file not shown.
19
restore.sh
19
restore.sh
@ -239,13 +239,9 @@ function SaveOTABlobs {
|
|||||||
|
|
||||||
function kDFU {
|
function kDFU {
|
||||||
if [ ! -e tmp/$iBSS.dfu ]; then
|
if [ ! -e tmp/$iBSS.dfu ]; then
|
||||||
if [ ! $(which pzb) ]; then
|
|
||||||
echo "[Error] pzb not found! Depends on partialZipBrowser: https://github.com/tihmstar/partialZipBrowser"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
echo "[Log] Downloading iBSS..."
|
echo "[Log] Downloading iBSS..."
|
||||||
dllink=$(curl -I -Ls -o /dev/null -w %{url_effective} https://api.ipsw.me/v4/ipsw/download/${ProductType}/12H321)
|
dllink=$(curl -I -Ls -o /dev/null -w %{url_effective} https://api.ipsw.me/v4/ipsw/download/${ProductType}/12H321)
|
||||||
pzb -g Firmware/dfu/${iBSS}.dfu -o $iBSS.dfu $dllink
|
resources/tools/pzb_$platform -g Firmware/dfu/${iBSS}.dfu -o $iBSS.dfu $dllink
|
||||||
mv $iBSS.dfu tmp/
|
mv $iBSS.dfu tmp/
|
||||||
fi
|
fi
|
||||||
echo "[Log] Decrypting iBSS..."
|
echo "[Log] Decrypting iBSS..."
|
||||||
@ -288,7 +284,7 @@ function kDFU {
|
|||||||
sudo umount mount
|
sudo umount mount
|
||||||
#rm -r mount
|
#rm -r mount
|
||||||
echo
|
echo
|
||||||
echo "Open MTerminal and run these commands:"
|
echo "[Log] Open MTerminal and run these commands:"
|
||||||
echo
|
echo
|
||||||
echo '$ su'
|
echo '$ su'
|
||||||
echo "(enter root password, default is 'alpine')"
|
echo "(enter root password, default is 'alpine')"
|
||||||
@ -298,9 +294,8 @@ function kDFU {
|
|||||||
else
|
else
|
||||||
echo "Make sure SSH is installed and working on the device!"
|
echo "Make sure SSH is installed and working on the device!"
|
||||||
echo "Please enter Wi-Fi IP address of device for SSH connection"
|
echo "Please enter Wi-Fi IP address of device for SSH connection"
|
||||||
read -p "IP Address: " IPAddress
|
read -p "[Input] IP Address: " IPAddress
|
||||||
echo "Will now connect to device using SSH"
|
echo "[Log] Will now connect to device using SSH, please enter root password when prompted (default is 'alpine')"
|
||||||
echo "Please enter root password when prompted (default is 'alpine')"
|
|
||||||
echo
|
echo
|
||||||
echo "[Input] Copying stuff to device..."
|
echo "[Input] Copying stuff to device..."
|
||||||
scp resources/tools/$kloader tmp/pwnediBSS root@$IPAddress:/
|
scp resources/tools/$kloader tmp/pwnediBSS root@$IPAddress:/
|
||||||
@ -352,7 +347,7 @@ function Downgrade {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[Log] Extracting IPSW..."
|
echo "[Log] Extracting IPSW..."
|
||||||
unzip -q "$IPSW.ipsw" -d $IPSW/
|
unzip -q "$IPSW.ipsw" -d "$IPSW/"
|
||||||
|
|
||||||
echo "[Log] Preparing for futurerestore (starting local server)..."
|
echo "[Log] Preparing for futurerestore (starting local server)..."
|
||||||
cd resources
|
cd resources
|
||||||
@ -375,12 +370,12 @@ function Downgrade {
|
|||||||
echo "futurerestore done!"
|
echo "futurerestore done!"
|
||||||
echo "If futurerestore failed to download baseband or for some reason, you can choose to retry"
|
echo "If futurerestore failed to download baseband or for some reason, you can choose to retry"
|
||||||
read -p "[Input] Retry? (y/N) " Retry
|
read -p "[Input] Retry? (y/N) " Retry
|
||||||
if [[ Retry != y ]] && [[ Retry != Y ]]; then
|
if [[ $Retry != y ]] && [[ $Retry != Y ]]; then
|
||||||
ScriptDone=1
|
ScriptDone=1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "[Log] Stopping local server..."
|
echo "[Log] Stopping local server (PID $pythonPID)..."
|
||||||
sudo kill $pythonPID
|
sudo kill $pythonPID
|
||||||
echo "[Log] Downgrade script done!"
|
echo "[Log] Downgrade script done!"
|
||||||
exit
|
exit
|
||||||
|
Loading…
Reference in New Issue
Block a user