3 ms·
I recently considered using Kaitai for a project but I am not sure whether it can handle the following: Certain parts of the binary I need to parse are compres
by w4rh4wk5 5y ago
I recently considered using Kaitai for a project but I am not sure whether it can handle the following:
Certain parts of the binary I need to parse are compressed using some custom algorithm. I do have an implementation for compression and de-compression in C++. Is it possible to provide this to Kaitai? Maybe via some C FFI mechanism. From the looks of it, Python Construct can cover this; however, I'd really like to use Kaitai's IDE and therefore Kaitai directly.
- junon 5y agoYep. Not from the IDE but once you integrate the schema into your project it'll work. https://doc.kaitai.io/user_guide.html#custom-process https://doc.kaitai.io/user_guide.html#custom-process
- jchw 5y agoTechnically, it is possible, but my approach is generally to use Kaitai only for uncompressed/deobfuscated stuff. So I just do the decompression ahead of time and feed that into Kaitai. That way, I can use WebIDE/etc.