Commit 1f1693f9 by Craig Heffner

Changed the reported name of raw signatures to 'Raw signature' so that --dd…

Changed the reported name of raw signatures to 'Raw signature' so that --dd option can be used to extract arbitrary raw signatures
parent b8013259
......@@ -92,16 +92,13 @@ class Signature(Module):
if self.raw_bytes:
raw_signatures = []
for raw_bytes in self.raw_bytes:
raw_signatures.append(
"0 string %s %s" % (raw_bytes, raw_bytes))
binwalk.core.common.debug(
"Parsing raw signatures: %s" % str(raw_signatures))
raw_signatures.append("0 string %s Raw signature" % (raw_bytes))
binwalk.core.common.debug("Parsing raw signatures: %s" % str(raw_signatures))
self.magic.parse(raw_signatures)
# Parse the magic file(s)
if self.magic_files:
binwalk.core.common.debug(
"Loading magic files: %s" % str(self.magic_files))
binwalk.core.common.debug("Loading magic files: %s" % str(self.magic_files))
for f in self.magic_files:
self.magic.load(f)
......
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