Back to Proxmark3

HF_LEGIC — Legic Prime Read/Simulate

doc/standalone/hf_legic.md

4.92371.7 KB
Original Source

HF_LEGIC — Legic Prime Read/Simulate

Author: uhei Frequency: HF (13.56 MHz) Hardware: Generic Proxmark3

Back to Standalone Modes Index | Source Code | Development Guide


What

Reads Legic Prime tags and simulates them. Auto-detects card type (MIM256, MIM512, MIM1024).

Why

Legic Prime is a proprietary HF contactless technology used in European access control, time & attendance, and vending systems. This mode provides standalone read-and-replay capability.

How

  1. Search: Continuously scans for Legic Prime tags
  2. Read: On detection, dumps the tag memory (auto-detects size)
  3. Simulate: Broadcasts the captured tag data

LED Indicators

LEDMeaning
C (solid)Searching for tag
A + B + C (solid)Reading tag
A + D (solid)Simulating tag

Button Controls

ActionEffect
Hold 280msExit standalone mode
USB commandExit standalone mode

State Machine

mermaid
stateDiagram-v2
    [*] --> Search : Startup\nLED_C

    Search --> Read : Legic Prime found\nLED_A+B+C
    Read --> Simulate : Tag dumped\nLED_A+D

    Simulate --> Search : Loop back
    Read --> Search : Read failed

    Search --> [*] : Button hold / USB data
    Simulate --> [*] : Button hold / USB data

Compilation

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