https://github.com/wcampbell0x2a/income
Library and binaries for the reading of UBI images
https://github.com/wcampbell0x2a/income
extraction firmware rust ubi volumes
Last synced: 8 months ago
JSON representation
Library and binaries for the reading of UBI images
- Host: GitHub
- URL: https://github.com/wcampbell0x2a/income
- Owner: wcampbell0x2a
- Created: 2023-01-14T04:13:23.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-01-20T02:08:07.000Z (over 1 year ago)
- Last Synced: 2025-02-01T22:12:40.772Z (over 1 year ago)
- Topics: extraction, firmware, rust, ubi, volumes
- Language: Rust
- Homepage:
- Size: 29.3 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
income
===========================
[
](https://github.com/wcampbell0x2a/income)
[
](https://crates.io/crates/income)
[
](https://docs.rs/income)
[
](https://github.com/wcampbell0x2a/income/actions?query=branch%3Amaster)
Library and binary for the reading of [UBI](https://www.kernel.org/doc/html/latest/filesystems/ubifs.html) volumes.
```console
$ ./income [IMAGE_PATH]
```
## Testing
Unit test do not exist for this project yet!
```console
$ wget -L https://github.com/onekey-sec/unblob/raw/1965107de2d813c31ce9d0a28ea47649cd5a81a4/tests/integration/filesystem/ubi/ubi/__input__/fruits.ubi
$ unblob fruits.ubi
$ hexyl fruits.ubi_extract/img-1180426539_vol-data.ubifs
┌────────┬─────────────────────────┬─────────────────────────┬────────┬────────┐
│00000000│ 63 68 65 72 72 79 31 0a ┊ ff ff ff ff ff ff ff ff │cherry1_┊××××××××│
│00000010│ ff ff ff ff ff ff ff ff ┊ ff ff ff ff ff ff ff ff │××××××××┊××××××××│
│* │ ┊ │ ┊ │
│00000380│ ┊ │ ┊ │
└────────┴─────────────────────────┴─────────────────────────┴────────┴────────┘
$ cargo run --release -- fruits.ubi
2 named volumes, 3 physical volumes, blocksize=0x400
Extracting volume: "apple"
wrote: ubi-root/img-1180426539_vol-apple.ubifs
Extracting volume: "data"
wrote: ubi-root/img-1180426539_vol-data.ubifs
$ hexyl ubi-root/img-1180426539_vol-data.ubifs
┌────────┬─────────────────────────┬─────────────────────────┬────────┬────────┐
│00000000│ 63 68 65 72 72 79 31 0a ┊ ff ff ff ff ff ff ff ff │cherry1_┊××××××××│
│00000010│ ff ff ff ff ff ff ff ff ┊ ff ff ff ff ff ff ff ff │××××××××┊××××××××│
│* │ ┊ │ ┊ │
│00000380│ ┊ │ ┊ │
└────────┴─────────────────────────┴─────────────────────────┴────────┴────────┘
```