mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
chg: in preparation for EV3
This commit is contained in:
parent
3519dea0cf
commit
85c4f63015
1 changed files with 9 additions and 2 deletions
|
@ -32,6 +32,7 @@ typedef enum {
|
|||
MF3ICD40,
|
||||
EV1,
|
||||
EV2,
|
||||
EV3,
|
||||
LIGHT,
|
||||
} desfire_cardtype_t;
|
||||
|
||||
|
@ -70,6 +71,8 @@ static desfire_cardtype_t getCardType(uint8_t major, uint8_t minor) {
|
|||
return EV1;
|
||||
else if (major == 0x12 && minor == 0x00)
|
||||
return EV2;
|
||||
// else if (major == 0x13 && minor == 0x00)
|
||||
// return EV3;
|
||||
else if (major == 0x30 && minor == 0x00)
|
||||
return LIGHT;
|
||||
else
|
||||
|
@ -432,9 +435,11 @@ static int CmdHF14ADesInfo(const char *Cmd) {
|
|||
if (major == 1 && minor == 3)
|
||||
PrintAndLogEx(INFO, "\t1.3 - DESFire Ev1, Support extended APDU commands");
|
||||
if (major == 1 && minor == 4)
|
||||
PrintAndLogEx(INFO, "\t1.4 - DESFire Ev1, N/A information about this version. report to iceman!");
|
||||
PrintAndLogEx(INFO, "\t1.4 - DESFire Ev1, N/A (report to iceman!)");
|
||||
if (major == 2 && minor == 0)
|
||||
PrintAndLogEx(INFO, "\t2.0 - DESFire Ev2, Originality check, proximity check");
|
||||
// if (major == 3 && minor == 0)
|
||||
// PrintAndLogEx(INFO, "\t3.0 - DESFire Ev3, Originality check, proximity check, badass");
|
||||
|
||||
if (major == 0 && minor == 2)
|
||||
PrintAndLogEx(INFO, "\t0.2 - DESFire Light, Originality check, ");
|
||||
|
@ -526,6 +531,8 @@ char *getVersionStr(uint8_t major, uint8_t minor) {
|
|||
sprintf(retStr, "%x.%x ( " _YELLOW_("DESFire EV1") ")", major, minor);
|
||||
else if (major == 0x12 && minor == 0x00)
|
||||
sprintf(retStr, "%x.%x ( " _YELLOW_("DESFire EV2") ")", major, minor);
|
||||
// else if (major == 0x13 && minor == 0x00)
|
||||
// sprintf(retStr, "%x.%x ( " _YELLOW_("DESFire EV3") ")", major, minor);
|
||||
else if (major == 0x30 && minor == 0x00)
|
||||
sprintf(retStr, "%x.%x ( " _YELLOW_("DESFire Light") ")", major, minor);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue