hf iclass view: surface unhandled SIO TLV tags in Insights

print_iclass_sio_decoded() silently dropped any TLV tag it did not
explicitly handle. Real credentials (e.g. SR) carry context tags such as
[5]/[9] that were therefore invisible in the Insights output, even though
the raw block dump and the --verbose ASN1 view showed them.

Print unhandled tags as 'Unknown tag 0xNN : <hex>' so the human-readable
Insights view is lossless. No semantic guessing is done; --verbose still
provides the full ASN1 TLV.
This commit is contained in:
Jooyoung committed 2026-09-19 02:22:01 -04:00
1 parent 2c955d7deb
commit bdaaf9fd85
2 files changed
+7

No files matched your search

+4
View File
@@ -5293,6 +5293,10 @@ static void print_iclass_sio_decoded(uint8_t *sio, size_t sio_len) {
break;
}
default:
// Surface tags we don't decode yet instead of dropping them silently.
// Real credentials (e.g. SR) carry context tags such as [5]/[9] that
// would otherwise be invisible here; `--verbose` shows the full ASN1 TLV.
PrintAndLogEx(INFO, " Unknown tag 0x%02X : " _YELLOW_("%s"), tag, sprint_hex_inrow(val, len));
break;
}
}