tlvp is a CLI TLV parser specially designed to handle EMV data. This may be used by payment system researchers and practitioners to read TLV data (both binary and hex-encoded) in a formatted, organised way.
$ tlvp --help
tlvp is a TLV parser for EMV data
Usage:
tlvp [--describe] [--force-color|--no-color] [--help] [input]
--describe:
Outputs extra descriptions of tags
--force-color:
Forces color formatting
--help:
Displays this message
--no-color:
Disables color formatting
--pdol:
Reads data as a PDOL.
[input]:
Path to a file to be parsed. Standard input can also be used by piping
data into tlvp.
Bug reports:
Please file an issue: https://github.com/victorgama/tlvp/issues/new
License:
MIT. Copyright (C) 2020 - Victor Gama (hey@vito.io)
$ tlvp data.bin
[6F] File Control Information (FCI) Template
β Size: 64 bytes
βββ [84] Dedicated File (DF) Name
β Size: 07 bytes
...
$ tlvp data.txt
[6F] File Control Information (FCI) Template
β Size: 64 bytes
βββ [84] Dedicated File (DF) Name
β Size: 07 bytes
...
$ curl https://some.tlv.data.source | tlvp
[6F] File Control Information (FCI) Template
β Size: 64 bytes
βββ [84] Dedicated File (DF) Name
β Size: 07 bytes
...
$ tlvp --describe data.txt
[6F] File Control Information (FCI) Template
β Identifies the FCI template according to ISO/IEC 7816-4
β Size: 64 bytes
β
βββ [84] Dedicated File (DF) Name
β Identifies the name of the DF as described in ISO/IEC 7816-4
β Size: 07 bytes
...
Data included in tags.json was kindly provided by
Dr. Steven J. Murdoch. All rights reserved.
Such data is available at https://emvlab.org/emvtags/all/
The MIT License (MIT)
Copyright (c) 2014-2015 Victor Gama
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.
Data included in tags.json was kindly provided by Dr Steven J. Murdoch
(https://murdoch.is/). All rights reserved.
Data is available at https://emvlab.org/emvtags/all/