Comments (3)
Thanks for reporting this and providing an example. Have you found documentation on this null-rootfs_offset behavior? It would help clarify the following questions:
- I assume the desired behavior is that the
OpenWrtTrxRootfs
should be empty (or nonexistant) and theOpenWrtTrxKernel
should include all the data starting fromtrx_kernel_offset
to the end (ortrx_binheader_offset
if it's version 2)? - Is this just on Version 1, or 2, or both?
I can see where in the Packer and Unpacker this change is needed, should be simple enough once the desired behavior is clear.
from ofrak.
Unfortunately the only documentation I've come across so far is:
- The OpenWRT header wiki page that the diagrams in the ofrak TRX unpacker appear to be from
- trx.c from OpenWRT's firmware utils constructs TRX headers, but doesn't mention anything about the rootfs being null
Although I'm not seeing any documentation, I think your assumptions are accurate - ie. OpenWrtTrxRootfs
should be empty/nonexistant and OpenWrtTrxKernel
should include all data from trx_kernel_offset
to the end of the file or trx_binheader_offset
(if present).
It looks like all the TRX files I was able to pull from the OpenWRT website are TRX v1, so I have not yet tested this on TRX v2 firmware.
from ofrak.
#216 makes core changes to OpenWRT TRX files that should address this issue.
from ofrak.
Related Issues (20)
- ESP Unpacker
- Updating ResourceView attributes is unintuitive. HOT 1
- Adding Flare-Floss String Analysis support
- Circular dependency cases a `make develop` weirdness. HOT 2
- Cleaner OFRAK Documentation install in Docker image HOT 1
- ImportError: cannot import name 'KS_ARCH_ARM64' from 'keystone' in Apple Silicon M1 HOT 6
- Strings with slashes cause FileNotFoundError HOT 1
- crashes when checking for missing dependencies HOT 4
- Lief modifiers should support PE files.
- Installation of Binary Ninja fails due to change in package name HOT 1
- `Resource.get_attributes`: incorrect documentation HOT 3
- Bundle OFRAK docs so they always match GUI version
- Import/export existing Ghidra project into OFRAK HOT 1
- ofrak-ghidra works with server that user can access directly
- Generate report from OFRAK project
- Add support for multiple comments on the same Range
- RFE: add custom gc thresholds to speed things up.
- elf analyzer assumes elf is unpacked when running analyzer
- Fall back on `gzip` if `pigz` fails HOT 3
- binwalk upstream unmaintained (consider gentoo fork?)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ofrak.