mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-10-09 04:44:46 +08:00
new desfire ats, based on #PR138 in nfc-tools/libfreefare repository
This commit is contained in:
parent
a0efc7aa02
commit
d46f80e7ea
1 changed files with 16 additions and 5 deletions
|
@ -3615,7 +3615,11 @@ static int CmdHF14ADesInfo(const char *Cmd) {
|
|||
if (res == PM3_SUCCESS) {
|
||||
static const char STANDALONE_DESFIRE[] = { 0x75, 0x77, 0x81, 0x02};
|
||||
static const char JCOP_DESFIRE[] = { 0x75, 0xf7, 0xb1, 0x02 };
|
||||
static const char JCOP3_DESFIRE[] = { 0x78, 0x77, 0x71, 0x02 };
|
||||
|
||||
if (card.sak == 0x20) {
|
||||
|
||||
if (card.ats_len >= 5) {
|
||||
if (str_startswith((const char *)card.ats + 1, STANDALONE_DESFIRE)) {
|
||||
PrintAndLogEx(INFO, "Standalone DESFire");
|
||||
}
|
||||
|
@ -3623,6 +3627,13 @@ static int CmdHF14ADesInfo(const char *Cmd) {
|
|||
PrintAndLogEx(INFO, "JCOP DESFire");
|
||||
}
|
||||
}
|
||||
if (card.ats_len == 4) {
|
||||
if (str_startswith((const char *)card.ats + 1, JCOP3_DESFIRE)) {
|
||||
PrintAndLogEx(INFO, "JCOP3 DESFire");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Card Master key (CMK) 0x00 AID = 00 00 00 (card level)
|
||||
|
|
Loading…
Add table
Reference in a new issue