This is the Python-based CLI for PN532 and PN532Killer working on HSU (Hight Speed UART) mode. If you're using the PN532 development board, remember to switch the mode to HSU.
- PN532 with USB Serial Chip on HSU Mode
- All-in-one PN532
- PN532Killer
Install Python 3.9+ then run the following command:
cd script
pip install -r requirements.txtPC/SC support uses pyscard, included in the requirements. On Debian/Ubuntu,
install swig, libpcsclite-dev and pcscd before installing the Python
requirements, and ensure the PC/SC service is running. Use the same Python
environment to install dependencies and launch the CLI.
Run the main script with the following command:
cd script
python pn532_cli_main.pyRun with debug mode enabled, every raw data will be printed out:
# Python script in Terminal
python pn532_cli_main.py --debug
# Windows executable in Terminal
pn532_cli_main.exe --debug
# Linux or MacOS executable in Terminal
./pn532_cli_main --debugWith compatible reader firmware, such as Phreakbyte's Chameleon Ultra firmware
built with STANDALONE_ACR122U=1 and running in ACR122U standalone mode, connect
from the CLI using:
hw connect -p pcsc:ChameleonUltra
hw version
hf 14a scan
pcsc:<name> matches a reader name without case sensitivity. pcsc: selects
an ACR122U reader if present, otherwise the first PC/SC reader. On macOS the
Chameleon reader name may contain ChameleonUltra rather than ACR122U.
Keep a test card on the reader when connecting. Supported commands depend on
the reader firmware; this interface does not provide full PN532 compatibility.
- Read and write Mifare Classic Mini, 1K, 4K
- Read and write MiFare Ultralight
- Magic commands for Gen1a, Gen3, Gen4 UMC
- Send ISO14443A raw commands
- NTAG Emulate
- Tag Reader (MF1, Icode, EM4100)
- Tag Emulator
- MFkey32v2
- MFkey64
- Staticnested attack
libnfc
Proxmark3
Chameleon Ultra
The MIT License (MIT) Copyright (c) 2016 Manuel Fernando Galindo
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
