Skip to content

Write / Simulate

WRITE / SIM is for a credential you already know. You type the facility code and card number, then either burn it onto a blank or transmit it at a reader. Which of the two you get is decided by ACTION, and the list is filtered so it never offers something the selection cannot do.

1 Fill it in
The CORP form with Prox, 26-bit H10301, facility code 123 and card number 45678
2 Writing
The output sheet reading Writing LF Card with write attempt 1 of 5 and the parity check passing
3 Written
The result sheet reading Card Written, PROX 26-bit, FC 123, CN 45678, confirmed by reading the card back
A 26-bit H10301 written to a T5577 on a Proxmark 5, and verified.
  1. CARD TYPE decides which fields appear below it.
  2. The ranges in these labels follow the bit length you picked.
  3. ACTION, with whatever the chosen type cannot do removed from the list.
  4. Writing LF Card, counting attempts out of five.
  5. The parity check on what is going down.
  6. Move Card Slowly between attempts. A T5577 takes the write at one position.
  7. Card Written, with a green check.
  8. What it says it wrote.
  9. Confirmed by reading the card back. The Proxmark re-read the blank and matched the facility code and card number.
  1. Put the blank on the Proxmark antenna. Which blank depends on the type, and the table below says which.
  2. Pick CARD TYPE and BIT LENGTH, then fill in CARD DATA.
  3. Leave ACTION on Write and press WRITE CARD.
  4. An output sheet opens and reports each attempt. The run above read:
Output sheet ATLAS
WRITE ATTEMPT 1 OF 5[=] Preparing to clone HID tag[+] [H10301  ] HID H10301 26-bit  FC: 123  CN: 45678  parity ( ok )[+] Done!
  1. It finishes Card Written, naming what it wrote, and adds Confirmed by reading the card back. That line means the Proxmark ran lf hid reader afterward and read the facility code and card number back off the blank. It is the weaker of the two confirmations ATLAS prints, and on Prox it is the only one reachable. See LF write configuration for the stronger one and the formats that can produce it.
1 Fill it in
The CORP Write / Sim form with Prox, 26-bit H10301, Facility Code 123, Card Number 45678 and ACTION set to Simulate Card
2 Transmitting
The output sheet headed Simulating with the command lf hid sim -w H10301 --fc 123 --cn 45678 and a red STOP button
3 Stopped
The output sheet headed Simulation Complete with a green check and the zoom at 54 percent, showing the HID and Indala decodes, found 2 matching 26-bit formats, the FSK parameters and Done
A 26-bit H10301 transmitted from the Proxmark antenna with no card involved, and stopped.
  1. CARD TYPE decides which fields appear below.
  2. BIT LENGTH names the Wiegand format, not just the number.
  3. The ranges in these labels move with the bit length. Read them.
  4. ACTION. Switching to Simulate Card changes the commit button with it.
  5. Simulating, with a live spinner.
  6. The exact Proxmark command, so the app is never a black box.
  7. Two ways to stop it, the device button or STOP on the sheet.
  8. Simulation Complete. The sheet opens sized to fit, here at 54 percent, with zoom beside it.
  9. The same 26 bits decode as two different formats.
  10. The FSK parameters the Proxmark actually transmitted with.
  1. Pick CARD TYPE and BIT LENGTH, then fill in CARD DATA.
  2. Set ACTION. The commit button follows it, reading WRITE CARD for Write and SIMULATE CARD for Simulate.
  3. For a write, put the blank on the Proxmark antenna first. For a simulate, present the antenna where a card would go, with no blank involved.
  4. Press the commit button. An output sheet opens and reports what the Proxmark did.
  5. Stop a simulate with STOP on the sheet or the button on the Proxmark itself. A write ends on its own.

A simulate reports what it is transmitting, and on a 26-bit frame that is rarely one thing:

Proxmark client proxmark3
[=] Simulating HID tag[+] [H10301  ] HID H10301 26-bit  FC: 123  CN: 45678  parity ( ok )[+] [ind26   ] Indala 26-bit      FC: 1979 CN: 622    parity ( ok )[=] found 2 matching 26-bit formats[#] FSK simulating with rf/50, fc high 10, fc low 8, STT 0, n 4800

The same 26 bits are a valid H10301 credential carrying FC 123 CN 45678 and a valid Indala 26-bit credential carrying FC 1979 CN 622, both with correct parity. Which one a door sees is decided by how its reader is configured, not by what you typed.

ACTION holds Write and Simulate Card, and the list is filtered so that it never offers something the selection cannot do.

  • Write burns the credential onto a blank. Low frequency writes go out as the Proxmark’s own clone command, which targets a writable T5577. An iCLASS write is an encode onto a writable iCLASS card using the default key. A PIV, MIFARE Classic 1K, MIFARE Classic 4K or MIFARE Mini write puts the UID and nothing else onto a Gen1a magic card, which is its own section below.
  • Simulate Card transmits the credential from the Proxmark antenna, with no blank involved. Present the antenna where a card would go, and stop it with the Proxmark button or the on screen Stop.

Three selections take an option away, and each refusal is a real limit rather than a missing feature.

SelectionWhat you getWhy
iCLASSWrite onlythe firmware encodes iCLASS onto a card, and does not transmit it
Indala 27-bit and 29-bitSimulate Card onlythe firmware transmits these layouts but can only encode the 26-bit one onto a tag
MIFARE Ultralight, Ultralight EV1 / NTAG215, DESFireSimulate Card onlythese carry a 7 byte UID, and writing 7 bytes over a Gen1a’s block 0 lands on the check byte and the SAK, after which the card stops answering at all

The commit button reads Write Card when the action is Write and Simulate Card when it is Simulate. Reset beside it clears the form without touching the device.

Seven card types put a CARD UID field on the form, and the field is the whole payload. Nothing else is copied.

Card typeWriteSimulate
PIVyes, as a 4-byte UID with the magic card’s own SAK left aloneyes
MIFARE Classic 1Kyes, UID plus SAK 08yes
MIFARE Classic 4Kyes, UID plus SAK 18yes
MIFARE Miniyes, UID plus SAK 09yes
MIFARE Ultralightno. Simulate onlyyes
MIFARE Ultralight EV1 / NTAG215no. Simulate onlyyes
MIFARE DESFireno. Simulate onlyyes

The field is labeled UID (8 or 14 hex) and hints e.g., 04A2B3C4. It accepts hex digits, spaces and colons, and the spaces and colons are stripped before anything is done with them. Under it the form states what the write will and will not achieve.

UID only, to a magic card. Will not open a door whose decision needs keys you do not have.

What you didWhat you get
Left CARD UID emptya Validation Error sheet reading Enter the card UID.
Typed anything other than 8 or 14 hex charactersa Validation Error sheet reading UID must be 8 or 14 hex characters (4-byte or 7-byte). 12 entered., with your own count in it
Typed 14 hex characters with ACTION on Writea Cannot Build Command sheet reading MIFARE Classic 1K takes a 4-byte UID, 8 hex characters. 7 bytes entered., naming the type you picked
Picked a simulate-only type and left ACTION on Writea Cannot Build Command sheet reading MIFARE Ultralight is simulate only. It cannot be written to a magic card.

The field takes 14 hex characters because Simulate Card transmits a 7-byte UID without complaint. A write of one is refused, because a 7-byte UID laid into a Gen1a’s block 0 overruns the check byte, the SAK and the low ATQA byte, after which the card answers nothing at all. ACTION has already removed Write for the three families that only carry 7-byte UIDs, so the refusal is reachable only by typing fourteen characters into a 4-byte family.

The sheet is headed Complete and opens COMMAND COMPLETE, then the client’s own last line, then the full PROXMARK OUTPUT. A warning also appears across the bottom of the screen.

UID only. Opens a door only where the serial is the credential.

Appended to the transcript, under a UID-ONLY WRITE heading, are five rows. They are there rather than in the toast so they are still readable when you write the finding up.

RowWhat it says
WROTEUID only. No keys, no sector data, no application data.
OPENSDoors whose decision resolves to the card serial: CSN mode, a serial enrolled at the head end, a secure read that falls back to CSN, or a lock whitelisting serials.
DENIEDDoors enrolled on an authenticated payload: Seos, SIO, DESFire AES, PIV. Serial reading is often on anyway, so expect a read followed by a deny.
MUST MATCHThe enrolled number, not just the UID. Classic CSN is 32 bits, DESFire EV1 is 56. A 7-byte source may not present the number that was enrolled.
ALSO FAILSReaders that probe the magic backdoor, or that check ATQA, SAK and ATS against the card type.

Writing iCLASS, and reading the result properly

Section titled “Writing iCLASS, and reading the result properly”

An iCLASS write is a different command. It encodes onto the card using the default key rather than cloning a tag, and it reports one line per block.

The result sheet for a successful iCLASS write showing four blocks each reporting ok with the written data
A good write. Four blocks, each ( ok ), each echoing what went down.
  1. Complete, not Card Written. An iCLASS encode reports differently.
  2. One line per block, and every one has to read ( ok ).
Proxmark client proxmark3
[+] Using key[0] AE A6 84 A6 DA B2 32 78[+] Write block 6/0x06 ( ok )  --> 030303030003E017[+] Write block 7/0x07 ( ok )  --> 788DA15C0D71F327[+] Write block 8/0x08 ( ok )  --> 2AD4C8211F996871[+] Write block 9/0x09 ( ok )  --> 2AD4C8211F996871

A bad write looks almost the same at a glance and is completely different.

The result sheet for a failed iCLASS write, headed Command Failed in red, with four blocks each reporting fail
The same card and the same settings, with the card not coupling. Nothing was written.
  1. Command Failed, in red.
  2. Every block ( fail ). The card never coupled and nothing went down.
Proxmark client proxmark3
[=] Write block 6/0x06 ( fail )[=] Write block 7/0x07 ( fail )[=] Write block 8/0x08 ( fail )[=] Write block 9/0x09 ( fail )