Giter Site home page Giter Site logo

apdu-parser's Introduction

apdu-parser

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.

Usage

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

Examples

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

Requirements

To properly run the apdu-parser, Python 2.6.x or 2.7.x is required.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.