This commit is contained in:
iceman1001 2024-01-28 11:16:45 +01:00
parent 6104086374
commit 5028d6f664
8 changed files with 50 additions and 35 deletions

View file

@ -886,7 +886,7 @@ static int NxpSysInfo(uint8_t *uid) {
// 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
@ -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);

View file

@ -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;
} }

View file

@ -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,
}; };

View file

@ -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" },

View file

@ -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"
} }
} }

View file

@ -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