mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-13 11:03:48 +00:00
show EV1 auth PACK (tag/reader trust secret)
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user