Git Product home page Git Product logo

filesignaturecollectors's Introduction

File Signature Collectors

Project focused on obtaining, processing and storing information related to "magic numbers" from the files.

You can save the data in a normal file (file_signatures - default) or in a sqlite file (file_signatures.sqlite - default).

Note: In the Byte Offset field, if it appears:

  • -512 => last 512 bytes.
  • +=188 => every 188th bytes.

Install

pip install filesignaturecollectors

How to use - Python

from filesignaturecollectors import Controller

# Initializes the counter.
c = Controller()

# gets data from source.
data1 = c.get_data_wiki()
data2 = c.get_data_gck()

# filters and concatenates the elements into a single list.
c.consolidate_data(data1, data2)

# gets the list of formatted items for storage.
data_formatted = c.get_dict_data()

# saves to normal file.
c.to_file(data=data_formatted)

# saves to sqlite file.
c.to_db(data=data_formatted)

How to use - CLI

$ collectfilesignatures -h
usage: collectfilesignatures [-h] [-a] [-w] [-g] [--to_file] [--to_db]

Collect file signatures from sources.

options:
  -h, --help  show this help message and exit
  -a, --all   Gets data from all collectors.
  -w, --wiki  Gets data from Wikipedia.
  -g, --gck   Gets data from GCK page.
  --to_file   Save the data into a file.
  --to_db     Save the data into a sqlite db.

An easy way to get file signatures.

Sources

filesignaturecollectors's People

Contributors

kurotom avatar

Watchers

 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.