Skip to content

CLI tool for detecting file types based on their signatures (magic bytes).

License

Notifications You must be signed in to change notification settings

huebicode/siglookup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Siglookup

Siglookup is a command-line tool for detecting file types, based on their signatures (magic bytes).

siglookup

Usage

Important! The XML signature file (sigs.xml) must be located in the same directory as the application.

Analyzing a file

siglookup <file>

Analyzing all files in a directory and its subdirectories

siglookup <dir> or siglookup .

Editing XML signatures

Signatures can be created, expanded or changed in the XML file (sigs.xml) with the respective offset. Wildcards _, Ranges - and OR combinations | can be used.

Miscellaneous

If the file extension does not match the detected file extension, the output will appear in red. The application checks unrecognized files for compression/encryption (hight entropy) and zero bytes.

If you have file signatures, which the application is missing, find errors or have other requests, don’t hesitate to give me a note.

Acknowledgments

The idea for this project arose when I discovered Brian’s project while searching for some exotic magic bytes. I liked the structure and recording of the signatures in his XML signature file, making them visible, searchable and expandable for everyone, which ultimately led to this project after a request to Brian.

The signatures were mainly enriched by those of Gerry Kessler and Wikipedia.

About

CLI tool for detecting file types based on their signatures (magic bytes).

Resources

License

Stars

Watchers

Forks

Languages