From 977bb8786cb34d658dff8c2edb0f867691bf0640 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sun, 23 Jan 2022 19:56:14 +0100 Subject: [PATCH] fix pwd presence in hf mfu dump for ULEV1/NTAG --- client/src/cmdhfmfu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/cmdhfmfu.c b/client/src/cmdhfmfu.c index de5e78ba6..105ff4da9 100644 --- a/client/src/cmdhfmfu.c +++ b/client/src/cmdhfmfu.c @@ -2373,7 +2373,7 @@ static int CmdHF14AMfUDump(const char *Cmd) { // format and add keys to block dump output // only add keys if not partial read, and complete pages read - if (!is_partial && pages == card_mem_size && has_auth_key) { + if (!is_partial && pages == card_mem_size && (has_auth_key || has_pwd)) { // if we didn't swapendian before - do it now for the sprint_hex call // NOTE: default entry is bigendian (unless swapped), sprint_hex outputs little endian // need to swap to keep it the same