Skip to content

Simple file type (signature) checker by magical numbers.

License

Notifications You must be signed in to change notification settings

0x78654C/FileSigChecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple file type (signature) checker by magical numbers.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages