Skip to content

infer file type checking the magic numbers signature.

Notifications You must be signed in to change notification settings

goodapiyes/FileTypeDetector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FileTypeDetector-TrIDCore

Base on TrIDEngine

Supports 1w types of file identification

https://mark0.net/code-tridengine-e.html

Update to .NET 6.0

Identify file types from their binary signatures.

support automatic update of signature database(base on https://mark0.net)

Example

//auto-upgrade trid db From https://mark0.net/download/triddefs_xml.7z
//TrIDExtension.UpgradeDefinitions();

var demoFilePath = Path.GetFullPath("DemoFile");

//get results list,results are presented in order of highest probability.
var results = TrIDEngine.GetExtensions(demoFilePath);

Console.WriteLine($"file extension name: {results.FirstOrDefault().FileExt}");
Console.WriteLine($"file type: {results.FirstOrDefault().FileType}");

About

infer file type checking the magic numbers signature.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages