mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-09-22 08:16:16 +08:00
add check if isoid can be in the command
This commit is contained in:
parent
efa91d4b00
commit
eeb20a5dea
|
@ -1427,12 +1427,14 @@ void DesfirePrintCreateFileSettings(uint8_t filetype, uint8_t *data, size_t len)
|
||||||
PrintAndLogEx(SUCCESS, "File type : %s", ftyperec->text);
|
PrintAndLogEx(SUCCESS, "File type : %s", ftyperec->text);
|
||||||
PrintAndLogEx(SUCCESS, "File number : 0x%02x (%d)", data[0], data[0]);
|
PrintAndLogEx(SUCCESS, "File number : 0x%02x (%d)", data[0], data[0]);
|
||||||
size_t xlen = 1;
|
size_t xlen = 1;
|
||||||
|
if (ftyperec->mayHaveISOfid) {
|
||||||
if (isoidpresent) {
|
if (isoidpresent) {
|
||||||
PrintAndLogEx(SUCCESS, "File ISO number : 0x%04x", MemBeToUint2byte(&data[xlen]));
|
PrintAndLogEx(SUCCESS, "File ISO number : 0x%04x", MemBeToUint2byte(&data[xlen]));
|
||||||
xlen += 2;
|
xlen += 2;
|
||||||
} else {
|
} else {
|
||||||
PrintAndLogEx(SUCCESS, "File ISO number : n/a");
|
PrintAndLogEx(SUCCESS, "File ISO number : n/a");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
PrintAndLogEx(SUCCESS, "File comm mode : %s", GetDesfireCommunicationMode(data[xlen] & 0x03));
|
PrintAndLogEx(SUCCESS, "File comm mode : %s", GetDesfireCommunicationMode(data[xlen] & 0x03));
|
||||||
bool addaccess = ((data[xlen] & 0x80) != 0);
|
bool addaccess = ((data[xlen] & 0x80) != 0);
|
||||||
|
|
Loading…
Reference in a new issue