mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
fix: 'hf mf cgetsc' - a missing array and some new output layout.
This commit is contained in:
parent
6bae0b8590
commit
7484a0dd1e
1 changed files with 5 additions and 6 deletions
|
@ -2236,7 +2236,7 @@ int CmdHF14AMfCLoad(const char *Cmd) {
|
|||
}
|
||||
|
||||
int CmdHF14AMfCGetBlk(const char *Cmd) {
|
||||
uint8_t data[16];
|
||||
uint8_t data[16] = {0};
|
||||
uint8_t blockNo = 0;
|
||||
int res;
|
||||
memset(data, 0x00, sizeof(data));
|
||||
|
@ -2259,7 +2259,7 @@ int CmdHF14AMfCGetBlk(const char *Cmd) {
|
|||
}
|
||||
|
||||
int CmdHF14AMfCGetSc(const char *Cmd) {
|
||||
uint8_t *data = NULL;
|
||||
uint8_t data[16] = {0};
|
||||
uint8_t sector = 0;
|
||||
int i, res, flags;
|
||||
|
||||
|
@ -2272,9 +2272,8 @@ int CmdHF14AMfCGetSc(const char *Cmd) {
|
|||
return 1;
|
||||
}
|
||||
|
||||
PrintAndLog("Sector : %02d/0x%02X ", sector, sector);
|
||||
PrintAndLog("block | data");
|
||||
|
||||
PrintAndLog("\n # | data | Sector | %02d/ 0x%02X ", sector, sector);
|
||||
PrintAndLog("----+------------------------------------------------");
|
||||
uint8_t blocks = 4;
|
||||
uint8_t start = sector * 4;
|
||||
if ( sector > 32 ) {
|
||||
|
@ -2293,7 +2292,7 @@ int CmdHF14AMfCGetSc(const char *Cmd) {
|
|||
PrintAndLog("Can't read block. %d error=%d", start + i, res);
|
||||
return 1;
|
||||
}
|
||||
PrintAndLog(" %3d | %s", start + i, sprint_hex(data, sizeof(data)));
|
||||
PrintAndLog("%3d | %s", start + i, sprint_hex(data, 16));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue