Mifare Classic Plus - Mfoc + Hardnested + mfkey32v2 Attack Implementation for PN532+PL2303
Follow the steps in the link below to register your reader and UART on your computer:
How to Use PN532 on macOS with libnfc, mfoc, and mfcuk
Make sure you have the following:
- PN532, PN532 BLE, or PCR532 Reader
- USB Cable
- macOS 10.12 or later
The PN532 and PCR532 Readers from MTools Tec use the CH340E USB-to-serial chip. To communicate with the reader, install the USB serial driver:
-
Download the driver from the CH340G USB Serial Driver URL. This driver is also included in the reader package.
-
Open the
CH34xVCPDriver
app and click the install button. -
Reboot your computer after installation.
-
Test the installation by running this command in your terminal:
ls /dev/tty.*
-
You should see something like
/dev/tty.wchusbserial1410
. The port name may vary.
-
Install Homebrew if you don’t already have it.
-
Run the following commands to install and link
libnfc
:brew install libnfc brew link libnfc
-
Plug in your PN532 or PCR532 Reader. Your system should automatically detect the USB serial port. Run
nfc-list
to check if the reader is recognized:nfc-list
You should see output like this:
➜ ~ nfc-list nfc-list uses libnfc 1.8.0 NFC device: pn532_uart:/dev/tty.usbserial-2140 opened 1 ISO14443A passive target(s) found: ISO/IEC 14443A (106 kbps) target: ATQA (SENS_RES): 00 04 UID (NFCID1): 01 02 03 04 SAK (SEL_RES): 08
If you encounter the error Unable to open NFC device: pn532_uart:/dev/tty.wchusbserialxxxxxx
, follow these steps to modify the libnfc configuration:
-
Open the libnfc configuration file:
sudo nano /usr/local/etc/nfc/libnfc.conf
-
Make the following changes:
-
Set
allow_autoscan = false
-
Set
allow_intrusive_scan = false
-
Update
device.name
to:device.name = "pn532_uart:/dev/tty.wchusbserialxxxxxx:pn532"
-
-
Save the file and exit. Run
nfc-list
again; the issue should be resolved.
Here is the pin connection and pn532 pin layout
For an automated installation, use the following script:
./miLazyCrackerFreshInstall.sh