From fe04b856788ccb395d43c1e26859b1efd13973c5 Mon Sep 17 00:00:00 2001 From: Adam Laurie Date: Thu, 23 Mar 2017 12:03:34 +0000 Subject: [PATCH] show EV1 auth PACK (tag/reader trust secret) --- utils/nfc-mfultralight.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/nfc-mfultralight.c b/utils/nfc-mfultralight.c index aaa3206..090f3b6 100644 --- a/utils/nfc-mfultralight.c +++ b/utils/nfc-mfultralight.c @@ -600,11 +600,14 @@ main(int argc, const char *argv[]) // EV1 login required 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)){ + printf("\n"); ERR("AUTH failed!\n"); exit(EXIT_FAILURE); } + else + printf("Success - PACK: %02x%02x\n", abtRx[0], abtRx[1]); } if (iAction == 1) {