Read Mifare Read all data blocks from Mifare TAGs, using transport (or specified) keys and optionally copy data to a blank or reset TAG to factory defaults. Mifare Classic 1k tag contains 16 sectors. Each of these sectors has 3 blocks of data storage and 1 block for storing the secret access keys and access controls. Each block contains 16 bytes of data.
Before reading a sector, the reader must authenticate to the tag with a secret access key. Each sector has two keys: Key A and Key B
Each of the 16 sectors can define it’s own access right and wich key is needed for a particular action. As an example you can define to use Key A for reading the block and Key B for writing to it.
Sector 0 Block 0 also contains a non changeable UID (the tags unique ID) and some manufacturer data. This section is only writeable on some special chinese tags.
-d Debug on -f <num> Use LibNFC device number <num> (implies -R READER_LIBNFC) -g No GUI -h Print detailed help message -n No Init - do not initialise hardware -N List available LibNFC devices -r <num> Use PCSC device number <num> (implies -R READER_PCSC) -R <type> Reader/writer type: READER_ACG: ACG Serial READER_ACS: PC/SC Subtype ACS READER_ANDROID: Android READER_DEMOTAG: DemoTag READER_FROSCH: Frosch Hitag READER_LIBNFC: libnfc READER_NONE: None READER_OMNIKEY: PC/SC Subtype OmniKey READER_PCSC: PC/SC READER_SCM: PC/SC Subtype SCM -l <line> Line to use for reader/writer -L List available PCSC devices -s <baud> Speed of reader/writer -t <seconds> Timeout for inactivity of reader/writer
cyborg@cyborg:~$ sudo readmifaresimple.py