Skip to content

Commit

Permalink
Port miLazyCracker patch: support tnp
Browse files Browse the repository at this point in the history
  • Loading branch information
doegox committed Feb 17, 2017
1 parent f172064 commit e36025b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mfoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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");
Expand Down

0 comments on commit e36025b

Please sign in to comment.