fix pwd presence in hf mfu dump for ULEV1/NTAG

This commit is contained in:
Philippe Teuwen 2022-01-23 19:56:14 +01:00
parent adde53dbfb
commit 977bb8786c

View file

@ -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