From 1e0491ee262332c7c25a938832952b1ea8be4761 Mon Sep 17 00:00:00 2001 From: Craig Heffner Date: Tue, 14 Mar 2017 13:38:24 -0400 Subject: [PATCH] Fixed API typo --- API.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/API.md b/API.md index a06217353..27d5b7841 100644 --- a/API.md +++ b/API.md @@ -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