Commit 53f8458b by devttys0

Updated CPIO plugin to not recurse into extracted directories when --matryoshka is enabled

parent f3f3cfe8
...@@ -16,7 +16,8 @@ class CPIOPlugin(binwalk.core.plugin.Plugin): ...@@ -16,7 +16,8 @@ class CPIOPlugin(binwalk.core.plugin.Plugin):
if self.module.extractor.enabled: if self.module.extractor.enabled:
self.module.extractor.add_rule(regex="^ascii cpio archive", self.module.extractor.add_rule(regex="^ascii cpio archive",
extension="cpio", extension="cpio",
cmd=self.extractor) cmd=self.extractor,
recurse=False) # Most CPIO archives are file systems, so don't recurse into the extracted contents
def extractor(self, fname): def extractor(self, fname):
result = None result = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment