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

minifs #4

Open
armijnhemel opened this issue Sep 28, 2023 · 2 comments
Open

minifs #4

armijnhemel opened this issue Sep 28, 2023 · 2 comments

Comments

@armijnhemel
Copy link

You might be interested in this Kaitai Struct specification for minifs that I made:

kaitai-io/kaitai_struct_formats#682

Basically minifs consists of a header with a few fields (including the number of files in the image), followed by a lookup table for the directory names and file names, meta information for each file (including relative offsets into the name table for both the directory name and file name), the number of the LZMA blob in which the file can be found, and offsets and size of each file in the uncompressed data. This is then followed by some metadata for each LZMA blob (size, relative offset in the data region of minifs) and then the data region with all of the LZMA blobs.

In the example you listed there are actually 0x16a (= 362) files. If files have the same name (but a different directory), then they will use the same offset for the file name but a different one for the directory name.

The operating system of this device is as far as I can tell TP-Link's own RTOS called "TPOS", but I cannot find any relevant information about it.

Hope this helps.

@hacefresko
Copy link
Owner

Wow! Such a great contribution, thanks!
I have this project on pause, but I will totally investigate this further and extract the files when I get back to it!

@0xPwny
Copy link

0xPwny commented Feb 26, 2024

thank you @hacefresko for sharing your progress , i have been working on the same router but different model (C24) your work helped me figuring out many points there is some diff but most of things are similar ( private key is the same :X ) including the minifs @armijnhemel thanks for mentioning your contribution .

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

3 participants