010 Editor是一款非常強大的文本/十六進制編輯器,除了文本/十六進制編輯外,還包括文件解析、計算器、文件比較等功能,但
它真正的強大之處還在於文件的解析功能。我們可以使用010Editor官方網站提供的解析腳本(Binary Template)對avi、bmp、png、exe等簡單格式的文件進行解析,當然也可以根據需求來自己編寫文件解析腳本。
下面以PNG文件解析為例,介紹010 Editor的文件解析功能。首先從官方網站上下載和安裝010 Editor(http://sweetscape.com/010editor),然后到文件解析腳本下載頁面中下載PNGTemplate.bt。用010 Editor打開PNG文件,然后通過Templates -> Open Template菜單打開PNGTemplate.bt,按F5鍵運行該腳本,就可以在Template Results窗口中看到該PNG文件的解析結果。
Editing binary data is hard. You have to know exactly which bytes to edit in a file and editing the wrong bytes can render a file unusable. Binary Templates take the mystery out of binary data by allowing you to
understand data and edit it in powerful, intuitive way.
http://www.sweetscape.com/010editor/templates.html
https://www.jianshu.com/p/8e1352a9638f
