mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
chg: "hf topaz info" - textual
This commit is contained in:
parent
40c69b3f83
commit
69142baa7f
1 changed files with 9 additions and 5 deletions
|
@ -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],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue