From 11a298dc42bf803b240b3500818b8166da2231e1 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 13 May 2024 11:12:27 +0200 Subject: [PATCH] changed hf search to look for topaz first and commented out ICT code path --- CHANGELOG.md | 1 + client/src/cmdhf.c | 24 +++++++++++++----------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f239ac30..d6f5ac62f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file. This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log... ## [unreleased][unreleased] +- Changed `hf search` - topaz is detect before ISO14443a and commented out WIP ICT code path (@iceman1001) - Fixed `hf search` - where felica reader now doesnt timeout and give wrong response (@iceman1001) - Fixed overflow in deps/jansson library (@iceman1001) - Added `lf hitag crack2` - WIP. Trying to add the second attack vector against Hitag2 (@iceman1001) diff --git a/client/src/cmdhf.c b/client/src/cmdhf.c index d3134eaf3..9414f1be7 100644 --- a/client/src/cmdhf.c +++ b/client/src/cmdhf.c @@ -95,6 +95,16 @@ int CmdHFSearch(const char *Cmd) { } } + PROMPT_CLEARLINE; + PrintAndLogEx(INPLACE, " Searching for Topaz tag..."); + if (IfPm3Iso14443a()) { + if (readTopazUid(false, false) == PM3_SUCCESS) { + PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("Topaz tag") " found\n"); + success[TOPAZ] = true; + res = PM3_SUCCESS; + } + } + PROMPT_CLEARLINE; PrintAndLogEx(INPLACE, " Searching for LTO-CM tag..."); if (IfPm3Iso14443a()) { @@ -119,7 +129,8 @@ int CmdHFSearch(const char *Cmd) { } } - // ICT + /* + // ICT if (IfPm3Iso14443a()) { int sel_state = infoHF14A(false, false, false); if (sel_state > 0) { @@ -131,6 +142,7 @@ int CmdHFSearch(const char *Cmd) { infoHF14A4Applications(verbose); } } + */ PROMPT_CLEARLINE; PrintAndLogEx(INPLACE, " Searching for LEGIC tag..."); @@ -142,16 +154,6 @@ int CmdHFSearch(const char *Cmd) { } } - PROMPT_CLEARLINE; - PrintAndLogEx(INPLACE, " Searching for Topaz tag..."); - if (IfPm3Iso14443a()) { - if (readTopazUid(false, false) == PM3_SUCCESS) { - PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("Topaz tag") " found\n"); - success[TOPAZ] = true; - res = PM3_SUCCESS; - } - } - // texkom PROMPT_CLEARLINE; PrintAndLogEx(INPLACE, " Searching for TEXKOM tag...");