doc/standalone/hf_mfcsim.md
Author: Ray Lee Frequency: HF (13.56 MHz) Hardware: RDV4 (requires flash memory)
Back to Standalone Modes Index | Source Code | Development Guide
Simulates MIFARE Classic 1K cards from dump files stored on flash. Supports up to 15 dump slots. Changes written by readers during simulation are saved back to the dump file.
When you have multiple MIFARE Classic card dumps (from hf mf dump or other tools) and need to emulate them on-site without a laptop. The 15-slot capacity covers multiple credentials, and the write-back feature preserves any reader-induced changes.
hf_mfcsim_dump_01.bin)| LED | Meaning |
|---|---|
| LEDs | Indicate current dump slot number (1–15) |
| Action | Effect |
|---|---|
| Short press | Next dump slot |
| Hold 500ms | Exit standalone mode |
stateDiagram-v2
[*] --> LoadSlot : Startup
LoadSlot --> Simulate : Dump loaded into emulator
Simulate --> WriteBack : Simulation stopped
WriteBack --> LoadNext : Short press\nSave, advance slot
LoadNext --> LoadSlot : Load next dump
Simulate --> [*] : Hold 500ms
note right of Simulate
Slots 01-15
Files: hf_mfcsim_dump_XX.bin
Each 1024 bytes (MFC 1K)
end note
Upload dumps before use:
mem spiffs load -s hf_mfcsim_dump_01.bin -d hf_mfcsim_dump_01.bin
mem spiffs load -s hf_mfcsim_dump_02.bin -d hf_mfcsim_dump_02.bin
...
Each file is 1024 bytes (MIFARE Classic 1K dump including sector keys).
make clean
make STANDALONE=HF_MFCSIM -j
./pm3-flash-fullimage