Skip to content

Instantly share code, notes, and snippets.

@seadog007
Created July 14, 2016 04:56
Show Gist options
  • Save seadog007/528a40a893454cc13096873557fd5f6a to your computer and use it in GitHub Desktop.
Save seadog007/528a40a893454cc13096873557fd5f6a to your computer and use it in GitHub Desktop.
AIS3 Pre-Exam Crypto 2
#!/bin/bash
for i in `seq 1 60`
do
res=`hashpump --data 'expire=1467328034' -k $i -a '&expire=1567327189' -s 35bacfa31f73d6403a99b524cbfc5b0c76193472 | sed 's/\\\x/%/g'`
auth=`echo $res | head -n1`
data=`echo $res | tail -n1`
curl -s "https://quiz.ais3.org:8014/?$data&auth=$auth" | grep 'id="flag"'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment