mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
fix #953 static nonce detection
This commit is contained in:
parent
0650123b09
commit
aa756aa493
1 changed files with 3 additions and 3 deletions
|
@ -1360,7 +1360,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()) {
|
if (detect_classic_static_nonce() == NONCE_STATIC) {
|
||||||
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;
|
||||||
|
@ -1610,7 +1610,7 @@ static int CmdHF14AMfNestedStatic(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if tag have static nonce
|
// check if tag have static nonce
|
||||||
if (detect_classic_static_nonce() == false) {
|
if (detect_classic_static_nonce() != NONCE_STATIC) {
|
||||||
PrintAndLogEx(WARNING, "Normal nonce detected, or failed read of card. Quitting...");
|
PrintAndLogEx(WARNING, "Normal nonce detected, or failed read of card. Quitting...");
|
||||||
PrintAndLogEx(INFO, "\t Try use " _YELLOW_("`hf mf nested`"));
|
PrintAndLogEx(INFO, "\t Try use " _YELLOW_("`hf mf nested`"));
|
||||||
return PM3_EOPABORTED;
|
return PM3_EOPABORTED;
|
||||||
|
@ -1924,7 +1924,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()) {
|
if (detect_classic_static_nonce() == NONCE_STATIC) {
|
||||||
PrintAndLogEx(WARNING, "Static nonce detected. Quitting...");
|
PrintAndLogEx(WARNING, "Static nonce detected. Quitting...");
|
||||||
PrintAndLogEx(HINT, "\tTry use `" _YELLOW_("hf mf staticnested") "`");
|
PrintAndLogEx(HINT, "\tTry use `" _YELLOW_("hf mf staticnested") "`");
|
||||||
return PM3_EOPABORTED;
|
return PM3_EOPABORTED;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue