chg: "hf topaz info" - textual

This commit is contained in:
iceman1001 2020-04-17 10:30:18 +02:00
commit 69142baa7f

View file

@ -408,6 +408,7 @@ static int CmdHFTopazInfo(const char *Cmd) {
char ctmp = tolower(param_getchar(Cmd, 0)); char ctmp = tolower(param_getchar(Cmd, 0));
if (ctmp == 's') verbose = false; if (ctmp == 's') verbose = false;
int status = readTopazUid(verbose); int status = readTopazUid(verbose);
if (status != PM3_SUCCESS) if (status != PM3_SUCCESS)
return status; return status;
@ -462,6 +463,7 @@ static int CmdHFTopazInfo(const char *Cmd) {
topaz_print_NDEF(&topaz_tag.data_blocks[1][0], TOPAZ_STATIC_MEMORY); topaz_print_NDEF(&topaz_tag.data_blocks[1][0], TOPAZ_STATIC_MEMORY);
PrintAndLogEx(INFO, "-------------------------------------------------------------");
topaz_switch_off_field(); topaz_switch_off_field();
return PM3_SUCCESS; return PM3_SUCCESS;
} }
@ -545,6 +547,8 @@ int readTopazUid(bool verbose) {
// printing // printing
PrintAndLogEx(NORMAL, ""); PrintAndLogEx(NORMAL, "");
PrintAndLogEx(INFO, "--- " _CYAN_("Tag Information") "---------------------------");
PrintAndLogEx(INFO, "-------------------------------------------------------------");
PrintAndLogEx(SUCCESS, " UID: %02x %02x %02x %02x %02x %02x %02x", PrintAndLogEx(SUCCESS, " UID: %02x %02x %02x %02x %02x %02x %02x",
topaz_tag.uid[6], topaz_tag.uid[6],
topaz_tag.uid[5], topaz_tag.uid[5],