Code Monkey home page Code Monkey logo

ufilan's Introduction

UFilAn

The UFilAn Universal File Analyzer provides a simple to use file analyzing functionality. Main features:

  • Read and write data from/to file or stdin
  • Provides grpahical and text output
  • Plots histogram and byte distributions
  • Easy to use command line to combine ufilan with other unix tools
  • ...
Usage: java -jar ufilan [-if <inputfile>] [-of <outputfile>] [-c <chunksize>] 
                        [-s <seeksize>] -a <action> [<actionparam>]

-if <inputfile>              path of the input file. If null the stdin is used
-of <outputfile>             path of the output file. If null stdout is used
-c  <chunksize>              chunk size in bytes used for input parsing. Default value: 1 byte
-s  <seeksize>               skips the given number of bytes start parsing. Default value: 0 byte
-a  histogram                generate a text or graphic histogram. Param "text" or "img".
    map                      generate a graphic distribution map
    type                     analyze the input to determine the type
    size                     calculate the input size
    entropy                  calculate the entropy

Simple examples:

  • Read data from stdin and print the type to stdout
java -jar ufilan -a type
  • Read data from stdin and save the graphic histogram to /tmp/histogram.bmp
java -jar ufilan -of /tmp/histogram.bmp -a histogram img
  • Read data from /tmp/in.xml and print the entropy information to stdout
java -jar ufilan -if /tmp/in.bmp -a entropy

Advanced examples:

  • Read data from /tmp/input.txt with 2 byte chunks, skip the first 10 byte and print the most recent chunks
java -jar ufilan -if /tmp/input.txt -c 2 -s 10 -a histogram txt | head -n 11
  • Calculate the entropy of the unix random number generator
dd if=/dev/urandom bs=1 count=100k | java -jar ufilan -a entropy

Special thanks to j256 for the awesome simplemagic library

ufilan's People

Contributors

overlinden avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

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.