This commit is contained in:
iceman1001 2022-07-30 11:49:30 +02:00
commit ac0088791a
2 changed files with 4 additions and 3 deletions

View file

@ -3651,6 +3651,7 @@ static int CmdHF14AMfKeyBrute(const char *Cmd) {
void printKeyTable(uint8_t sectorscnt, sector_t *e_sector) { void printKeyTable(uint8_t sectorscnt, sector_t *e_sector) {
return printKeyTableEx(sectorscnt, e_sector, 0); return printKeyTableEx(sectorscnt, e_sector, 0);
} }
void printKeyTableEx(uint8_t sectorscnt, sector_t *e_sector, uint8_t start_sector) { void printKeyTableEx(uint8_t sectorscnt, sector_t *e_sector, uint8_t start_sector) {
char strA[12 + 1] = {0}; char strA[12 + 1] = {0};
char strB[12 + 1] = {0}; char strB[12 + 1] = {0};
@ -6529,7 +6530,7 @@ static command_t CommandTable[] = {
{"personalize", CmdHFMFPersonalize, IfPm3Iso14443a, "Personalize UID (MIFARE Classic EV1 only)"}, {"personalize", CmdHFMFPersonalize, IfPm3Iso14443a, "Personalize UID (MIFARE Classic EV1 only)"},
{"rdbl", CmdHF14AMfRdBl, IfPm3Iso14443a, "Read MIFARE Classic block"}, {"rdbl", CmdHF14AMfRdBl, IfPm3Iso14443a, "Read MIFARE Classic block"},
{"rdsc", CmdHF14AMfRdSc, IfPm3Iso14443a, "Read MIFARE Classic sector"}, {"rdsc", CmdHF14AMfRdSc, IfPm3Iso14443a, "Read MIFARE Classic sector"},
{"restore", CmdHF14AMfRestore, IfPm3Iso14443a, "Restore MIFARE Classic binary file to BLANK tag"}, {"restore", CmdHF14AMfRestore, IfPm3Iso14443a, "Restore MIFARE Classic binary file to tag"},
{"setmod", CmdHf14AMfSetMod, IfPm3Iso14443a, "Set MIFARE Classic EV1 load modulation strength"}, {"setmod", CmdHf14AMfSetMod, IfPm3Iso14443a, "Set MIFARE Classic EV1 load modulation strength"},
{"value", CmdHF14AMfValue, AlwaysAvailable, "Value blocks"}, {"value", CmdHF14AMfValue, AlwaysAvailable, "Value blocks"},
{"view", CmdHF14AMfView, AlwaysAvailable, "Display content from tag dump file"}, {"view", CmdHF14AMfView, AlwaysAvailable, "Display content from tag dump file"},

View file

@ -325,7 +325,7 @@ static nxp_producttype_t getProductType(uint8_t *versionhw) {
return DESFIRE_UNKNOWN_PROD; return DESFIRE_UNKNOWN_PROD;
} }
static const char* getProductTypeStr(uint8_t *versionhw) { static const char *getProductTypeStr(uint8_t *versionhw) {
uint8_t product = versionhw[2]; uint8_t product = versionhw[2];