From 3f26e3c5572daf646437daf0c3310cd5fa22e70d Mon Sep 17 00:00:00 2001 From: Costantino Beretta Date: Fri, 25 Sep 2020 22:00:20 +0200 Subject: [PATCH] Removed an status check that was blocking command 'hf 14b dump', added SwapEndian64 to generated filename to be consistent with UID --- client/src/cmdhf14b.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/src/cmdhf14b.c b/client/src/cmdhf14b.c index 811fcb195..a4a165e21 100644 --- a/client/src/cmdhf14b.c +++ b/client/src/cmdhf14b.c @@ -880,11 +880,11 @@ static int CmdHF14BDump(const char *Cmd) { if (fileNameLen < 1) { PrintAndLogEx(INFO, "Using UID as filename"); fptr += sprintf(fptr, "hf-14b-"); - FillFileNameByUID(fptr, card.uid, "-dump", card.uidlen); + FillFileNameByUID(fptr, SwapEndian64(card.uid, 8, 8), "-dump", card.uidlen); } // detect blocksize from card :) - PrintAndLogEx(NORMAL, "Reading memory from tag UID %s", sprint_hex(card.uid, card.uidlen)); + PrintAndLogEx(NORMAL, "Reading memory from tag UID %s", sprint_hex(SwapEndian64(card.uid, 8, 8), card.uidlen)); uint8_t data[cardsize]; memset(data, 0, sizeof(data)); @@ -915,10 +915,10 @@ static int CmdHF14BDump(const char *Cmd) { if (WaitForResponseTimeout(CMD_HF_ISO14443B_COMMAND, &resp, 2000)) { - uint8_t status = resp.oldarg[0] & 0xFF; - if (status > 0) { - continue; - } + //uint8_t status = resp.oldarg[0] & 0xFF; + //if (status > 0) { + // continue; + //} uint16_t len = (resp.oldarg[1] & 0xFFFF); recv = resp.data.asBytes;