hf mf cview
This commit is contained in:
@@ -4341,8 +4341,10 @@ static int CmdHF14AMfCView(const char *Cmd) {
|
|||||||
PrintAndLogEx(INFO, "----+-------------------------------------------------+-----------------");
|
PrintAndLogEx(INFO, "----+-------------------------------------------------+-----------------");
|
||||||
for (uint16_t i = 0; i < numblocks; i++){
|
for (uint16_t i = 0; i < numblocks; i++){
|
||||||
|
|
||||||
if (mfIsSectorTrailer(blockNo)) {
|
if (i == 0) {
|
||||||
PrintAndLogEx(INFO, "%03d | " _YELLOW_("%s")", i, sprint_hex_ascii(dump + (i * 16) , 16) );
|
PrintAndLogEx(INFO, "%03d | " _RED_("%s"), i, sprint_hex_ascii(dump + (i * 16) , 16) );
|
||||||
|
} else if (mfIsSectorTrailer(i)) {
|
||||||
|
PrintAndLogEx(INFO, "%03d | " _YELLOW_("%s"), i, sprint_hex_ascii(dump + (i * 16) , 16) );
|
||||||
} else {
|
} else {
|
||||||
PrintAndLogEx(INFO, "%03d | %s ", i, sprint_hex_ascii(dump + (i * 16) , 16) );
|
PrintAndLogEx(INFO, "%03d | %s ", i, sprint_hex_ascii(dump + (i * 16) , 16) );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user