6

识别文件格式的那些工具

 3 years ago
source link: https://www.lujun9972.win/blog/2017/03/08/%E8%AF%86%E5%88%AB%E6%96%87%E4%BB%B6%E6%A0%BC%E5%BC%8F%E7%9A%84%E9%82%A3%E4%BA%9B%E5%B7%A5%E5%85%B7/index.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

识别文件格式的那些工具

Identifying Files 这篇文章中,Chris Wellons 提到了他是怎么来识别一个文件的格式的.

除了 file, ent, hexdump, strings 这些常用的工具外,他还提到一个很有趣的工具: 他自己写的PNG Archiver

这个工具的本意是想把文件变成图片方便传播,但却意外地发现可以用来发现文件的结构.

比如,下面这种图就是 /bin/ls 转成图片后的结果,可以很容易看到 ELF 文件被分成了三部分:

bin-ls.png

word文档的图像是这样的:

word-doc.png

Emacs字节码文件的图片是这样的:

elc.png

果然是一图胜千言啊~


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK