From c250fc1200a06ff3bb19b6d78ad42c50af209ef3 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 31 Dec 2023 15:26:24 +0100 Subject: [PATCH] hf mf info - now detects more versions of Fudan --- client/src/cmdhfmf.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/src/cmdhfmf.c b/client/src/cmdhfmf.c index c54edda7f..f878093df 100644 --- a/client/src/cmdhfmf.c +++ b/client/src/cmdhfmf.c @@ -8963,8 +8963,12 @@ static int CmdHF14AMfInfo(const char *Cmd) { PrintAndLogEx(SUCCESS, "Block 0.......... %s", sprint_hex(blockdata, MFBLOCK_SIZE)); } - if (memcmp(blockdata + 8, "\x62\x63\x64\x65\x66\x67\x68\x69", 8) == 0) { - PrintAndLogEx(SUCCESS, " indication of Fudan"); + if ( + (blockdata[8] == 0x03 && blockdata[15] == 0x90) || + (blockdata[9] == 0x02 && blockdata[14] == 0x1D) || + (memcmp(blockdata + 8, "\x62\x63\x64\x65\x66\x67\x68\x69", 8) == 0) + ) { + PrintAndLogEx(SUCCESS, " Fudan tag detected"); } } else {