added more keys (@equipter)
[RRG-proxmark3.git] / tools / hitag2crack / crack2 / runtest.sh
blob2d9256d94e7e8b784a8a39a6df6fa70e404cb4a7
1 #!/usr/bin/env bash
3 if [ "$1" == "" ]; then
4 echo "runtest.sh testfile"
5 echo "testfile name should be of the form:"
6 echo "keystream.key-KEY.uid-UID.nR-NR"
7 exit 1
8 fi
10 filename=$1
12 UIDV=`echo $1 | cut -d'-' -f3 | cut -d'.' -f1`
13 NR=`echo $1 | cut -d'-' -f4`
14 KEYV=`echo $1 | cut -d'-' -f2 | cut -d'.' -f1`
16 echo "********************"
17 echo "FILENAME = $filename"
18 echo "UID = $UIDV"
19 echo "NR = $NR"
20 echo "Expected KEY = $KEYV"
22 ./ht2crack2search $filename $UIDV $NR
23 echo "Expected KEY = $KEYV"
24 echo "********************"
25 echo ""