Skip to content

Instantly share code, notes, and snippets.

@DavidGoldman
Created December 16, 2016 23:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save DavidGoldman/34e7145c3fec81b6cb222d57a1b5894d to your computer and use it in GitHub Desktop.
Save DavidGoldman/34e7145c3fec81b6cb222d57a1b5894d to your computer and use it in GitHub Desktop.
#!/bin/bash
MODEL="YOUR MODEL"
ECID="YOUR ECID"
TSSCHECKER=~/Desktop/TSS/tsschecker
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 ..
@2Klasic
Copy link

2Klasic commented Dec 17, 2016

on the bottom of the script you should have it either automatically open where the blobs are saved something open ~/ or move them to a secure location mv ~/blobs ~/Desktop

@jbmanwell
Copy link

Due to some initial json issues, I had to toss --nocache on each of the calls to TSSCHECKER before this would work. Thanks

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