The gen2 branch refused `-u` with "Not supported on this card". These
cards do take a UID write: a five command knock, the new UID one byte
per command (always seven commands, zero padded), then a HLTA which
commits it. The card answers the halt instead of staying silent, and
without it everything before is discarded when the field drops - which
is why the sequence is absent from the vendor app, whose HLTA is emitted
by the Android NFC stack on teardown.
The new UID must match the card's current UID length, the parts are
physically 4b or 7b. Outcome is decided by re-selecting and comparing
the UID, not by the status byte.
Verified on a 4 byte card. The 7 byte path is inferred from the sequence
always carrying seven UID bytes and is untested.
A refused -r / -u now returns an error instead of PM3_SUCCESS.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Stage and verify a valid 4-byte UID before committing the clean configuration, propagate write failures, and preserve recovery when cleanup is incomplete. Correct the sector trailer template.
Co-Authored-By: OpenAI Codex <noreply@openai.com>
Corrects the claim that every block reads back as 00000000 after finalize.
On the tag tested, block 0x38 held 11223344 before finalize and block 0x20
held it afterwards, a shift of 0x18, while blocks 0x10/0x11 and 0x14/0x15
were cleared.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The notes said block 0x15 reads back as 69 E2 5D 00 after finalize. It reads
back as 00 00 00 00, and so does every other block.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The magic card notes listed "No implemented commands" for USCUID-UL,
but hf_mfu_uscuid.py and hf_mf_uscuid_prog.lua both drive these cards
(config, type, UID, signature, backdoor read/write). Document both
scripts and how to set the tag signature, and correct the script name
shown in the lua script's own usage text.
Update to include USCUID-UL chips
Removed hidden block reading and writing from UFUID chips, as these do not have hidden blocks.
Signed-off-by: Akury83 <87064827+Akury83@users.noreply.github.com>