- Removed 'Known Issues in the Iceman Repo' table as requested
- Maintained manual pipeline steps and troubleshooting sections
- See PR #3090 discussion for context
Step-by-step guide for recovering all sector keys from Fudan FM11RF08S
MIFARE Classic 1K cards when the automated fm11rf08s_recovery.py script
fails due to missing _pm3 SWIG bindings, hardcoded tool paths, or
backdoor auth errors.
Documents a manual pipeline using hf mf isen for nonce collection,
staticnested_1nt for offline candidate generation, and hf mf fchk for
brute force verification. Includes troubleshooting for known issues
(#2553, #2565, #2689, #2766, #2838) and timing expectations.
Tested on RDV4 with Iceman firmware v4.20728 on macOS (aarch64).
The changefs command was using memcpy on a fixed struct layout to
serialize
SDM settings, which caused SDM offset fields to be written incorrectly.
The struct's sdm_data[8][3] array was copied contiguously, but the NTAG
424
DNA specification (AN12196) requires certain offset fields to be
conditionally
omitted based on the SDM configuration.
This resulted in:
- Plain mode: MAC offsets not written correctly
- PICC mode: MAC offsets not written correctly
- Both modes producing cmac=0000000000000000
The fix replaces the memcpy-based approach with dynamic payload building
that
conditionally includes only the required SDM offset fields in the
correct order:
- UIDOffset (only if UID option + plain mode sdmMetaRead=0xE)
- SDMReadCtrOffset (only if counter option + plain mode)
- PICCDataOffset (only if encrypted PICC mode sdmMetaRead<=0x04)
- SDMMACInputOffset (only if file read enabled)
- SDMEncOffset + SDMEncLength (only if encrypted file data enabled)
- SDMMACOffset (only if file read enabled)
- SDMReadCtrLimit (only if limit option set)