show EV1 auth PACK (tag/reader trust secret)

This commit is contained in:
Adam Laurie 2017-03-23 12:03:34 +00:00
parent 3f8bb59f1e
commit fe04b85678

View file

@ -600,11 +600,14 @@ main(int argc, const char *argv[])
// EV1 login required // EV1 login required
if(bPWD){ if(bPWD){
printf("Authing with PWD: %02x%02x%02x%02x\n", iPWD[0], iPWD[1], iPWD[2], iPWD[3]); printf("Authing with PWD: %02x%02x%02x%02x ", iPWD[0], iPWD[1], iPWD[2], iPWD[3]);
if(!ev1_pwd_auth(iPWD)){ if(!ev1_pwd_auth(iPWD)){
printf("\n");
ERR("AUTH failed!\n"); ERR("AUTH failed!\n");
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
else
printf("Success - PACK: %02x%02x\n", abtRx[0], abtRx[1]);
} }
if (iAction == 1) { if (iAction == 1) {