Re:Why isn't there a Swagger/OpenAPI for binary formats?
by hombre_fatal on Friday March 25, 2022 @10:23PM
(#30808753)
Would something like this help? https://github.com/joushx/kaitai-to-wireshark
Happened to just see this article when reading Kaitai docs: https://www.incibe-cert.es/en/blog/understanding-industrial-...
I was checking out Kaitai the other day (generate binary parsers from declarative structures) and noticed its tutorials section has great content on reverse-engineering binary formats with it: https://doc.kaitai.io. Might be interesting to anyone interested in OP's question.
I like the first blog link that reverses the binary format of one of those interactive anime novels from an .exe: https://hackernoon.com/reverse-engineering-visual-novels-101...
Really cool walkthrough of how to do such a thing regardless of whether you use Kaitai to do it.
Re:Why isn't there a Swagger/OpenAPI for binary formats?
by woodrowbarlow on Friday March 25, 2022 @04:46PM
(#30806874)
preach! by the way: wireshark can load ASN.1 source files directly.
https://www.wireshark.org/docs/wsdg_html_chunked/CreatingAsn...
I wrote a few in Lua, but it still felt second class citizen to built-in C dissectors, loading them was annoying and the UI to use them was too.
A good dissector will annotate fields with semantic meaning and group and nest them, giving wireshark the precise bit offset+length where a value came from.
Those are some different requirements than other parsers and reuse is therefore a bit difficult.