Commit Graph
2 Commits
Author SHA1 Message Date
Cam K 95026aea51 CHANGELOG: add entry for hf 14b dump Standard ISO14443-B support 2026-06-30 16:56:02 +08:00
Cam K f20813c90b hf 14b dump: implement Standard ISO14443-B card dumping
Replaces the "not implemented yet" stub for ISO14B_STANDARD card type.

Phase A performs a transparent READ BINARY sweep (ISO7816-4 INS=B0 with
15-bit P1/P2 offset), which covers simple memory cards that have an
implicit current EF.

Phase B performs an SFI scan (P1 bit 7 set, bits 4-0 = SFI 1-30), reading
each EF directly without requiring a prior SELECT EF.  This avoids SW=6986
("no current EF") returned by ISO7816-4 file-system cards.  SFI-form
addressing is limited to 256 bytes per EF per the standard.

Field state is tracked across phases so the WUPB+ATTRIB reconnect cost is
paid only once.  Collected data is displayed via a new print_std_blocks()
function (16-byte rows, offset/hex/ASCII columns, dense-output support) and
saved with the PUPI as filename via pm3_save_dump().

If neither phase yields data, actionable hints are printed directing the
user to hf 14b apdu or hf 14b ndefread for application-level access.
2026-06-30 16:49:03 +08:00