Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible feature: Parse binary data using Kaitai Struct #226

Open
Joshfindit opened this issue Apr 10, 2022 · 2 comments
Open

Possible feature: Parse binary data using Kaitai Struct #226

Joshfindit opened this issue Apr 10, 2022 · 2 comments

Comments

@Joshfindit
Copy link

Parsing binary files has historically been a challenge for users who want access to the data contained within them, but I’ve recently come across (and successfully used) Kaitai Struct to do exactly that.

While of course HPI users can write their own binary parser, output JSON or some other human-friendly format, and then write an importer for that output, Kaitai has a library of parsable files already as well as a repo that accepts pull requests to add to that library.

Adding this as a suggestion, though it’s more of a way to open the discussion to HPI devs and community

@karlicoss
Copy link
Owner

Thanks, I've heard of Kaitai as well, but haven't had a chance to try it yet! Will keep it in mind.

Luckily 😅 I haven't had many binary formats that I had to handle yet, maybe the only exception is Kobo parser which has some interesting code... https://github.com/karlicoss/kobuddy/blob/6aeaf69a3fee1574a88b19ca28e3608b605a8827/src/kobuddy/__init__.py#L670-L683

@Joshfindit
Copy link
Author

Luckily 😅 I haven't had many binary formats that I had to handle yet, maybe the only exception is Kobo parser which has some interesting code...

Looks like me trying to reverse engineer binaries in the before times. if blob[pos:].startswith(wtf): is very relatable 😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants