Skip to content

An Android NFC app for reading, writing, analyzing, etc. MIFARE Classic RFID tags.

License

Notifications You must be signed in to change notification settings

lh414035210/MifareClassicTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MifareClassicTool

An Android NFC-App for reading/writing/analysing/etc Mifare Classic RFID-Tags.

  • Download MifareClassicTool (APK file, Version 1.0.0) here
  • Screenshots available here
  • Documentation (doxygen) online here

Features

  • Read Mifare Classic tags
  • Edit and save (dump) the tag data you read
  • Write to Mifare Classic tags (block-wise)
  • Clone Mifare Classic tags
    (Write dump from a tag to a new tag; except the first block.)
  • Key management based on dictionary-attack
    (Write the keys you know in a file (dictionary).
    MCT will try to authenticate with these keys against all sectors and read as much as possible.
    See chapter Getting Started.)
  • Create, edit and save key files (dictionaries)
  • Display the tag data as highlighted hex
  • Display the tag data as 7-Bit US-ASCII
  • Display the Mifare Classic Access Conditions as a table
  • Display Mifare Classic Value Blocks as integer
  • It's open source. ;)

General Information

This tool provides several features to interact with (and only with) Mifare Classic RFID-Tags. It is designed for users who are at least a bit familiar with the Mifare Classic technology. You also need an understanding of the hexadecimal number system, because all data input and output is in hexadecimal.

Some important thing are:

  • The features this tool provides are really basic. There are no such fancy things like saving an URL to a RFID-Tag with a nice looking graphical user interface. If you want so save things on a tag, you have to input the raw hexadecimal data.
  • This App can not crack/hack any Mifare Classic keys. If you want to read/write a RFID-Tag, you first need keys for this specific tag. For additional information please read/see chapter Getting Started.
  • There will be no "brute-force" attack possibility in this application. It is way to slow due to the protocol.

For further information about Mifare classic check Wikipedia, do some Google search or read the Mifare Classic (1k) 'Datasheet' (PDF) from NXP.

Getting Started

First of all you need the keys for the tag you want to read. Due to some weaknesses in Mifare Classic, you can retrieve all the keys (A and B) of a tag with tools like the Proxmark3 or normal RFID-Readers and some special software (mfcuk, mfoc).

The application comes with a standard key file called std.keys, which only contains the well known keys and some standard keys from a short Google search. You can try to read a tag with this key file using "Read Tag" from main menu.

Once you know some keys, you cam to put them into a simple text file (one key per line). You can do this on your PC and transfer the file to the MifareClassicTool/key-files/ directory (on external storage), or you can create a new key file via "Edit or Add Key File" from main menu. If you are finished setting up your key file, you can read a tag using "Read Tag" from main menu.

Advantages of the Key Files Concept:

  • You don't have to worry about which key is for which sector.
    The application tries to authenticate with all keys from the key
  • You don't have to know all the keys.
    If neither key A nor key B for a specific sector is found in the key file (dictionary), the application will skip reading this sector.

This dictionary-attack based mapping process (keys <-> sectors) makes it easy for you to read as much as possible with the keys you know!

License

This application is originally developed by Gerhard Klostermeier in cooperation withSySS GmbH (www.syss.de) in 2012/2013. It is an open source application and licensed under the GNU General Public License v3.0 (GPLv3)

Icons used in this application:

MIFARE is a registered trademark of NXP Semiconductors.

About

An Android NFC app for reading, writing, analyzing, etc. MIFARE Classic RFID tags.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 92.9%
  • HTML 5.1%
  • Python 1.8%
  • Shell 0.2%