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-gitdep
binwalk
Commits
94c1a966
Commit
94c1a966
authored
Jul 16, 2015
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated API documentation
parent
bc88ac00
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 @
94c1a966
...
...
@@ -76,7 +76,7 @@ Thus, scan results and errors can be programatically accessed rather easily:
for
module
in
binwalk
.
scan
(
'firmware1.bin'
,
'firmware2.bin'
,
signature
=
True
,
quiet
=
True
):
print
(
"
%
s Results:"
%
module
.
name
)
for
result
in
module
.
results
:
print
(
"
\t
%
s 0x
%.8
X
%
s"
%
(
result
.
file
.
name
,
result
.
offset
,
result
.
description
))
print
(
"
\t
%
s 0x
%.8
X
%
s"
%
(
result
.
file
.
path
,
result
.
offset
,
result
.
description
))
```
Note the above use of the
`--quiet`
option which prevents the binwalk module from printing its normal output to screen.
...
...
@@ -87,7 +87,7 @@ Each module object will also have an additional `extractor` attribute, which is
for
module
in
binwalk
.
scan
(
'firmware1.bin'
,
'firmware2.bin'
,
signature
=
True
,
quiet
=
True
,
extract
=
True
):
print
(
"
%
s Results:"
%
module
.
name
)
for
result
in
module
.
results
:
print
(
"
\t
%
s 0x
%.8
X
%
s"
%
(
result
.
file
.
name
,
result
.
offset
,
result
.
description
))
print
(
"
\t
%
s 0x
%.8
X
%
s"
%
(
result
.
file
.
path
,
result
.
offset
,
result
.
description
))
for
(
file_path
,
output_dir
)
in
module
.
extractor
.
output
:
print
(
"
%
s data was extracted to:
%
s"
%
(
file_path
,
output_dir
))
```
...
...
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