mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
textual
This commit is contained in:
parent
15726268bf
commit
063b393eba
2 changed files with 15 additions and 13 deletions
|
@ -65,7 +65,6 @@ static int CmdHFMFPInfo(const char *Cmd) {
|
||||||
// MIFARE Type Identification Procedure
|
// MIFARE Type Identification Procedure
|
||||||
// https://www.nxp.com/docs/en/application-note/AN10833.pdf
|
// https://www.nxp.com/docs/en/application-note/AN10833.pdf
|
||||||
uint16_t ATQA = card.atqa[0] + (card.atqa[1] << 8);
|
uint16_t ATQA = card.atqa[0] + (card.atqa[1] << 8);
|
||||||
|
|
||||||
bool isPlus = false;
|
bool isPlus = false;
|
||||||
|
|
||||||
if (ATQA == 0x0004) {
|
if (ATQA == 0x0004) {
|
||||||
|
@ -131,7 +130,7 @@ static int CmdHFMFPInfo(const char *Cmd) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// How do we detect SL0 / SL1 / SL2 / SL3 modes?!?
|
// How do we detect SL0 / SL1 / SL2 / SL3 modes?!?
|
||||||
PrintAndLogEx(INFO, "Security Level (SL)");
|
PrintAndLogEx(INFO, "Security Level (SL)");
|
||||||
switch(SLmode) {
|
switch(SLmode) {
|
||||||
case 0:
|
case 0:
|
||||||
|
@ -966,9 +965,9 @@ static int CmdHFMFPChk(const char *Cmd) {
|
||||||
if (foundKeys[0][sector][0] || foundKeys[1][sector][0]) {
|
if (foundKeys[0][sector][0] || foundKeys[1][sector][0]) {
|
||||||
if (!printedHeader) {
|
if (!printedHeader) {
|
||||||
PrintAndLogEx(NORMAL, "");
|
PrintAndLogEx(NORMAL, "");
|
||||||
PrintAndLogEx(INFO, ".------.--------------------------------.--------------------------------.");
|
PrintAndLogEx(INFO, "-------+--------------------------------+---------------------------------");
|
||||||
PrintAndLogEx(INFO, "|sector| key A | key B |");
|
PrintAndLogEx(INFO, "|sector| key A | key B |");
|
||||||
PrintAndLogEx(INFO, "|------|--------------------------------|--------------------------------|");
|
PrintAndLogEx(INFO, "|------+--------------------------------+--------------------------------|");
|
||||||
printedHeader = true;
|
printedHeader = true;
|
||||||
}
|
}
|
||||||
PrintAndLogEx(INFO, "| %02d |%32s|%32s|",
|
PrintAndLogEx(INFO, "| %02d |%32s|%32s|",
|
||||||
|
@ -980,7 +979,7 @@ static int CmdHFMFPChk(const char *Cmd) {
|
||||||
if (!printedHeader)
|
if (!printedHeader)
|
||||||
PrintAndLogEx(INFO, "No keys found(");
|
PrintAndLogEx(INFO, "No keys found(");
|
||||||
else
|
else
|
||||||
PrintAndLogEx(INFO, "'------'--------------------------------'--------------------------------'\n");
|
PrintAndLogEx(INFO, "'------+--------------------------------+--------------------------------'\n");
|
||||||
|
|
||||||
// save keys to json
|
// save keys to json
|
||||||
if ((jsonnamelen > 0) && printedHeader) {
|
if ((jsonnamelen > 0) && printedHeader) {
|
||||||
|
|
|
@ -25,3 +25,6 @@ eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
|
||||||
15141312111009080706050403020100
|
15141312111009080706050403020100
|
||||||
0f0e0d0c0b0a09080706050403020100
|
0f0e0d0c0b0a09080706050403020100
|
||||||
100f0e0d0c0b0a090807060504030201
|
100f0e0d0c0b0a090807060504030201
|
||||||
|
404142434445464748494a4b4c4d4e4f
|
||||||
|
303132333435363738393a3b3c3d3e3f
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue