Skip to content

Commit

Permalink
Changed the reported name of raw signatures to 'Raw signature' so tha…
Browse files Browse the repository at this point in the history
…t --dd option can be used to extract arbitrary raw signatures
  • Loading branch information
devttys0 committed Sep 11, 2017
1 parent b801325 commit 1f1693f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/binwalk/modules/signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,13 @@ def init(self):
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)

Expand Down

0 comments on commit 1f1693f

Please sign in to comment.