rocketrobin / myrmec Goto Github PK
View Code? Open in Web Editor NEWThis library is used to detect real file format type via file hex head (identify file format by header).
License: Apache License 2.0
This library is used to detect real file format type via file hex head (identify file format by header).
License: Apache License 2.0
"myrmec" can't identify raw text files such as .txt, .css, .js, .json and etc.
Is there any dotnetframework version?Thanks
First of all, thank you for this useful library I like that and it is what I really wanted :)
Why don't you create an extension->record dictionary or factory so we can select our desired records instead of defining them from scratch?
You have just obsoleted everything in FileTypes and we have to create our records manually.
It would be better if there was a dictionary or factory (or some methods like them) to store all records, then we can just select them easily.
1 sniffer调用populate后,ComplexMetadatas集合始终为空
2 无法识别出jpg格式
关于问题1,我在Record类中,修改iscomplexMetadata属性为{get;set;},然后修改从构造函数中初始化这个属性 并将FileTypes对应的Record修改之后,再运行并调用populate,ComplexMetadatas集合有了值
问题2 ,暂时没看明白代码,,水平有限 ^_^.jpg文件尝试过windows画图保存出的jpg和一些网上下载的图 都不能匹配成功
This library looks really good, any chance this can be updated to NET6 and up?
I want to validate an uploaded file by detecting the real type of it.
For example, imagine injecting a web-shell script into some part of the image file (e.g: end of the PNG file), I think your API only checks magic numbers (first header bytes) and the web-shells can bypass this technique.
As the title shows, the .gif file is misrecognized as a .mpg file.
Is this a bug?
Thx a lot :)
How to Write ReadFileHead() funuction ?
> 这是楼主的代码 <
但是,我使用文件验真获取Bytes[]的代码,编写了一个HEX头文件工具,发现 zip 文件的头是这样的:
> HEX头文件工具源码 <
> 对MyRmec的封装源码 <
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.