Commit 5fc6df7b by devttys0

Changed LZMA extractor from 7zr to 7z.

parent ebf1afc4
......@@ -8,7 +8,7 @@
# Assumes these utilities are installed in $PATH.
^gzip compressed data:gz:gzip -d -f '%e'
^lzma compressed data:7z:7zr e -y '%e'
^lzma compressed data:7z:7z e -y '%e'
^xz compressed data:tar:tar xJf '%e'
^bzip2 compressed data:bz2:bzip2 -d -f '%e'
^compress'd data:Z:compress -d '%e'
......
......@@ -18,6 +18,7 @@ class LZMAModPlugin(binwalk.core.plugin.Plugin):
self.original_cmd = ''
# Replace the existing LZMA extraction command with our own
# 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']:
......
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