Back to Proxmark3

HF_MFCSIM — MIFARE Classic 1K Multi-Slot Simulator

doc/standalone/hf_mfcsim.md

4.92372.3 KB
Original Source

HF_MFCSIM — MIFARE Classic 1K Multi-Slot Simulator

Author: Ray Lee Frequency: HF (13.56 MHz) Hardware: RDV4 (requires flash memory)

Back to Standalone Modes Index | Source Code | Development Guide


What

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.

Why

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.

How

  1. Loads dump number 1 from flash (hf_mfcsim_dump_01.bin)
  2. Configures the emulator with full card data including all sector keys
  3. Begins simulation
  4. Cycle through slots for different cards
  5. Any writes from readers are saved back to the dump file

LED Indicators

LEDMeaning
LEDsIndicate current dump slot number (1–15)

Button Controls

ActionEffect
Short pressNext dump slot
Hold 500msExit standalone mode

State Machine

mermaid
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

Flash Files

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).

Compilation

make clean
make STANDALONE=HF_MFCSIM -j
./pm3-flash-fullimage