APDU-parser lets you parse your APDU commands' and APDU responses' hex bytes into their descriptions. Project includes default APDU commands and APDU responses default lists with descriptions.
python apdu_parser.py -i <input_file>
Options:
-h, --help show this help message and exit
-i INPUT_FILE, --input=INPUT_FILE specify input file
-o OUTPUT_FILE, --output=OUTPUT_FILE specify output file
-c, --commands specify if input file contains only APDU commands
-r, --responses specify if input file contains only APDU responses
-C COMMAND_DESCRIPTIONS, --command-descriptions=COMMAND_DESCRIPTIONS specify custom command descriptions file
-R RESPONSE_DESCRIPTIONS, --response-descriptions=RESPONSE_DESCRIPTIONS specify custom response descriptions file
-T, --colors show terminal output in different colors
Basic usage:
python apdu_parser.py -i sample_files/default_log.txt
Set output file:
python apdu_parser.py -i sample_files/default_log.txt -o outputs/default_log_output.txt
Parse every line in input file as an APDU command:
python apdu_parser.py -i sample_files/commands_log.txt -c
Parse every line in input file as an APDU response:
python apdu_parser.py -i sample_files/responses_log.txt -r
Set custom command descriptions file:
python apdu_parser.py -i sample_files/default_log.txt -C sample_files/custom_command_descriptions.txt
Set custom command responses file:
python apdu_parser.py -i sample_files/default_log.txt -R sample_files/custom_responses_descriptions.txt
Show output results in different colors in terminal (works only on Linux / MacOS):
python apdu_parser.py -i sample_files/default_log.txt -T
cmd string without space
parseAPDU.bat 00B2011400
cmd byte
parseAPDU.bat \x00\xB2\x01\x14\x00
To properly run the apdu-parser, Python 3.x is required.