mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
mfc ndef needs swapped mad according to our default way to treat mad...
This commit is contained in:
parent
9a15632689
commit
92f4c445e4
2 changed files with 6 additions and 6 deletions
|
@ -4528,8 +4528,8 @@ static int CmdHF14AMfMAD(const char *Cmd) {
|
||||||
|
|
||||||
|
|
||||||
PrintAndLogEx(NORMAL, "");
|
PrintAndLogEx(NORMAL, "");
|
||||||
PrintAndLogEx(INFO, "--- " _CYAN_("MAD Information") " ---------------------------");
|
PrintAndLogEx(INFO, "--- " _CYAN_("MAD Information") " -------------------------------");
|
||||||
PrintAndLogEx(INFO, "-------------------------------------------------------------");
|
PrintAndLogEx(INFO, "---------------------------------------------------");
|
||||||
|
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
PrintAndLogEx(SUCCESS, "Raw:");
|
PrintAndLogEx(SUCCESS, "Raw:");
|
||||||
|
@ -4650,7 +4650,7 @@ static int CmdHFMFNDEF(const char *Cmd) {
|
||||||
|
|
||||||
uint16_t mad[7 + 8 + 8 + 8 + 8] = {0};
|
uint16_t mad[7 + 8 + 8 + 8 + 8] = {0};
|
||||||
size_t madlen = 0;
|
size_t madlen = 0;
|
||||||
res = MADDecode(sector0, (haveMAD2 ? sector10 : NULL), mad, &madlen, false);
|
res = MADDecode(sector0, (haveMAD2 ? sector10 : NULL), mad, &madlen, true);
|
||||||
if (res != PM3_SUCCESS) {
|
if (res != PM3_SUCCESS) {
|
||||||
PrintAndLogEx(ERR, "can't decode MAD");
|
PrintAndLogEx(ERR, "can't decode MAD");
|
||||||
return res;
|
return res;
|
||||||
|
|
|
@ -1328,8 +1328,8 @@ static int CmdHFMFPMAD(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
PrintAndLogEx(NORMAL, "");
|
PrintAndLogEx(NORMAL, "");
|
||||||
PrintAndLogEx(INFO, "--- " _CYAN_("MAD Information") " ---------------------------");
|
PrintAndLogEx(INFO, "--- " _CYAN_("MAD Information") " -------------------------------");
|
||||||
PrintAndLogEx(INFO, "-------------------------------------------------------------");
|
PrintAndLogEx(INFO, "---------------------------------------------------");
|
||||||
|
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
PrintAndLogEx(SUCCESS, "Raw:");
|
PrintAndLogEx(SUCCESS, "Raw:");
|
||||||
|
@ -1451,7 +1451,7 @@ static int CmdHFMFPNDEF(const char *Cmd) {
|
||||||
|
|
||||||
uint16_t mad[7 + 8 + 8 + 8 + 8] = {0};
|
uint16_t mad[7 + 8 + 8 + 8 + 8] = {0};
|
||||||
size_t madlen = 0;
|
size_t madlen = 0;
|
||||||
res = MADDecode(sector0, (haveMAD2 ? sector10 : NULL), mad, &madlen, false);
|
res = MADDecode(sector0, (haveMAD2 ? sector10 : NULL), mad, &madlen, true);
|
||||||
if (res != PM3_SUCCESS) {
|
if (res != PM3_SUCCESS) {
|
||||||
PrintAndLogEx(ERR, "can't decode MAD");
|
PrintAndLogEx(ERR, "can't decode MAD");
|
||||||
return res;
|
return res;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue