From c71d7267ac12f50b5177381494fdca40ef68a154 Mon Sep 17 00:00:00 2001 From: quantum-x Date: Tue, 3 Nov 2015 18:48:22 +0100 Subject: [PATCH] Update nfc-mfclassic.c Tweaking back the unlocked_read / write_block_zero after magic2 card discovered --- utils/nfc-mfclassic.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/nfc-mfclassic.c b/utils/nfc-mfclassic.c index 86112f7..7ecdfa7 100644 --- a/utils/nfc-mfclassic.c +++ b/utils/nfc-mfclassic.c @@ -314,6 +314,7 @@ read_card(int read_unlocked) //need to use the R mode. We'll trigger a warning and let them proceed. if (magic2) { printf("Note: This card does not require an unlocked write (R) \n"); + read_unlocked = 0; } else { //If User has requested an unlocked read, but we're unable to unlock the card, we'll error out. if (!unlock_card()) { @@ -393,6 +394,7 @@ write_card(int write_block_zero) //need to use the W mode. We'll trigger a warning and let them proceed. if (magic2) { printf("Note: This card does not require an unlocked write (W) \n"); + write_block_zero = 0 } else { //If User has requested an unlocked write, but we're unable to unlock the card, we'll error out. if (!unlock_card()) {