Find file History
Latest commit 269fc54 Oct 29, 2016 @LudovicRousseau parseATR: use match_atr_differentiated()
The display now differentiate between exact and RE match.
The output is now something like:

{'3B 2A 00 80 65 A2 01 02 01 31 72 D6 43': ['MPCOS-EMV 64K Functional Sample', 'THALES nShield Security World', 'THALES NCIPHER product line'], '3B 2A 00 80 65 A2 01 .. .. .. 72 D6 43': ['Gemplus MPCOS EMV 4 Byte sectors']}
Exact match: 3B 2A 00 80 65 A2 01 02 01 31 72 D6 43
	 MPCOS-EMV 64K Functional Sample
	 THALES nShield Security World
	 THALES NCIPHER product line
Possibly identified card: 3B 2A 00 80 65 A2 01 .. .. .. 72 D6 43
	 Gemplus MPCOS EMV 4 Byte sectors

Thanks to Francois Chaumartin fro the idea.

README.rst

parseATR

This Python code parses a smart card ATR and display the result.

Author

Ludovic Rousseau <ludovic.rousseau@free.fr>

Licence

Copyright (C) 2009-2015 Ludovic Rousseau

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

parseATR.py

Display the result as text

Usage:

$ ./parseATR.py 3B A7 00 40 18 80 65 A2 08 01 01 52

parseATRhtml.py

Display the result as HTML

Usage:

$ ./parseATRhtml.py 3B A7 00 40 18 80 65 A2 08 01 01 52