Giter Site home page Giter Site logo

tf-utils's Introduction

TF Utils

Misc tools to help with CTF, ITF and Bundle files.

Intro

Ctfxtract script allows the extraction of specific fields from specific TCs in CTF/ITF/Bundle files.

TF Tools currently supports:

  • Parsing of CTF, ITF and Bundle files
  • Extraction of CLI specified fields to a .csv file

Usage

usage: ctfxtract.py [-h] -f FILENAME -tc TC -fields FIELDS

optional arguments:
  -h, --help            show this help message and exit

  -f FILENAME, --file FILENAME
                        Input CTF/ITF/Bundle file to be processed
  -tc TC, --transactioncode TC
                        Target transaction code (TC) to filter for
  -fields FIELDS, --fields FIELDS
                        Fields name to filter

Note: In order to be able to directly execute the file with ./ctfxtract.py instead of python ctfxtract.py, it is necessary to allow the file execution with:

chmod +x ctfxtract.py

Examples

./ctfxtract.py -f "FILENAME.ITF" -tc 05 -fields "Acquirer Reference Number,Merchant Category Code,Merchant City,Source Amount,Source Currency Code"
./ctfxtract.py -f files/TEST.ITF -tc 20 -fields "Transaction Identifier, Source Amount,Reason Code, Country Code,Event Date (MMDD),Message Text"

utils/pdf2dict.sh

The mappings.py file was generated with the help of pdf2dict.sh script. The script generates python dictionary entries directly from copy and paste of Visa pdf table contents.

  1. Paste the Visa pdf table content and save it to a file.
  2. Execute ./pdf2dict.sh /path/to/filename.
  3. Pdf2dict script will generate a /path/to/filename.csv with the resulting dictionary entries.

tf-utils's People

Contributors

robas avatar

tf-utils's Issues

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.