Skip to content

Instantly share code, notes, and snippets.

@lucianf
Forked from DavidGoldman/fetch_shsh2.sh
Last active December 19, 2016 08:52
Show Gist options
  • Save lucianf/99f2e3a4fbd14debf869eb23e95b35d5 to your computer and use it in GitHub Desktop.
Save lucianf/99f2e3a4fbd14debf869eb23e95b35d5 to your computer and use it in GitHub Desktop.
#!/bin/bash
MODEL="${1:-iPhoneX,Y}" #replace with your default model
ECID="${2:-ABCDEFGHIJKLM}" #replace with your default ecid
TSSCHECKER=~/Desktop/TSS/tsschecker_macos
NEW_DIR="$MODEL-$ECID"
mkdir $NEW_DIR
cd $NEW_DIR
APNONCES=(603be133ff0bdfa0f83f21e74191cf6770ea43bb 352dfad1713834f4f94c5ff3c3e5e99477347b95 42c88f5a7b75bc944c288a7215391dc9c73b6e9f 0dc448240696866b0cc1b2ac3eca4ce22af11cb3 9804d99e85bbafd4bb1135a1044773b4df9f1ba3)
for nonce in ${APNONCES[@]};
do
nonce_dir="NONCE_$nonce"
mkdir $nonce_dir
cd $nonce_dir
$TSSCHECKER -d $MODEL -e $ECID -i 10.2 -s --apnonce $nonce
$TSSCHECKER -d $MODEL -e $ECID -i 10.1.1 --buildid 14B150 -s --apnonce $nonce
$TSSCHECKER -d $MODEL -e $ECID -i 10.1.1 --buildid 14B100 -s --apnonce $nonce
$TSSCHECKER -d $MODEL -e $ECID -i 10.1 -s --apnonce $nonce
cd ..
done
mkdir NONCE_random
cd NONCE_random
$TSSCHECKER -d $MODEL -e $ECID -i 10.2 -s
$TSSCHECKER -d $MODEL -e $ECID -i 10.1.1 --buildid 14B150 -s
$TSSCHECKER -d $MODEL -e $ECID -i 10.1.1 --buildid 14B100 -s
$TSSCHECKER -d $MODEL -e $ECID -i 10.1 -s
cd ..
@lucianf
Copy link
Author

lucianf commented Dec 19, 2016

  • Added support for supplying Model and ECID as command line parameters (fetch_shsh2.sh model ecid) with default values in the script
  • Refer to tsschecker tool using name as extracted from tihmstar's GitHub release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment