Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
libfreefare — A convenience API for NFC cards manipulations on top of libnfc. | Kitploit
Tools/GitHubGitHub/nfc-tools/libfreefare
Embedded Systems SecurityIoT SecurityRFID/NFC ToolsHardware SecurityHardware & IoT Security
GitHubnfc-tools/libfreefare

libfreefare

A convenience API for NFC cards manipulations on top of libnfc.

View Repository
4751142 years agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Introduction

Build Status Join the chat at https://gitter.im/nfc-tools/libfreefare

The libfreefare project provides a convenient API for MIFARE card manipulations.

It is part of the nfc-tools, you can find more info on them on the nfc-tools wiki.

If you are new to libfreefare or the nfc-tools, you should collect useful information on the project website and the dedicated forums.

Feature matrix

Tags

TagStatus
FeliCa LiteSupported
MIFARE Classic 1kSupported
MIFARE Classic 4kSupported
MIFARE DESFire 2kSupported
MIFARE DESFire 4kSupported
MIFARE DESFire 8kSupported
MIFARE DESFire EV1Supported
MIFARE MiniSupported
MIFARE Plus S 2kNot supported
MIFARE Plus S 4kNot supported
MIFARE Plus X 2kNot supported
MIFARE Plus X 4kNot supported
MIFARE UltralightSupported
MIFARE Ultralight CSupported
NTAG21xSupported

Specifications

SpecificationStatus
Mifare Application Directory (MAD) v1Supported
Mifare Application Directory (MAD) v2Supported
Mifare Application Directory (MAD) v3Supported (part of Mifare DESFire support)

Installation

For *NIX systems

You can use released version (see Download section) or development version:

First, ensure all dependencies are installed:

  • libnfc;
  • git;
  • Autotools (autoconf, automake, libtool);
  • OpenSSL development package.
root@kitploit:~
apt-get install autoconf automake git libtool libssl-dev pkg-config

Clone this repository:

root@kitploit:~
git clone https://github.com/nfc-tools/libfreefare.git
cd libfreefare

Before compiling, remember to run:

root@kitploit:~
autoreconf -vis

You can now compile libfreefare the usual autotools way:

root@kitploit:~
./configure --prefix=/usr
make
sudo make install

For Windows Systems

Requirements

  • cmake
  • make
  • mingw{32,64}-gcc

Building

root@kitploit:~
mingw64-cmake -DLIBNFC_INCLUDE_DIRS=/path/to/libnfc-source/include  -DLIBNFC_LIBRARIES=/path/to/libnfc.dll
mingw64-make

Debug

In order to debug using gdb, you should tune the CFLAGS:

root@kitploit:~
CFLAGS="-O0 -ggdb" ./configure --prefix=/usr
make clean all

It is then possible to debug examples using this kind of command from the root of the repository:

root@kitploit:~
./libtool --mode=execute gdb examples/mifare-classic-write-ndef

If you are only interested in viewing transfert traces between the PCD and the PICC, simply use the --enable-debug configure flag:

root@kitploit:~
./configure --enable-debug
make clean all
Download Tool