mad ndef no swap and restore official AID 0xE103

This commit is contained in:
Philippe Teuwen 2020-06-09 21:19:31 +02:00
parent 92f4c445e4
commit 4372a728f7
2 changed files with 4 additions and 4 deletions

View file

@ -4614,7 +4614,7 @@ static int CmdHFMFNDEF(const char *Cmd) {
CLIParserFree(ctx);
uint16_t ndefAID = 0x03e1;
uint16_t ndefAID = 0xe103;
if (aidlen == 2)
ndefAID = (aid[0] << 8) + aid[1];
@ -4650,7 +4650,7 @@ static int CmdHFMFNDEF(const char *Cmd) {
uint16_t mad[7 + 8 + 8 + 8 + 8] = {0};
size_t madlen = 0;
res = MADDecode(sector0, (haveMAD2 ? sector10 : NULL), mad, &madlen, true);
res = MADDecode(sector0, (haveMAD2 ? sector10 : NULL), mad, &madlen, false);
if (res != PM3_SUCCESS) {
PrintAndLogEx(ERR, "can't decode MAD");
return res;

View file

@ -1415,7 +1415,7 @@ static int CmdHFMFPNDEF(const char *Cmd) {
CLIParserFree(ctx);
uint16_t ndefAID = 0x03e1;
uint16_t ndefAID = 0xe103;
if (aidlen == 2)
ndefAID = (aid[0] << 8) + aid[1];
@ -1451,7 +1451,7 @@ static int CmdHFMFPNDEF(const char *Cmd) {
uint16_t mad[7 + 8 + 8 + 8 + 8] = {0};
size_t madlen = 0;
res = MADDecode(sector0, (haveMAD2 ? sector10 : NULL), mad, &madlen, true);
res = MADDecode(sector0, (haveMAD2 ? sector10 : NULL), mad, &madlen, false);
if (res != PM3_SUCCESS) {
PrintAndLogEx(ERR, "can't decode MAD");
return res;