mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-23 22:55:37 -07:00
emrtd: Account for undocumented 5F85 tag
This commit is contained in:
parent
3e4a03ec33
commit
9bed791026
1 changed files with 11 additions and 0 deletions
|
@ -1249,6 +1249,14 @@ static void emrtd_print_personalization_timestamp(uint8_t *data) {
|
||||||
PrintAndLogEx(SUCCESS, "Personalization at....: " _YELLOW_("%s"), final_date);
|
PrintAndLogEx(SUCCESS, "Personalization at....: " _YELLOW_("%s"), final_date);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void emrtd_print_unknown_timestamp_5f85(uint8_t *data) {
|
||||||
|
char final_date[20] = { 0x00 };
|
||||||
|
sprintf(final_date, "%.4s-%.2s-%.2s %.2s:%.2s:%.2s", data, data + 4, data + 6, data + 8, data + 10, data + 12);
|
||||||
|
|
||||||
|
PrintAndLogEx(SUCCESS, "Unknown timestamp 5F85: " _YELLOW_("%s"), final_date);
|
||||||
|
PrintAndLogEx(HINT, "This is very likely the personalization timestamp, but it is using an undocumented tag.");
|
||||||
|
}
|
||||||
|
|
||||||
static bool emrtd_print_ef_dg1_info(uint8_t *response, int resplen) {
|
static bool emrtd_print_ef_dg1_info(uint8_t *response, int resplen) {
|
||||||
int td_variant = 0;
|
int td_variant = 0;
|
||||||
|
|
||||||
|
@ -1461,6 +1469,9 @@ static bool emrtd_print_ef_dg12_info(uint8_t *response, int resplen) {
|
||||||
case 0x56:
|
case 0x56:
|
||||||
PrintAndLogEx(SUCCESS, "Serial of Personalization System: " _YELLOW_("%.*s"), tagdatalen, tagdata);
|
PrintAndLogEx(SUCCESS, "Serial of Personalization System: " _YELLOW_("%.*s"), tagdatalen, tagdata);
|
||||||
break;
|
break;
|
||||||
|
case 0x85:
|
||||||
|
emrtd_print_unknown_timestamp_5f85(tagdata);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
PrintAndLogEx(SUCCESS, "Unknown Field %02X%02X....: %s", taglist[i], taglist[i + 1], sprint_hex_inrow(tagdata, tagdatalen));
|
PrintAndLogEx(SUCCESS, "Unknown Field %02X%02X....: %s", taglist[i], taglist[i + 1], sprint_hex_inrow(tagdata, tagdatalen));
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue