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

Add dump to file option #20

Open
MatthewTingum opened this issue Mar 22, 2022 · 2 comments
Open

Add dump to file option #20

MatthewTingum opened this issue Mar 22, 2022 · 2 comments

Comments

@MatthewTingum
Copy link

I can enumerate files in a ubi archive with:
ubidump -l bar.ubi

Then I can try to extract a binary file with:
ubidump -c foo.bin bar.ubi > foo.bin

But I end up with three lines of text preceding the binary.
These lines are output of the program itself.
The lines have to be manually stripped out.
Perhaps an -o option for outputting to a file?

Over-scoping a little bit, but I'd like to see an "extract all" option too.

Mounting doesn't work great on WSL 1 (If one were to get at the contents that way).
binwalk doesn't seem to extract the ubi format IIRC.
This could be a great addition to binwalk with a little work.

I'll be glad to make a pull request if there's an active maintainer.

@MatthewTingum
Copy link
Author

Ah, I see this option now:

  --savedir DIRECTORY, -s DIRECTORY
                        save files in all volumes to the specified directory

Maybe a simple README update is in order.

@MatthewTingum
Copy link
Author

MatthewTingum commented Mar 23, 2022

I have opened a pull request that updates the README.

Still, extracting a single file is not particularly convenient.
Consider making the cat option only output file contents to stdout.
No informational text in the stdout.
Only errors in stderr.
Just a thought.

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

1 participant