How To Fix Magic Mifare Classic Card

The Magic Mifare Classic 1K card has not only changeable UID but also full backer door command support. When we write error data to the magic card cards, they also can be no response or dead. Here's the tutorial to fix the Magic Mifare Classic Card.

When to fix magic card?

  1. It was written with an invalid SAK byte.
    The valid SAK bytes are 08, 18, 28.
    If the other Hex numbers are written to the card, there will be NO response to NFC at all.
  2. It has an invalid access control byte.
    The default access control byte is FF078069.
    The sector with an invalid access control byte will be a dead sector.

How to fix it?

Install libnfc tool

On Linux

  1. Get the code git clone
  2. Compile and Install
cd libnfc
autoreconf -vis
./configure --with-drivers=pn532_uart --enable-serial-autoprobe --prefix=/usr/local/
sudo make clean all
sudo make
sudo make install

On MacOS

  1. Run in Terminal and press enter key.
    ruby -e "$(curl -fsSL" < /dev/null 2> /dev/null  
  2. Run: brew install libnfc


RFID PN532 in made by MToolsTec is all in one design that will support connection with both Micro-USB and Type-C.

Learn More | Shop Now


  1. Using nfc-mfsetuid to reset uid to 11223344. (UID and SAK byte fixed)
  2. Using nfc-mfsetuid F148F784 -f to reset uid to F148F784 and format all sectors.

On Windows

  1. Download MifareOne Tool Download Now
  2. Connect RFID PN532 with USB cable.
  3. Install the Driver of CH340 USB serial. Download Now
  4. Click on Reset UID or Format UID button to handle the reset process.