Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
binwalk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
binwalk
Commits
1e0491ee
Commit
1e0491ee
authored
8 years ago
by
Craig Heffner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed API typo
parent
e4e21e8e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
API.md
API.md
+2
-2
No files found.
API.md
View file @
1e0491ee
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment