From e36025bb254d05c8f5d280122ee636076c7d449c Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 17 Feb 2017 13:46:27 +0100 Subject: [PATCH] Port miLazyCracker patch: support tnp cf https://github.com/iAmNotSuperman/miLazyCracker/blob/39658a2ac4d2d672720223c6f12533a78937a35d/mfoc_support_tnp.diff --- src/mfoc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mfoc.c b/src/mfoc.c index babbe15..92d4ef3 100644 --- a/src/mfoc.c +++ b/src/mfoc.c @@ -256,7 +256,7 @@ int main(int argc, char *const argv[]) } // Test if a compatible MIFARE tag is used - if ((t.nt.nti.nai.btSak & 0x08) == 0) { + if (((t.nt.nti.nai.btSak & 0x08) == 0) && (t.nt.nti.nai.btSak != 0x01)) { ERR("only Mifare Classic is supported"); goto error; } @@ -267,6 +267,7 @@ int main(int argc, char *const argv[]) // see http://www.nxp.com/documents/application_note/AN10833.pdf Section 3.2 switch (t.nt.nti.nai.btSak) { + case 0x01: case 0x08: case 0x88: printf("Found Mifare Classic 1k tag\n");