Skip to content

Commit

Permalink
fix(ubifs): attempts to continue extracting files even with bad block…
Browse files Browse the repository at this point in the history
… reads.

Corrupt samples require the '-w' option so that we can actually extract
content.
  • Loading branch information
qkaiser authored and Mücahid KIR committed Jun 6, 2024
1 parent 2e3425f commit 9143144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unblob/handlers/filesystem/ubi.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class UBIFSHandler(StructHandler):
"""
HEADER_STRUCT = "ubifs_sb_node_t"

EXTRACTOR = Command("ubireader_extract_files", "{inpath}", "-o", "{outdir}")
EXTRACTOR = Command("ubireader_extract_files", "{inpath}", "-w", "-o", "{outdir}")

def calculate_chunk(self, file: File, start_offset: int) -> Optional[ValidChunk]:
endian = get_endian(file, self._BIG_ENDIAN_MAGIC)
Expand Down

0 comments on commit 9143144

Please sign in to comment.