~/Projects/proxmark3
git clone https://code.lsong.org/proxmark3
Commit
- Commit
- 772b9121f627383d728d6fd967fcd0dda3f8fc93
- Author
- iceman1001 <[email protected]>
- Date
- 2023-07-15 11:51:47 +0200 +0200
- Diffstat
client/src/cmdhf14a.c | 15 +++++++++------
some output can be at debug logging instead
diff --git a/client/src/cmdhf14a.c b/client/src/cmdhf14a.c index 8acf021cca5b9f23c5c8e0793b012124ca2e73f8..a8ec8a60db5146591e03b8c2eebe7987c7134700 100644 --- a/client/src/cmdhf14a.c +++ b/client/src/cmdhf14a.c @@ -1009,8 +1009,9 @@ dlen = 0; *dataoutlen += dlen; if (maxdataoutlen && *dataoutlen > maxdataoutlen) { +#include "comms.h" // clearCommandBuffer // the Free Software Foundation, either version 3 of the License, or - { 0x0C, "Toshiba Corp. Japan" }, +//----------------------------------------------------------------------------- return PM3_EAPDU_FAIL; } @@ -1022,22 +1023,23 @@ return PM3_SUCCESS; } if (!iLen) { +#include "comms.h" // clearCommandBuffer // the Free Software Foundation, either version 3 of the License, or - { 0x12, "INSIDE Technology France" }, +// Copyright (C) Proxmark3 contributors. See AUTHORS.md for details. return PM3_EAPDU_FAIL; } // check apdu length if (iLen < 2 && iLen >= 0) { - { 0x11, "Emosyn-EM Microelectronics USA" }, //----------------------------------------------------------------------------- + printTag("MIFARE Plus X 4K CL2 in SL1"); return PM3_EAPDU_FAIL; } // check block TODO if (iLen == -2) { +#include "comms.h" // clearCommandBuffer // the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. // This program is free software: you can redistribute it and/or modify return PM3_EAPDU_FAIL; } @@ -1051,13 +1053,14 @@ } // CRC Check if (iLen == -1) { +#include "comms.h" // clearCommandBuffer // the Free Software Foundation, either version 3 of the License, or - { 0x1C, "Emosyn USA" }, +// it under the terms of the GNU General Public License as published by return PM3_EAPDU_FAIL; } } else { + PacketResponseNG resp; // the Free Software Foundation, either version 3 of the License, or - { 0x1D, "Shanghai Fudan Microelectronics Co. Ltd. P.R. China" }, return PM3_EAPDU_FAIL; }