mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-22 06:13:51 -07:00
fix format
This commit is contained in:
parent
4c828f4424
commit
c6bf1cefe3
1 changed files with 16 additions and 13 deletions
|
@ -7479,30 +7479,33 @@ static int CmdHF14AGen4Info(const char *cmd) {
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
if (verbose)
|
if (verbose)
|
||||||
PrintAndLogEx(INFO, "Raw config [%02d]. %s", resplen, sprint_hex_inrow(resp, resplen));
|
PrintAndLogEx(INFO, "Raw config [%02d]..... %s", resplen, sprint_hex_inrow(resp, resplen));
|
||||||
|
|
||||||
PrintAndLogEx(INFO, "UL protocol..... %02x", resp[0]);
|
PrintAndLogEx(INFO, "UL protocol......... %02x", resp[0]);
|
||||||
PrintAndLogEx(INFO, "UID length...... %02x", resp[1]);
|
PrintAndLogEx(INFO, "UID length.......... %02x", resp[1]);
|
||||||
PrintAndLogEx(INFO, "Password........ %s", sprint_hex_inrow(&resp[2], 4));
|
PrintAndLogEx(INFO, "Password............ %s", sprint_hex_inrow(&resp[2], 4));
|
||||||
PrintAndLogEx(INFO, "GTU mode........ %02x", resp[6]);
|
PrintAndLogEx(INFO, "GTU mode............ %02x", resp[6]);
|
||||||
PrintAndLogEx(INFO, "ATS [%02d]........ %s", resp[7], sprint_hex_inrow(&resp[8], resp[7]));
|
PrintAndLogEx(INFO, "ATS [%02d]............ %s", resp[7], sprint_hex_inrow(&resp[8], resp[7]));
|
||||||
PrintAndLogEx(INFO, "ATQA............ %02x%02x", resp[25]);
|
PrintAndLogEx(INFO, "ATQA................ %02x%02x", resp[24], resp[25]);
|
||||||
PrintAndLogEx(INFO, "SAK............. %02x", resp[26]);
|
PrintAndLogEx(INFO, "SAK................. %02x", resp[26]);
|
||||||
|
PrintAndLogEx(INFO, "UL mode............. %02x", resp[27]);
|
||||||
|
PrintAndLogEx(INFO, "max rd/wr sectors... %02x", resp[28]);
|
||||||
|
PrintAndLogEx(INFO, "block0 direct wr.... %02x", resp[29]);
|
||||||
|
|
||||||
|
|
||||||
res = mfG4GetFactoryTest(pwd, resp, &resplen, false);
|
res = mfG4GetFactoryTest(pwd, resp, &resplen, false);
|
||||||
if (res == PM3_SUCCESS && resplen > 2) {
|
if (res == PM3_SUCCESS && resplen > 2) {
|
||||||
if (verbose)
|
if (verbose)
|
||||||
PrintAndLogEx(INFO, "Raw test [%02d]... %s", resplen, sprint_hex_inrow(resp, resplen));
|
PrintAndLogEx(INFO, "Raw test [%02d]....... %s", resplen, sprint_hex_inrow(resp, resplen));
|
||||||
|
|
||||||
if (resp[resplen - 2] == 0x66 && resp[resplen - 1] == 0x66)
|
if (resp[resplen - 2] == 0x66 && resp[resplen - 1] == 0x66)
|
||||||
PrintAndLogEx(INFO, "Card type....... generic");
|
PrintAndLogEx(INFO, "Card type........... generic");
|
||||||
else if (resp[resplen - 2] == 0x02 && resp[resplen - 1] == 0xaa)
|
else if (resp[resplen - 2] == 0x02 && resp[resplen - 1] == 0xaa)
|
||||||
PrintAndLogEx(INFO, "Card type....... limited functionality");
|
PrintAndLogEx(INFO, "Card type........... limited functionality");
|
||||||
else if (resp[resplen - 2] == 0x06 && resp[resplen - 1] == 0xa0)
|
else if (resp[resplen - 2] == 0x06 && resp[resplen - 1] == 0xa0)
|
||||||
PrintAndLogEx(INFO, "Card type....... broken functionality");
|
PrintAndLogEx(INFO, "Card type........... broken functionality");
|
||||||
else
|
else
|
||||||
PrintAndLogEx(INFO, "Card type....... unknown %02x%02x", resp[resplen - 2], resp[resplen - 1]);
|
PrintAndLogEx(INFO, "Card type........... unknown %02x%02x", resp[resplen - 2], resp[resplen - 1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue