From 5b1fadb7c6311cb49e0040f49d37076af9397700 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 27 Jan 2025 22:08:49 +0100 Subject: [PATCH] break if only checking passwords --- client/src/cmdlfhitag.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/src/cmdlfhitag.c b/client/src/cmdlfhitag.c index a09b59e49..6230cbf35 100644 --- a/client/src/cmdlfhitag.c +++ b/client/src/cmdlfhitag.c @@ -1888,7 +1888,7 @@ static int CmdLFHitag2Chk(const char *Cmd) { CLIParserContext *ctx; CLIParserInit(&ctx, "lf hitag chk", "Run dictionary key or password recovery against Hitag card.", - "lf hitag chk -> checks for both pwd / crypto keys\n" + "lf hitag chk -> checks for both pwd / crypto keys\n" "lf hitag chk --crypto -> use def dictionary\n" "lf hitag chk --pwd -f my.dic -> pwd mode, custom dictionary" ); @@ -1957,6 +1957,12 @@ static int CmdLFHitag2Chk(const char *Cmd) { break; } free(keys); + + PrintAndLogEx(NORMAL, ""); + + if (use_pwd) { + break; + } } t1 = msclock() - t1;