mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 14:13:42 -07:00
added some dda/fdda checks
This commit is contained in:
parent
3e351bf26a
commit
369ba6ac7f
1 changed files with 12 additions and 3 deletions
|
@ -697,12 +697,21 @@ int trDDA(bool decodeTLV, struct tlvdb *tlv) {
|
||||||
// 9f4c ICC Dynamic Number
|
// 9f4c ICC Dynamic Number
|
||||||
const struct tlv *idn_tlv = tlvdb_get(idn_db, 0x9f4c, NULL);
|
const struct tlv *idn_tlv = tlvdb_get(idn_db, 0x9f4c, NULL);
|
||||||
if(idn_tlv) {
|
if(idn_tlv) {
|
||||||
PrintAndLog("\nIDN (ICC Dynamic Number) [%zu] %s", idn_tlv->len, sprint_hex_inrow(idn_tlv->value, idn_tlv->len));
|
if(sdad_tlv) { // fDDA
|
||||||
PrintAndLog("DDA verified OK.");
|
PrintAndLog("\nATC (Application Transaction Counter) [%zu] %s", idn_tlv->len, sprint_hex_inrow(idn_tlv->value, idn_tlv->len));
|
||||||
|
PrintAndLog("fDDA (fast DDA) verified OK.");
|
||||||
|
} else { // DDA
|
||||||
|
PrintAndLog("\nIDN (ICC Dynamic Number) [%zu] %s", idn_tlv->len, sprint_hex_inrow(idn_tlv->value, idn_tlv->len));
|
||||||
|
PrintAndLog("DDA verified OK.");
|
||||||
|
}
|
||||||
tlvdb_add(tlv, idn_db);
|
tlvdb_add(tlv, idn_db);
|
||||||
tlvdb_free(idn_db);
|
tlvdb_free(idn_db);
|
||||||
} else {
|
} else {
|
||||||
PrintAndLog("\nERROR: DDA verify error");
|
if(sdad_tlv) { // fDDA
|
||||||
|
PrintAndLog("\nERROR: fDDA (fast DDA) verify error");
|
||||||
|
} else { // DDA
|
||||||
|
PrintAndLog("\nERROR: DDA verify error");
|
||||||
|
}
|
||||||
tlvdb_free(idn_db);
|
tlvdb_free(idn_db);
|
||||||
return 9;
|
return 9;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue