Commit 419b6794 by devttys0

Fixed lzmamod bug

parent b5dd239c
......@@ -21,7 +21,7 @@ class LZMAModPlugin(binwalk.core.plugin.Plugin):
# Note that this assumes that there is *one* LZMA extraction command...
rules = self.module.extractor.get_rules()
for i in range(0, len(rules)):
if rules[i]['regex'].match(self.SIGNATURE) and rules[i]['cmd']:
if rules[i]['regex'] and rules[i]['cmd'] and rules[i]['regex'].match(self.SIGNATURE):
self.original_cmd = rules[i]['cmd']
rules[i]['cmd'] = self.lzma_cable_extractor
break
......
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