Commit 1e0491ee by Craig Heffner

Fixed API typo

parent e4e21e8e
...@@ -89,10 +89,10 @@ for module in binwalk.scan('firmware1.bin', 'firmware2.bin', signature=True, qui ...@@ -89,10 +89,10 @@ for module in binwalk.scan('firmware1.bin', 'firmware2.bin', signature=True, qui
if module.extractor.output.has_key(result.file.path): if module.extractor.output.has_key(result.file.path):
# These are files that binwalk carved out of the original firmware image, a la dd # These are files that binwalk carved out of the original firmware image, a la dd
if module.extractor.output[result.file.path].carved.has_key(result.offset): if module.extractor.output[result.file.path].carved.has_key(result.offset):
print "Carved data from offset 0x%X to %s" % (module.extractor.output[result.file.path].carved[result.offset]) print "Carved data from offset 0x%X to %s" % (result.offset, module.extractor.output[result.file.path].carved[result.offset])
# These are files/directories created by extraction utilities (gunzip, tar, unsquashfs, etc) # These are files/directories created by extraction utilities (gunzip, tar, unsquashfs, etc)
if module.extractor.output[result.file.path].extracted.has_key(result.offset): if module.extractor.output[result.file.path].extracted.has_key(result.offset):
print "Extracted data from offset 0x%X to %s" % (module.extractor.output[result.file.path].extracted[result.offset][0]) print "Extracted data from offset 0x%X to %s" % (result.offset, module.extractor.output[result.file.path].extracted[result.offset][0])
``` ```
Module Exceptions Module Exceptions
......
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