问题
I'm looking for a list that has the magic numbers of the most important of the following file systems and archive/compression formats:
- http://en.wikipedia.org/wiki/List_of_file_systems
- http://en.wikipedia.org/wiki/List_of_archive_formats
For example something like:
-filesystem- -magic_number-
-cramfs- -45 3d cd 28 00-
-archive/compression- -magic_number-
-gz- -1f 8b-
I found some on google but no complete list or technical docs, so I ask you guys as experts.
回答1:
You could try this list: File Signature Table
Another list, which is a bit harder to understand: Linux Magic Numbers
回答2:
There's a list for all filesystems Linux supports in /include/uapi/linux/magic.h
Related question over at Unix & Linux SE
来源:https://stackoverflow.com/questions/7162475/does-anyone-know-a-list-with-magic-numbers-of-file-systems-and-archive-compressi