GithubHelp home page GithubHelp logo

primus27 / file-type-metadata-comparison Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 4.14 MB

Compare file extensions with their actual file type extension. For use in digital forensics.

License: GNU General Public License v3.0

Python 100.00%

file-type-metadata-comparison's Introduction

Exif Metadata Comparison

Features

  • Search all files in a specified directory (absolute/relative)
    • Compares their file extensions (as seen in explorer) to the file extension of that file type
    • Reports on whether they match
  • Logging functionality
    • Partial: Only include errors
    • Full: Include everything

Application demo (fake credentials used)

Requirements and Installation

  • Python 3.6+
  • Unix (tested)
  • Install all dependencies from the requirements.txt file. pip3 install -r requirements.txt

Arguments

Required arguments:

  • -sP SCAN_PATH || --scanPath SCAN_PATH
    • Scan path (absolute or relative)

Optional arguments:

  • -l || --log

    • Enable logging of errors to "ExtExif.log"
    • Default: Disabled
  • -la || --logAll

    • Enable logging of successful results and errors to "ExtExif.log"
    • Note: Only logs whether a search was successful or not. It does not include the comparison results (though it does include the results from exiftool).
    • Default: Disabled
  • -o || --toOutput

    • Disable ASCII escape codes that would be output if the file was redirected.
    • Note: This removes text colouring in the terminal during a scan.
    • Default: Disabled (Therefore shows coloured text in terminal)
  • --version

    • Display program version

Usage

  • Run ExtExif.py in terminal with arguments (see above)

Starter commands

  • Run scan
    • python3 ExtExif.py -sP SCAN_PATH
  • Run scan w/ error log
    • python3 ExtExif.py -sP SCAN_PATH -l
  • Run scan and output results to a file
    • python3 ExtExif.py -sP SCAN_PATH -o >> RESULTS_FILE

Changelog

Version 1.0 - Initial release

  • File and folder scanner for file type extension match
    • Can be relative path or absolute path
    • Returns results ready for output (using flag)
  • Output errors and/or successful results to a log file

Version 1.1 - Bug fixes

  • Fixed general bugs
  • Fixed a bug that prevented paths with spaces to be properly scanned

TO DO

  • Refactor logging blocks to make maintenance easier.

file-type-metadata-comparison's People

Contributors

primus27 avatar

Stargazers

 avatar

Watchers

 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.