3 ms·
Oh, this is one I hadn't heard of. There are several different takes on this idea, and I've had the notion to make my own for some years, too (not enough free t
by turtledragonfly 4y ago
Oh, this is one I hadn't heard of. There are several different takes on this idea, and I've had the notion to make my own for some years, too (not enough free time...)
I feel like a good "how powerful is this tool, really?" test would be to model the Adobe PSD format with it. That format is bananas, and is what got me into this topic in the first place.
But for those interested, here are some other tools in this vein:
* fq - like jq for binary data: https://github.com/wader/fq https://github.com/wader/fq
* Kaitai Struct - https://kaitai.io/ https://kaitai.io/
** visualizer, for the above: https://github.com/kaitai-io/kaitai_struct_visualizer/ https://github.com/kaitai-io/kaitai_struct_visualizer/
* HexFiend - a hex editor, but with "binary templates" feature : https://github.com/HexFiend/HexFiend https://github.com/HexFiend/HexFiend
** binary templates, for the above: https://github.com/HexFiend/HexFiend/blob/master/templates/Tutorial.md https://github.com/HexFiend/HexFiend/blob/master/templates/T...
* binspector - https://github.com/binspector/binspector https://github.com/binspector/binspector
* binary-parsing - a collection of links to similar such tools : https://github.com/dloss/binary-parsing https://github.com/dloss/binary-parsing
* unblob - https://github.com/onekey-sec/unblob https://github.com/onekey-sec/unblob
** previous HN thread, for the above: https://news.ycombinator.com/item?id=34434249 https://news.ycombinator.com/item?id=34434249
- SloopJon 4y agoThis is why I keep reading these threads, looking for something I can wrap my head around. I started looking at Kaitai Struct not too long ago. I purposely started with a pretty simple format, but I think I'm not smart enough to figure out the input format. Also, I'm pretty sure I hate YAML. I tried building Poke just last week, having resolved to try it since 1.0, but hit problems with the Boehm GC on my old Mac, and then what looks like Readline problems on my new Mac. I haven't given up, but I'm off to a slow start. Hachoir, mentioned in another comment, looks promising, although the input looks suspiciously similar to a program I'd write myself.
- fcambus 4y agoIt's a bit overkill for only building Poke, but you can use Pkgsrc [1] to do so on macOS: Bootstrap Pkgsrc: git clone https://github.com/NetBSD/pkgsrc.git https://github.com/NetBSD/pkgsrc.git cd pkgsrc/bootstrap ./bootstrap --unprivileged And then build and install Poke: cd ~/pkgsrc/editors/poke bmake install package clean clean-depends [1] https://pkgsrc.org https://pkgsrc.org
- MontagFTB 4y agoThanks for this compendium. I originally wrote and released binspector, but have since moved to HexFiend, because I like the power Tcl affords as a template language. I too have rewritten specs for PSD too many times to count; it’s one of my favorite nerd-sniping pastimes. I’ll have to explore some of these other links, to find a good editor for my Windows colleagues.
- delhanty 4y agoAlso * Synalyze It! - Hex Editor for Mac: https://www.synalysis.net/ https://www.synalysis.net/ I am not affiliated Synalyze It!, but have been a customer for several years. Generally, I've been happy with it, though it crashes occasionally. The support has been responsive when I've had licensing issues.