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 2023-07-12 15:02:56 +02:00 committed by GitHub
commit 1c52bd5ac3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;