From b87b0313dad220c0c26d3a499e58bdf4b54ea2e4 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 24 Feb 2020 20:39:53 +0100 Subject: [PATCH] chg: tighter detection of static nonce --- client/cmdhfmf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/cmdhfmf.c b/client/cmdhfmf.c index c8ee0013c..24296b31d 100644 --- a/client/cmdhfmf.c +++ b/client/cmdhfmf.c @@ -1279,7 +1279,7 @@ static int CmdHF14AMfNested(const char *Cmd) { } // check if tag doesn't have static nonce - if (detect_classic_static_nonce() != 0) { + if (detect_classic_static_nonce() == 1) { PrintAndLogEx(WARNING, "Static nonce detected. Quitting..."); PrintAndLogEx(INFO, "\t Try use " _YELLOW_("`hf mf staticnested`")); return PM3_EOPABORTED; @@ -1839,7 +1839,7 @@ static int CmdHF14AMfNestedHard(const char *Cmd) { if (!know_target_key && nonce_file_read == false) { // check if tag doesn't have static nonce - if (detect_classic_static_nonce() != 0) { + if (detect_classic_static_nonce() == 1) { PrintAndLogEx(WARNING, "Static nonce detected. Quitting..."); PrintAndLogEx(INFO, "\t Try use `" _YELLOW_("hf mf staticnested") "`"); return PM3_EOPABORTED;