From 42063994e9285fcca1b979b51ad091426a602449 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 7 Apr 2020 09:23:34 +0200 Subject: [PATCH] add: hf mfdes list --- client/cmdhfmfdes.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/cmdhfmfdes.c b/client/cmdhfmfdes.c index 24a48398e..46e22f07d 100644 --- a/client/cmdhfmfdes.c +++ b/client/cmdhfmfdes.c @@ -21,6 +21,7 @@ #include "crypto/libpcrypto.h" #include "protocols.h" #include "mifare.h" // desfire raw command options +#include "cmdtrace.h" uint8_t key_zero_data[16] = { 0x00 }; uint8_t key_ones_data[16] = { 0x01 }; @@ -890,9 +891,15 @@ static int CmdHF14ADesAuth(const char *Cmd) { return PM3_SUCCESS; } +static int CmdHF14ADesList(const char *Cmd) { + (void)Cmd; // Cmd is not used so far + return CmdTraceList("des"); +} + static command_t CommandTable[] = { {"help", CmdHelp, AlwaysAvailable, "This help"}, {"info", CmdHF14ADesInfo, IfPm3Iso14443a, "Tag information"}, + {"list", CmdHF14ADesList, AlwaysAvailable, "List DESFire (ISO 14443A) history"}, {"enum", CmdHF14ADesEnumApplications, IfPm3Iso14443a, "Tries enumerate all applications"}, {"auth", CmdHF14ADesAuth, IfPm3Iso14443a, "Tries a MIFARE DesFire Authentication"}, // {"rdbl", CmdHF14ADesRb, IfPm3Iso14443a, "Read MIFARE DesFire block"},