-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add modified CramFS to filesystem magic #363
Comments
uuhm, this is not a |
Since the LZMA version of CramFS has the same signature, I think there are two approaches to this. First, the easy way: just add the lzma-uncramfs utility as a cramfs extractor. If it fails, binwalk will move on to the next cramfs extractor. This requires minimal effort, and the files will be extracted correctly, but there won't be anything in binwalk's output to indicate that the CramFS image has Jungo's LZMA modifications. Second, the "correct" way: write a plugin. I don't think this can be done with a simple signature as the location of the compressed blocks is not necessarily predictable (at least AFAIK). A plugin that does some basic parsing of the CramFS image and looks at a compressed block and sees that it starts with |
it seems the issue is that after Ubuntu 18.04 cramfs was depricated for squashfs. To manually install cramfs extractor support:
|
Some time ago, there were a bunch of Pirelli routers whose firmware was using a modified CramFS.
(also containing LZMA structures).
The file magic for these were:
45 3D CD 28
.With LZMA:
5D 00 00 40
and5D 00 00 80
I suggest to call this after the modifers:
Jungo's OpenRG version of CramFS
or alternativelyJungo modified CramFS
How can I add this to the magic file?
PS. The original:
The text was updated successfully, but these errors were encountered: