mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-07-16 10:03:04 -07:00
style
This commit is contained in:
parent
6104086374
commit
5028d6f664
8 changed files with 50 additions and 35 deletions
|
@ -861,43 +861,43 @@ static int NxpSysInfo(uint8_t *uid) {
|
||||||
PrintAndLogEx(INFO, _CYAN_(" Password protection configuration"));
|
PrintAndLogEx(INFO, _CYAN_(" Password protection configuration"));
|
||||||
|
|
||||||
PrintAndLogEx(INFO, " Page L read.... %s"
|
PrintAndLogEx(INFO, " Page L read.... %s"
|
||||||
, (d[2] & 0x01) ? _RED_("password") : _GREEN_("no password")
|
, (d[2] & 0x01) ? _RED_("password") : _GREEN_("no password")
|
||||||
);
|
);
|
||||||
|
|
||||||
PrintAndLogEx(INFO, " Page L write... %s"
|
PrintAndLogEx(INFO, " Page L write... %s"
|
||||||
, (d[2] & 0x02) ? _RED_("password") : _GREEN_("no password")
|
, (d[2] & 0x02) ? _RED_("password") : _GREEN_("no password")
|
||||||
);
|
);
|
||||||
|
|
||||||
PrintAndLogEx(INFO, " Page H read.... %s"
|
PrintAndLogEx(INFO, " Page H read.... %s"
|
||||||
, (d[2] & 0x10) ? _RED_("password") : _GREEN_("no password")
|
, (d[2] & 0x10) ? _RED_("password") : _GREEN_("no password")
|
||||||
);
|
);
|
||||||
|
|
||||||
PrintAndLogEx(INFO, " Page H write... %s"
|
PrintAndLogEx(INFO, " Page H write... %s"
|
||||||
, (d[2] & 0x20) ? _RED_("password") : _GREEN_("no password")
|
, (d[2] & 0x20) ? _RED_("password") : _GREEN_("no password")
|
||||||
);
|
);
|
||||||
|
|
||||||
PrintAndLogEx(INFO, "");
|
PrintAndLogEx(INFO, "");
|
||||||
PrintAndLogEx(INFO, _CYAN_(" Lock bits"));
|
PrintAndLogEx(INFO, _CYAN_(" Lock bits"));
|
||||||
|
|
||||||
// AFI lock bit
|
// AFI lock bit
|
||||||
PrintAndLogEx(INFO, " AFI............ %s"
|
PrintAndLogEx(INFO, " AFI............ %s"
|
||||||
, (d[3] & 0x01) ? _RED_("locked") : _GREEN_("unlocked")
|
, (d[3] & 0x01) ? _RED_("locked") : _GREEN_("unlocked")
|
||||||
);
|
);
|
||||||
|
|
||||||
// EAS lock bit
|
// EAS lock bit
|
||||||
PrintAndLogEx(INFO, " EAS............ %s"
|
PrintAndLogEx(INFO, " EAS............ %s"
|
||||||
,(d[3] & 0x02) ? _RED_("locked") : _GREEN_("unlocked")
|
, (d[3] & 0x02) ? _RED_("locked") : _GREEN_("unlocked")
|
||||||
);
|
);
|
||||||
|
|
||||||
// DSFID lock bit
|
// DSFID lock bit
|
||||||
PrintAndLogEx(INFO, " DSFID.......... %s"
|
PrintAndLogEx(INFO, " DSFID.......... %s"
|
||||||
, (d[3] & 0x03) ? _RED_("locked") : _GREEN_("unlocked")
|
, (d[3] & 0x03) ? _RED_("locked") : _GREEN_("unlocked")
|
||||||
);
|
);
|
||||||
|
|
||||||
// Password protection pointer address and access conditions lock bit
|
// Password protection pointer address and access conditions lock bit
|
||||||
PrintAndLogEx(INFO, " Password protection configuration... %s"
|
PrintAndLogEx(INFO, " Password protection configuration... %s"
|
||||||
, (d[3] & 0x04) ? _RED_("locked") : _GREEN_("unlocked")
|
, (d[3] & 0x04) ? _RED_("locked") : _GREEN_("unlocked")
|
||||||
);
|
);
|
||||||
|
|
||||||
PrintAndLogEx(INFO, "");
|
PrintAndLogEx(INFO, "");
|
||||||
PrintAndLogEx(INFO, _CYAN_(" Features"));
|
PrintAndLogEx(INFO, _CYAN_(" Features"));
|
||||||
|
@ -1353,9 +1353,9 @@ static void print_blocks_15693(iso15_tag_t *tag, bool dense_output) {
|
||||||
|
|
||||||
PrintAndLogEx(INFO, "%4d | %s| %s | %s"
|
PrintAndLogEx(INFO, "%4d | %s| %s | %s"
|
||||||
, i
|
, i
|
||||||
, sprint_hex(&tag->data[i * tag->bytesPerPage], tag->bytesPerPage)
|
, sprint_hex(&tag->data[i * tag->bytesPerPage], tag->bytesPerPage)
|
||||||
, lck
|
, lck
|
||||||
, sprint_ascii(&tag->data[i * tag->bytesPerPage], tag->bytesPerPage)
|
, sprint_ascii(&tag->data[i * tag->bytesPerPage], tag->bytesPerPage)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1382,7 +1382,7 @@ static void print_tag_15693(iso15_tag_t *tag, bool dense_output, bool verbose) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
PrintAndLogEx(INFO, "--- " _CYAN_("Tag Memory") " -------%.*s", (tag->bytesPerPage *3), dashes);
|
PrintAndLogEx(INFO, "--- " _CYAN_("Tag Memory") " -------%.*s", (tag->bytesPerPage * 3), dashes);
|
||||||
PrintAndLogEx(NORMAL, "");
|
PrintAndLogEx(NORMAL, "");
|
||||||
print_blocks_15693(tag, dense_output);
|
print_blocks_15693(tag, dense_output);
|
||||||
print_hrule(tag->bytesPerPage);
|
print_hrule(tag->bytesPerPage);
|
||||||
|
|
|
@ -1675,11 +1675,11 @@ void annotateIso14443b(char *exp, size_t size, uint8_t *cmd, uint8_t cmdsize) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (cmdsize == 13 && cmd[1] == ISO14443B_XEROX_READ_BLK) {
|
if (cmdsize == 13 && cmd[1] == ISO14443B_XEROX_READ_BLK) {
|
||||||
snprintf(exp, size, "XEROX READ_BLK(%u)", cmd[2+8]);
|
snprintf(exp, size, "XEROX READ_BLK(%u)", cmd[2 + 8]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (cmdsize == 13 && cmd[1] == ISO14443B_XEROX_EXT_READ_BLK) {
|
if (cmdsize == 13 && cmd[1] == ISO14443B_XEROX_EXT_READ_BLK) {
|
||||||
snprintf(exp, size, "XEROX EXT_READ_BLK(%u)", cmd[2+8]);
|
snprintf(exp, size, "XEROX EXT_READ_BLK(%u)", cmd[2 + 8]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -395,7 +395,7 @@ static int xerox_select_card(iso14b_card_select_t *card, bool disconnect) {
|
||||||
while (retry--) {
|
while (retry--) {
|
||||||
|
|
||||||
iso14b_raw_cmd_t packet = {
|
iso14b_raw_cmd_t packet = {
|
||||||
.flags = (ISO14B_CONNECT | ISO14B_SELECT_XRX ),
|
.flags = (ISO14B_CONNECT | ISO14B_SELECT_XRX),
|
||||||
.timeout = 0,
|
.timeout = 0,
|
||||||
.rawlen = 0,
|
.rawlen = 0,
|
||||||
};
|
};
|
||||||
|
|
|
@ -515,6 +515,7 @@ const static vocabulary_t vocabulary[] = {
|
||||||
{ 0, "hf xerox dump" },
|
{ 0, "hf xerox dump" },
|
||||||
{ 0, "hf xerox reader" },
|
{ 0, "hf xerox reader" },
|
||||||
{ 1, "hf xerox view" },
|
{ 1, "hf xerox view" },
|
||||||
|
{ 0, "hf xerox rdbl" },
|
||||||
{ 1, "hw help" },
|
{ 1, "hw help" },
|
||||||
{ 0, "hw break" },
|
{ 0, "hw break" },
|
||||||
{ 0, "hw bootloader" },
|
{ 0, "hw bootloader" },
|
||||||
|
|
|
@ -7729,6 +7729,19 @@
|
||||||
],
|
],
|
||||||
"usage": "hf xerox info [-hv]"
|
"usage": "hf xerox info [-hv]"
|
||||||
},
|
},
|
||||||
|
"hf xerox rdbl": {
|
||||||
|
"command": "hf xerox rdbl",
|
||||||
|
"description": "Read a Fuji/Xerox tag block",
|
||||||
|
"notes": [
|
||||||
|
"hf xerox rdbl -b 1"
|
||||||
|
],
|
||||||
|
"offline": false,
|
||||||
|
"options": [
|
||||||
|
"-h, --help This help",
|
||||||
|
"-b, --blk <dec> page number (0-255)"
|
||||||
|
],
|
||||||
|
"usage": "hf xerox rdbl [-h] -b <dec>"
|
||||||
|
},
|
||||||
"hf xerox reader": {
|
"hf xerox reader": {
|
||||||
"command": "hf xerox reader",
|
"command": "hf xerox reader",
|
||||||
"description": "Act as a 14443B reader to identify a Fuji Xerox based tag ISO/IEC 14443 type B based communications",
|
"description": "Act as a 14443B reader to identify a Fuji Xerox based tag ISO/IEC 14443 type B based communications",
|
||||||
|
@ -12373,8 +12386,8 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"commands_extracted": 713,
|
"commands_extracted": 714,
|
||||||
"extracted_by": "PM3Help2JSON v1.00",
|
"extracted_by": "PM3Help2JSON v1.00",
|
||||||
"extracted_on": "2024-01-26T11:38:54"
|
"extracted_on": "2024-01-28T10:16:20"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -782,6 +782,7 @@ Check column "offline" for their availability.
|
||||||
|`hf xerox dump `|N |`Read all memory pages of an Fuji/Xerox tag, save to file`
|
|`hf xerox dump `|N |`Read all memory pages of an Fuji/Xerox tag, save to file`
|
||||||
|`hf xerox reader `|N |`Act like a Fuji/Xerox reader`
|
|`hf xerox reader `|N |`Act like a Fuji/Xerox reader`
|
||||||
|`hf xerox view `|Y |`Display content from tag dump file`
|
|`hf xerox view `|Y |`Display content from tag dump file`
|
||||||
|
|`hf xerox rdbl `|N |`Read Fuji/Xerox block`
|
||||||
|
|
||||||
|
|
||||||
### hw
|
### hw
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue