From 15b4b198b02cc4a9b06071e9a99a397f3e93ac96 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 21 Jan 2020 15:22:36 +0100 Subject: [PATCH] chg: 'lf search' - now always check for HITAG --- client/cmdlf.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/client/cmdlf.c b/client/cmdlf.c index 3fee78735..617d87c0e 100644 --- a/client/cmdlf.c +++ b/client/cmdlf.c @@ -1213,17 +1213,18 @@ int CmdLFfind(const char *Cmd) { // only run these tests if device is online if (isOnline) { + + if (IfPm3Hitag()) { + if (readHitagUid()) { + PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("Hitag") "found!"); + return PM3_SUCCESS; + } + } + // only run if graphbuffer is just noise as it should be for hitag // The improved noise detection will find Cotag. if (getSignalProperties()->isnoise) { - if (IfPm3Hitag()) { - if (readHitagUid()) { - PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("Hitag") "found!"); - return PM3_SUCCESS; - } - } - if (readMotorolaUid()) { PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("Motorola FlexPass ID") "found!"); return PM3_SUCCESS;