TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What software do you use to examine binary files?

18 pointsby pingiunover 2 years ago
Of course a simple hex editor or even xxd will easily show you a hex&#x2F;ascii representation of a binary file. But is there any good software that understands many binary formats and can for example show me what header values a gzip file contains?<p>I think a terminal application that understands this for many different formats and easily allows you to add more formats would be very helpful

6 comments

spaintechover 2 years ago
Hexdump, xdd, Binwalk, Binary Ninja, and Ghidra, along with a good text editor that supports hex, I use vi like this:<p>$ xxd &#x2F;bin&#x2F;ls | vi - &#x2F;to open file : xxd -r &#x2F;to save files<p>for gzip files, extract those, that is the best representation of what’s inside IMO, then look at those binary individually. Good luck!
评论 #32723016 未加载
jaclazover 2 years ago
There are a few hex&#x2F;disk editors that support &quot;templates&quot; (but you need most times to create those yourself).<p>Here is a sort of &quot;curated list&quot; of related tools:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;dloss&#x2F;binary-parsing" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dloss&#x2F;binary-parsing</a><p>The most complete&#x2F;populated I know of is Kaitai:<p><a href="http:&#x2F;&#x2F;kaitai.io&#x2F;" rel="nofollow">http:&#x2F;&#x2F;kaitai.io&#x2F;</a><p><a href="http:&#x2F;&#x2F;formats.kaitai.io&#x2F;" rel="nofollow">http:&#x2F;&#x2F;formats.kaitai.io&#x2F;</a><p>that you can use with Hiew with Kiewtai<p><a href="https:&#x2F;&#x2F;github.com&#x2F;taviso&#x2F;kiewtai" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;taviso&#x2F;kiewtai</a><p>If the question is slightly different, i.e. which bytes are used to identify a given file format, there is Trid:<p><a href="https:&#x2F;&#x2F;mark0.net&#x2F;soft-trid-e.html" rel="nofollow">https:&#x2F;&#x2F;mark0.net&#x2F;soft-trid-e.html</a><p>Which has also a database of known headers&#x2F;patterns.
cookiengineerover 2 years ago
Lately I&#x27;ve been using ImHex a lot [1], it&#x27;s a modular hex editor that has schema files for different file formats which comes in handy when you work a lot on reverse engineering memdumps from firmware flash files.<p>It also has fuzzy finding features of known file format headers, so it can also be used to recover things from dd images, though it can be laggy sometimes when walking through a couple GBs of data.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;WerWolv&#x2F;ImHex" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;WerWolv&#x2F;ImHex</a>
alex14frover 2 years ago
I never used it but GNU poke <a href="http:&#x2F;&#x2F;www.jemarch.net&#x2F;poke" rel="nofollow">http:&#x2F;&#x2F;www.jemarch.net&#x2F;poke</a> seems like what you&#x27;re looking for.
评论 #32722832 未加载
wojciiiover 2 years ago
hexdump -v and less.<p>I recently had some issues with objdump generated files and would love to have an utility which would make it easy to understand where the different sections from an elf file are in the binary (.bin file used for embedded system). I guess that I should write a script for this if it&#x27;s not already present.
commandersakiover 2 years ago
binwalk