UID Changeable cards are used to duplicate Mifare Classic 4K access cards. Whilst generally it is best practice to use unique Mifare Classic 14443A cards for each user, there are some instances where you may wish to clone a card and have multiple cards with the same UID and data. For example access control with few users with no user having the ability to add new cards into the system. Or for access control that has a user limit which has been reached. All three types of cards can be programmed with the Proxmark3, ACR122U or ICopy-xs.
Commands – Proxmark3 & Icopy-xs (PC Mode)
hf mf gen3uid --uid 11223344
Mifare Gen3 Proxmark Commands (Iceman Firmware)
# change just UID:
hf mf gen3uid
# write block0:
hf mf gen3blk
# lock (uid/block0?) forever:
hf mf gen3freeze
See also
script run hf_mf_gen3_writer -h
Equivalent:
# change just UID:
hf 14a raw -s -c -t 2000 90FBCCCC07 11223344556677
# read block0:
hf 14a raw -s -c 3000
# write block0:
hf 14a raw -s -c -t 2000 90F0CCCC10 041219c3219316984200e32000000000
# lock (uid/block0?) forever:
hf 14a raw -s -c 90FD111100By ACR122U (PCSC Mifare Secure)
IMPORTANT:
The UID of MIFARE Classic® Compatible 4K UID Tags is comprised of two parts: the UID itself, and the BCC. The BCC is a checksum value calculated from the UID. If the BCC is incorrect, tag will be rejected by the reader.
Most RFID tools, such as the Proxmark, LibNFC, MCT etc automatically calculate the BCC when the UID is modified. If you are modifying the UID by hand, it is vital that the BCC is correctly calculated.
KSEC cannot provide support or refunds under any circumstances for cards that were ‘bricked’ due to incorrect UID/BCC configuration.






























I’m trying to write this particular card using a PN532 reader with libNFC. It seems like I broke something along the way - currently, trying to reformat with a blank read gives
The card was readable before I tried to write to it, it now seems to be (partially?) bricked.
Any advice on how to recover the card, if at all possible?
Hello,
This is a key part of it, Card is not DirectWrite (otherwise known as Gen2) commands.
We only provide support for Proxmarks with these cards, due to other RFID Readers not coping/being compatible with Gen3 commands. These are the recommended go to for RFID cloning over the LibNFC. You can find the proxmark commands for Gen3 Mifare cards here: proxmark3/doc/magic_cards_notes.md at master · RfidResearchGroup/proxmark3 · GitHub
@GameTec_live has just been working on these cards for the Chameleon Ultra. Any ideas?
As an update to any people out there trying to use libnfc - I’ve finally acquired a proxmark, and as far as I can tell the card may have been bricked by the failed libnfc write attempts – I can’t authenticate successfully to any sector of the card with the keys that were supposedly written to it, and the standard
hf mf autopwnattacks fail to recover any keys. However, the UID -change commandshf mf gen3report success: if I’m “lucky”, it’s possible that the other sector keys were simply scrambled. If anyone has more ideas for how to recover the card, I’d appreciate it.