mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-01-13 08:49:10 +01:00
Update downgrade.sh
This commit is contained in:
parent
ffc3926b50
commit
a84413c207
@ -92,10 +92,10 @@ DowngradeOther() {
|
|||||||
[[ ! -s "$SHSH" ]] && Error "No SHSH selected, or SHSH file not found."
|
[[ ! -s "$SHSH" ]] && Error "No SHSH selected, or SHSH file not found."
|
||||||
Log "Selected SHSH file: $SHSH"
|
Log "Selected SHSH file: $SHSH"
|
||||||
|
|
||||||
|
unzip -o -j "$IPSW.ipsw" Restore.plist -d tmp
|
||||||
|
BuildVer=$(cat tmp/Restore.plist | grep -i ProductBuildVersion -A 1 | grep -oPm1 "(?<=<string>)[^<]+")
|
||||||
if [[ ! -e resources/firmware/$ProductType/$BuildVer/index.html ]]; then
|
if [[ ! -e resources/firmware/$ProductType/$BuildVer/index.html ]]; then
|
||||||
Log "Getting firmware keys for $ProductType"
|
Log "Getting firmware keys for $ProductType-$BuildVer"
|
||||||
unzip -o -j "$IPSW.ipsw" Restore.plist -d tmp
|
|
||||||
BuildVer=$(cat tmp/Restore.plist | grep -i ProductBuildVersion -A 1 | grep -oPm1 "(?<=<string>)[^<]+")
|
|
||||||
mkdir -p resources/firmware/$ProductType/$BuildVer 2>/dev/null
|
mkdir -p resources/firmware/$ProductType/$BuildVer 2>/dev/null
|
||||||
curl -L https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/raw/master/$ProductType/$BuildVer/index.html -o tmp/index.html
|
curl -L https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/raw/master/$ProductType/$BuildVer/index.html -o tmp/index.html
|
||||||
mv tmp/index.html resources/firmware/$ProductType/$BuildVer
|
mv tmp/index.html resources/firmware/$ProductType/$BuildVer
|
||||||
@ -130,6 +130,7 @@ DowngradeOTAWin() {
|
|||||||
fi
|
fi
|
||||||
IPSWFindVerify
|
IPSWFindVerify
|
||||||
if [[ $DeviceProc == 7 ]]; then
|
if [[ $DeviceProc == 7 ]]; then
|
||||||
|
IPSWA7=1
|
||||||
IPSWSetExtract
|
IPSWSetExtract
|
||||||
IPSW64
|
IPSW64
|
||||||
EnterPwnREC
|
EnterPwnREC
|
||||||
|
Loading…
x
Reference in New Issue
Block a user