mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-21 04:29:53 +08:00
chg: 'lf t55xx info' - text layout
This commit is contained in:
parent
2fa31d33fc
commit
116837e9a0
1 changed files with 7 additions and 11 deletions
|
@ -1292,13 +1292,8 @@ static void printT5x7KnownBlock0(uint32_t b0) {
|
||||||
snprintf(s + strlen(s), sizeof(s) - strlen(s), "T55x7 Raw ");
|
snprintf(s + strlen(s), sizeof(s) - strlen(s), "T55x7 Raw ");
|
||||||
break;
|
break;
|
||||||
case T55X7_EM_UNIQUE_CONFIG_BLOCK:
|
case T55X7_EM_UNIQUE_CONFIG_BLOCK:
|
||||||
snprintf(s + strlen(s), sizeof(s) - strlen(s), "EM Unique ");
|
snprintf(s + strlen(s), sizeof(s) - strlen(s), "EM unique, Paxton ");
|
||||||
break;
|
break;
|
||||||
/*
|
|
||||||
case T55X7_EM_PAXTON_CONFIG_BLOCK:
|
|
||||||
snprintf(s + strlen(s), sizeof(s)-strlen(s), "EM Paxton ");
|
|
||||||
break;
|
|
||||||
*/
|
|
||||||
case T55X7_FDXB_CONFIG_BLOCK:
|
case T55X7_FDXB_CONFIG_BLOCK:
|
||||||
snprintf(s + strlen(s), sizeof(s) - strlen(s), "FDXB ");
|
snprintf(s + strlen(s), sizeof(s) - strlen(s), "FDXB ");
|
||||||
break;
|
break;
|
||||||
|
@ -1339,10 +1334,8 @@ static void printT5x7KnownBlock0(uint32_t b0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strlen(s) > 0) {
|
if (strlen(s) > 0)
|
||||||
PrintAndLogEx(NORMAL, " Known T55x7 Config block found : " _YELLOW_("%s"), s);
|
PrintAndLogEx(NORMAL, "\n Config block match : " _YELLOW_("%s"), s);
|
||||||
PrintAndLogEx(NORMAL, "-------------------------------------------------------------");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int CmdT55xxInfo(const char *Cmd) {
|
int CmdT55xxInfo(const char *Cmd) {
|
||||||
|
@ -1476,9 +1469,12 @@ int CmdT55xxInfo(const char *Cmd) {
|
||||||
PrintAndLogEx(NORMAL, " Block 0 : 0x%08X", block0);
|
PrintAndLogEx(NORMAL, " Block 0 : 0x%08X", block0);
|
||||||
else
|
else
|
||||||
PrintAndLogEx(NORMAL, " Block 0 : 0x%08X %s", block0, sprint_bin(DemodBuffer + config.offset, 32));
|
PrintAndLogEx(NORMAL, " Block 0 : 0x%08X %s", block0, sprint_bin(DemodBuffer + config.offset, 32));
|
||||||
PrintAndLogEx(NORMAL, "-------------------------------------------------------------");
|
|
||||||
if (((!gotdata) && (!config.Q5)) || (gotdata && (!dataasq5)))
|
if (((!gotdata) && (!config.Q5)) || (gotdata && (!dataasq5)))
|
||||||
printT5x7KnownBlock0(block0);
|
printT5x7KnownBlock0(block0);
|
||||||
|
|
||||||
|
PrintAndLogEx(NORMAL, "-------------------------------------------------------------");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue