X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/f028213f0e2073099dbfae86a43f6a43bdd9c495..c936a22f1921f5dd8ebf49a8d1a0fab60337dd31:/armsrc/appmain.c diff --git a/armsrc/appmain.c b/armsrc/appmain.c index f3e61f8b..947c12cc 100644 --- a/armsrc/appmain.c +++ b/armsrc/appmain.c @@ -801,7 +801,16 @@ void UsbPacketReceived(uint8_t *packet, int len) MifareUReadBlock(c->arg[0],c->d.asBytes); break; case CMD_MIFAREU_READCARD: - MifareUReadCard(c->arg[0],c->d.asBytes); + MifareUReadCard(c->arg[0],c->arg[1],c->d.asBytes); + break; + case CMD_MIFAREUC_READCARD: + MifareUReadCard(c->arg[0],c->arg[1],c->d.asBytes); + break; + case CMD_MIFAREUC_AUTH1: + MifareUC_Auth1(c->arg[0],c->d.asBytes); + break; + case CMD_MIFAREUC_AUTH2: + MifareUC_Auth2(c->arg[0],c->d.asBytes); break; case CMD_MIFARE_READSC: MifareReadSector(c->arg[0], c->arg[1], c->arg[2], c->d.asBytes); @@ -824,7 +833,12 @@ void UsbPacketReceived(uint8_t *packet, int len) case CMD_SIMULATE_MIFARE_CARD: Mifare1ksim(c->arg[0], c->arg[1], c->arg[2], c->d.asBytes); break; - + case CMD_MIFARE_DES_AUTH1: + Mifare_DES_Auth1(c->arg[0],c->d.asBytes); + break; + case CMD_MIFARE_DES_AUTH2: + Mifare_DES_Auth2(c->arg[0],c->d.asBytes); + break; // emulator case CMD_MIFARE_SET_DBGMODE: MifareSetDbgLvl(c->arg[0], c->arg[1], c->arg[2], c->d.asBytes);