small fix
This commit is contained in:
@@ -3230,8 +3230,8 @@ int CmdHF14AMfMAD(const char *cmd) {
|
|||||||
bool haveMAD2 = false;
|
bool haveMAD2 = false;
|
||||||
MAD1DecodeAndPrint(sector, verbose, &haveMAD2);
|
MAD1DecodeAndPrint(sector, verbose, &haveMAD2);
|
||||||
|
|
||||||
if (haveMAD2) { // MF_MAD2_SECTOR
|
if (haveMAD2) {
|
||||||
if (mfReadSector(1, MF_KEY_A, (uint8_t *)g_mifare_mad_key, sector)) {
|
if (mfReadSector(MF_MAD2_SECTOR, MF_KEY_A, (uint8_t *)g_mifare_mad_key, sector)) {
|
||||||
PrintAndLogEx(ERR, "read sector 0x10 error. card don't have MAD or don't have MAD on default keys.");
|
PrintAndLogEx(ERR, "read sector 0x10 error. card don't have MAD or don't have MAD on default keys.");
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user