Skip to content

Commit

Permalink
Fixed API typo
Browse files Browse the repository at this point in the history
  • Loading branch information
devttys0 committed Mar 14, 2017
1 parent e4e21e8 commit 1e0491e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):
# 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):
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)
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
Expand Down

0 comments on commit 1e0491e

Please sign in to comment.