From 91431448cc07e88e593458d83fa13c5cd9023173 Mon Sep 17 00:00:00 2001 From: Quentin Kaiser Date: Wed, 5 Jun 2024 12:08:49 +0200 Subject: [PATCH] fix(ubifs): attempts to continue extracting files even with bad block reads. Corrupt samples require the '-w' option so that we can actually extract content. --- unblob/handlers/filesystem/ubi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unblob/handlers/filesystem/ubi.py b/unblob/handlers/filesystem/ubi.py index 071ab10b05..c586cde2b4 100644 --- a/unblob/handlers/filesystem/ubi.py +++ b/unblob/handlers/filesystem/ubi.py @@ -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)