Merge pull request #2034 from rdmitr/hardnested-no-signature-detect-when-offline

Do not try to detect Mifare classic EV1 signature in offline mode
This commit is contained in:
Iceman authored and GitHub committed 2023-07-12 15:02:56 +02:00
commit 1c52bd5ac3
1 file changed
+1 -1
+1 -1
View File
@@ -2242,7 +2242,7 @@ static int CmdHF14AMfNestedHard(const char *Cmd) {
}
// detect MFC EV1 Signature
if (detect_mfc_ev1_signature() && keylen == 0) {
if (g_session.pm3_present && detect_mfc_ev1_signature() && keylen == 0) {
PrintAndLogEx(INFO, "MIFARE Classic EV1 card detected");
blockno = 69;
keytype = MF_KEY_B;