20 comments

[ 0.24 ms ] story [ 31.1 ms ] thread
(comment deleted)
surprised to not see hilbert curve mentioned here https://corte.si/posts/visualisation/binvis/
Cool tool from the above blog post. Worth a look.

https://binvis.io/

Ps: I had the exact same thought!

Also: can programs be encoded into lossy image formats? Would be cool to see what image compression does to program functionality

I use binvis quite a lot for getting a quick overview of an unknown file format, using the entropy mode in particular.

However, I almost always switch it into the linear view. Hilbert curves are cool but I've never really found any benefit, and it makes it harder to intuit things like how far a particular feature is into the file, or whether two features are actually nearby (while near things in linear-space are typically near in hilbert-space, there are discontinuities).

I've been using https://binvis.io for this when I just want quick-and-dirty color coding to see what the heck I'm looking at.
(comment deleted)
I would like to see the CFG visualized for executable files. I imagine a recursive descent parser would resemble a spiral?
A different approach I’ve been working on: https://github.com/ufex/Ufex Detect the file format and display a detailed view of the structures within. Also has the hex editor with coloring based on bytes and sequences.