Skip to content

Instantly share code, notes, and snippets.

@r-plus
Created December 20, 2016 16:00
Show Gist options
  • Select an option

  • Save r-plus/10298c6076650ab41c762467315fb119 to your computer and use it in GitHub Desktop.

Select an option

Save r-plus/10298c6076650ab41c762467315fb119 to your computer and use it in GitHub Desktop.
Save shsh2 with nonce and without nonce.
ecid=XXXXXXXXXX
model=iPhone9,1
function saveWithNonce() {
if [ "$#" -eq 3 ]; then
./tsschecker_macos -d $model -e $ecid -i $1 --buildid $3 -s --apnonce $2
else
./tsschecker_macos -d $model -e $ecid -i $1 -s --apnonce $2
fi
filename=$(ls ${ecid}*)
mv $filename ${2}_${filename}
}
function save() {
if [ "$#" -eq 2 ]; then
./tsschecker_macos -d $model -e $ecid -i $1 --buildid $2 -s
else
./tsschecker_macos -d $model -e $ecid -i $1 -s
fi
}
for nonce in 603be133ff0bdfa0f83f21e74191cf6770ea43bb 352dfad1713834f4f94c5ff3c3e5e99477347b95 42c88f5a7b75bc944c288a7215391dc9c73b6e9f 0dc448240696866b0cc1b2ac3eca4ce22af11cb3 9804d99e85bbafd4bb1135a1044773b4df9f1ba3; do
for ios in 10.1 10.2; do
saveWithNonce $ios $nonce
done
saveWithNonce 10.1.1 $nonce 14B150
saveWithNonce 10.1.1 $nonce 14B100
done
for ios in 10.1 10.2; do
save $ios
done
save 10.1.1 14B150
save 10.1.1 14B100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment