This commit is contained in:
root 2020-02-24 14:40:25 -05:00
commit 4dcdbf4bba
2 changed files with 2 additions and 4 deletions

View file

@ -1279,7 +1279,7 @@ static int CmdHF14AMfNested(const char *Cmd) {
} }
// check if tag doesn't have static nonce // 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(WARNING, "Static nonce detected. Quitting...");
PrintAndLogEx(INFO, "\t Try use " _YELLOW_("`hf mf staticnested`")); PrintAndLogEx(INFO, "\t Try use " _YELLOW_("`hf mf staticnested`"));
return PM3_EOPABORTED; return PM3_EOPABORTED;
@ -1839,7 +1839,7 @@ static int CmdHF14AMfNestedHard(const char *Cmd) {
if (!know_target_key && nonce_file_read == false) { if (!know_target_key && nonce_file_read == false) {
// check if tag doesn't have static nonce // 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(WARNING, "Static nonce detected. Quitting...");
PrintAndLogEx(INFO, "\t Try use `" _YELLOW_("hf mf staticnested") "`"); PrintAndLogEx(INFO, "\t Try use `" _YELLOW_("hf mf staticnested") "`");
return PM3_EOPABORTED; return PM3_EOPABORTED;

View file

@ -1845,7 +1845,6 @@ static bool TestIfKeyExists(uint64_t key) {
num_keys_tested += count; num_keys_tested += count;
hardnested_print_progress(num_acquired_nonces, "(Test: Key found)", 0.0, 0); hardnested_print_progress(num_acquired_nonces, "(Test: Key found)", 0.0, 0);
crypto1_destroy(pcs); crypto1_destroy(pcs);
pthread_mutex_destroy(&statelist_cache_mutex);
return true; return true;
} }
} }
@ -1853,7 +1852,6 @@ static bool TestIfKeyExists(uint64_t key) {
num_keys_tested += count; num_keys_tested += count;
hardnested_print_progress(num_acquired_nonces, "(Test: Key NOT found)", 0.0, 0); hardnested_print_progress(num_acquired_nonces, "(Test: Key NOT found)", 0.0, 0);
crypto1_destroy(pcs); crypto1_destroy(pcs);
pthread_mutex_destroy(&statelist_cache_mutex);
return false; return false;
} }