Giter Club home page Giter Club logo

filesigchecker's Introduction

FileSigChecker

Simple CLI application for file type (signature) check by magical numbers.

Requirements:

.NET 6 Runtime

OS Support

Windows, Linux and MacOS

Description

FileSigChecker will check the first 50 bytes of a file and searches in ext_list.txt for the hex file singature and returns the found file type. The file ext_list.txt must be created in the FileSigChecker binary location and data should look similar to the following image:

alt text

The data in line it must be splited by ' | ' character. Example of ext_list:

4D 5A|COM, DLL, DRV, EXE, PIF, QTS, QTX, SYS| Windows executable files.
FF D8 FF|JFIF, JPE, JPEG, JPG| 	JPEG/JFIF graphics file
25 50 44 46|PDF|Adobe Portable Document Format, Forms Document Format, and Illustrator graphics files
FF Ex|MP3|MPEG audio file frame synch pattern
FF Fx|MP3|MPEG audio file frame synch pattern
66 74 79 70 4D 53 4E 56|MP4|MPEG-4 video file
66 74 79 70 69 73 6F 6D|MP4|MPEG-4 video file
89 50 4E 47 0D 0A 1A 0A|PNG|Portable Network Graphics file

A list of file signatures can be found here: https://en.wikipedia.org/wiki/List_of_file_signatures

Commands

FileSigChecker.exe <file_path>      : Display file path, extension, hex signature, and signature description.
FileSigChecker.exe <file_path> -ext : Display extension only.
FileSigChecker.exe -h               : Display this help message.

Sample output

-------------------------------------------------------------
File:          C:\Users\MrX\Projects\CIARE\CIARE\bin\Debug\net6.0-windows\CIARE.exe
Extension(s): COM, DLL, DRV, EXE, PIF, QTS, QTX, SYS
Hex signature: 4D 5A
Description:    Windows executable files.
-------------------------------------------------------------

Sample video

FileSigChecker.mp4

filesigchecker's People

Contributors

0x78654c avatar mkbmain avatar

Stargazers

Yohannes Tezera avatar Baluta Laurentiu Marian avatar  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.