From 5e9e6a9ad84e568a7c9c1063f81cb76e55306e84 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 6 Apr 2020 06:17:05 +0200 Subject: [PATCH] prepp hookup for cryptorf cmds --- client/Makefile | 1 + client/cmdhf.c | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/client/Makefile b/client/Makefile index a09a033d9..ed2491202 100644 --- a/client/Makefile +++ b/client/Makefile @@ -205,6 +205,7 @@ CMDSRCS = crapto1/crapto1.c \ cmdhffido.c \ cmdhffelica.c \ cmdhfthinfilm.c \ + cmdhfcryptorf.c \ cmdhflto.c \ cmdhw.c \ cmdlf.c \ diff --git a/client/cmdhf.c b/client/cmdhf.c index dfc2a3d47..773ffe431 100644 --- a/client/cmdhf.c +++ b/client/cmdhf.c @@ -34,6 +34,7 @@ #include "cmdhffido.h" // FIDO authenticators #include "cmdhfthinfilm.h" // Thinfilm #include "cmdhflto.h" // LTO-CM +#include "cmdhfcryptorf.h" // CryptoRF #include "cmdtrace.h" // trace list #include "ui.h" #include "cmddata.h" @@ -149,11 +150,22 @@ int CmdHFSearch(const char *Cmd) { res = PM3_SUCCESS; } } +/* + // 14b and iclass is the longest test (put last) + PROMPT_CLEARLINE; + PrintAndLogEx(INPLACE, "Searching for CryptoRF tag..."); + if (IfPm3Iso14443b()) { + if (readHFCryptoRF(false) == PM3_SUCCESS) { + PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("CryptoRF tag") "found\n"); + res = PM3_SUCCESS; + } + } +*/ // 14b and iclass is the longest test (put last) PROMPT_CLEARLINE; PrintAndLogEx(INPLACE, "Searching for ISO14443-B tag..."); - if (IfPm3Iso14443a()) { + if (IfPm3Iso14443b()) { if (readHF14B(false) == 1) { PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("ISO14443-B tag") "found\n"); res = PM3_SUCCESS; @@ -281,6 +293,7 @@ static command_t CommandTable[] = { {"14a", CmdHF14A, AlwaysAvailable, "{ ISO14443A RFIDs... }"}, {"14b", CmdHF14B, AlwaysAvailable, "{ ISO14443B RFIDs... }"}, {"15", CmdHF15, AlwaysAvailable, "{ ISO15693 RFIDs... }"}, +// {"cryptorf", CmdHFCryptoRF, AlwaysAvailable, "{ CryptoRF RFIDs... }"}, {"epa", CmdHFEPA, AlwaysAvailable, "{ German Identification Card... }"}, {"felica", CmdHFFelica, AlwaysAvailable, "{ ISO18092 / Felica RFIDs... }"}, {"fido", CmdHFFido, AlwaysAvailable, "{ FIDO and FIDO2 authenticators... }"},