Skip to content

Commit

Permalink
🚑 Hotfixes
Browse files Browse the repository at this point in the history
Fixed key grabber, futurerestore, and boot script
  • Loading branch information
rastiqdev committed Dec 12, 2023
1 parent 03ee303 commit e567d32
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
Binary file modified bin/futurerestore
Binary file not shown.
30 changes: 15 additions & 15 deletions boot.sh
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
#!/usr/bin/env bash

pwnd=$(irecovery -q | grep -c "PWND")
pwnd=$(./bin/irecovery -q | grep -c "PWND")
if [ $pwnd = 0 ]; then
echo "Ensure device is in pwned DFU mode with signature checks removed."
exit
fi
sleep 1
cpid=$(irecovery -q | grep "CPID" | sed "s/CPID: //")
cpid=$(./bin/irecovery -q | grep "CPID" | sed "s/CPID: //")

irecovery -f boot/iBSS.img4
./bin/irecovery -f boot/iBSS.img4
sleep 2
# send iBSS again.
irecovery -f boot/iBSS.img4
./bin/irecovery -f boot/iBSS.img4
sleep 3
irecovery -f boot/iBEC.img4
./bin/irecovery -f boot/iBEC.img4
sleep 2

if [[ "$cpid" == *"0x80"* ]]; then
irecovery -f boot/iBEC.img4
./bin/irecovery -f boot/iBEC.img4
sleep 2
irecovery -c "go"
./bin/irecovery -c "go"
sleep 5
fi

irecovery -f boot/bootlogo.img4
./bin/irecovery -f boot/bootlogo.img4
sleep 1
irecovery -c "setpicture 0x1"
./bin/irecovery -c "setpicture 0x1"
sleep 1
irecovery -f boot/devicetree.img4
./bin/irecovery -f boot/devicetree.img4
sleep 1
irecovery -c "devicetree"
./bin/irecovery -c "devicetree"
sleep 1
irecovery -f boot/trustcache.img4
./bin/irecovery -f boot/trustcache.img4
sleep 1
irecovery -c "firmware"
./bin/irecovery -c "firmware"
sleep 1
irecovery -f boot/krnlboot.img4
./bin/irecovery -f boot/krnlboot.img4
sleep 1
irecovery -c "bootx"
./bin/irecovery -c "bootx"
4 changes: 2 additions & 2 deletions utils/api.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import wiki
import utils.wiki
from remotezip import RemoteZip

def get_keys(identifier, board, buildid):
try:
f = wiki.get_firmware_keys(identifier, board, buildid)
f = utils.wiki.get_firmware_keys(identifier, board, buildid)
except Exception:
if input(f"[?] Keys not found for this IPSW ({buildid}) for the board {board}. Do you want to enter keys manually? (y/n) ") == "y":
iBSS_iv = input(" - Enter the iBSS IV: ")
Expand Down

0 comments on commit e567d32

Please sign in to comment.