mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-22 15:16:19 +08:00
fix travis
This commit is contained in:
parent
3b01177e5f
commit
a0f0345169
1 changed files with 3 additions and 5 deletions
|
@ -354,17 +354,16 @@ int saveFileJSON(const char *preferredName, JSONFileType ftype, uint8_t *data, s
|
|||
case jsfT5555:
|
||||
case jsfMfPlusKeys:
|
||||
JsonSaveStr(root, "FileType", "mfp");
|
||||
|
||||
JsonSaveBufAsHexCompact(root, "$.Card.UID", &data[0], 7);
|
||||
JsonSaveBufAsHexCompact(root, "$.Card.SAK", &data[10], 1);
|
||||
JsonSaveBufAsHexCompact(root, "$.Card.ATQA", &data[11], 2);
|
||||
uint8_t atslen = data[13];
|
||||
if (atslen > 0)
|
||||
JsonSaveBufAsHexCompact(root, "$.Card.ATS", &data[14], atslen);
|
||||
|
||||
uint8_t vdata[2][64][16 + 1] = {0};
|
||||
|
||||
uint8_t vdata[2][64][16 + 1] = {{{0}}};
|
||||
memcpy(vdata, &data[14 + atslen], 2 * 64 * 17);
|
||||
|
||||
|
||||
for (size_t i = 0; i < datalen; i++) {
|
||||
char path[PATH_MAX_LENGTH] = {0};
|
||||
|
||||
|
@ -379,7 +378,6 @@ int saveFileJSON(const char *preferredName, JSONFileType ftype, uint8_t *data, s
|
|||
sprintf(path, "$.SectorKeys.%d.KeyB", mfSectorNum(i));
|
||||
JsonSaveBufAsHexCompact(root, path, &vdata[1][i][1], 16);
|
||||
}
|
||||
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue