mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-09 09:39:16 +08:00
chg some printing of blocks
This commit is contained in:
parent
a933eb4f9e
commit
19bdfd2577
2 changed files with 7 additions and 7 deletions
|
@ -486,9 +486,9 @@ int t55xxWrite(uint8_t block, bool page1, bool usepwd, bool testMode, uint32_t p
|
|||
}
|
||||
|
||||
void printT5xxHeader(uint8_t page) {
|
||||
PrintAndLogEx(NORMAL, "Reading Page %d:", page);
|
||||
PrintAndLogEx(NORMAL, "blk | hex data | binary | ascii");
|
||||
PrintAndLogEx(NORMAL, "----+----------+----------------------------------+-------");
|
||||
PrintAndLogEx(SUCCESS, "Reading Page %d:", page);
|
||||
PrintAndLogEx(SUCCESS, "blk | hex data | binary | ascii");
|
||||
PrintAndLogEx(SUCCESS, "----+----------+----------------------------------+-------");
|
||||
}
|
||||
|
||||
static int CmdT55xxSetConfig(const char *Cmd) {
|
||||
|
@ -1185,7 +1185,7 @@ void printT55xxBlock(uint8_t blockNum) {
|
|||
|
||||
num_to_bytes(blockData, 4, bytes);
|
||||
|
||||
PrintAndLogEx(NORMAL, " %02d | %08X | %s | %s", blockNum, blockData, sprint_bin(DemodBuffer + config.offset, 32), sprint_ascii(bytes, 4));
|
||||
PrintAndLogEx(SUCCESS, " %02d | %08X | %s | %s", blockNum, blockData, sprint_bin(DemodBuffer + config.offset, 32), sprint_ascii(bytes, 4));
|
||||
}
|
||||
|
||||
static bool testModulation(uint8_t mode, uint8_t modread) {
|
||||
|
|
|
@ -383,14 +383,14 @@ char *sprint_ascii(const uint8_t *data, const size_t len) {
|
|||
}
|
||||
|
||||
void print_blocks(uint32_t *data, size_t len) {
|
||||
PrintAndLogEx(NORMAL, "Blk | Data ");
|
||||
PrintAndLogEx(NORMAL, "----+------------");
|
||||
PrintAndLogEx(SUCCESS, "Blk | Data ");
|
||||
PrintAndLogEx(SUCCESS, "----+------------");
|
||||
|
||||
if (!data) {
|
||||
PrintAndLogEx(ERR, "..empty data");
|
||||
} else {
|
||||
for (uint8_t i = 0; i < len; i++)
|
||||
PrintAndLogEx(NORMAL, "%02d | 0x%08X", i, data[i]);
|
||||
PrintAndLogEx(SUCCESS, " %02d | 0x%08X", i, data[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue