onekey-sec / unblob

Extract files from any kind of container formats
https://unblob.org
Other
2.15k stars 80 forks source link

Improve unblob "skip-extraction" mode of operation #692

Closed qkaiser closed 8 months ago

qkaiser commented 8 months ago

The following improvements have been made in order to let user simply "scan" a file:

  1. do not create the root level extraction dir when executed with the --skip-extraction option.
  2. display a summary of identified chunks when executed with the --skip-extraction option.

This is related to #624.

Right now the information displayed to the user is fairly limited:

image

But the introduction of metadata reporting in chunks (see https://github.com/onekey-sec/unblob/pull/557) would allow us to display detailed information in the "description" column, such as endianness, version, compression, block size, creation size, etc.

aserper commented 8 months ago

Makes sense and looks good! 👍

qkaiser commented 8 months ago

@e3krisztian I applied your recommendations, introduced tests for both the cli and processing parts of skip_extraction option and fixed a typo in the CLI (skip_extraction should have been skip-extraction from the beginning).