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
bc4adcd3
Commit
bc4adcd3
authored
Dec 22, 2013
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed display bug with -x / -y filters
parent
5a52a5a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
display.py
src/binwalk/core/display.py
+10
-11
No files found.
src/binwalk/core/display.py
View file @
bc4adcd3
...
...
@@ -62,16 +62,15 @@ class Display(object):
self
.
log
(
""
,
[
file_name
,
md5sum
,
timestamp
])
self
.
_fprint
(
"
%
s"
,
"
\n
"
,
csv
=
False
)
self
.
_fprint
(
"Scan Time:
%
s
\n
"
,
[
timestamp
],
csv
=
False
)
self
.
_fprint
(
"Target File:
%
s
\n
"
,
[
file_name
],
csv
=
False
)
self
.
_fprint
(
"MD5 Checksum:
%
s
\n
"
,
[
md5sum
],
csv
=
False
)
self
.
_fprint
(
"Scan Time:
%
s
\n
"
,
[
timestamp
],
csv
=
False
,
filter
=
False
)
self
.
_fprint
(
"Target File:
%
s
\n
"
,
[
file_name
],
csv
=
False
,
filter
=
False
)
self
.
_fprint
(
"MD5 Checksum:
%
s
\n
"
,
[
md5sum
],
csv
=
False
,
filter
=
False
)
if
self
.
custom_verbose_format
and
self
.
custom_verbose_args
:
#self._pprint("Signatures: %d\n" % self.binwalk.parser.signature_count, nolog=nolog)
self
.
_fprint
(
self
.
custom_verbose_format
,
self
.
custom_verbose_args
,
csv
=
False
)
self
.
_fprint
(
self
.
custom_verbose_format
,
self
.
custom_verbose_args
,
csv
=
False
,
filter
=
False
)
self
.
_fprint
(
"
%
s"
,
"
\n
"
,
csv
=
False
)
self
.
_fprint
(
self
.
header_format
,
args
)
self
.
_fprint
(
"
%
s"
,
[
"-"
*
self
.
HEADER_WIDTH
+
"
\n
"
],
csv
=
False
)
self
.
_fprint
(
"
%
s"
,
"
\n
"
,
csv
=
False
,
filter
=
False
)
self
.
_fprint
(
self
.
header_format
,
args
,
filter
=
False
)
self
.
_fprint
(
"
%
s"
,
[
"-"
*
self
.
HEADER_WIDTH
+
"
\n
"
],
csv
=
False
,
filter
=
False
)
def
result
(
self
,
*
args
):
# Convert to list for item assignment
...
...
@@ -87,12 +86,12 @@ class Display(object):
self
.
_fprint
(
self
.
result_format
,
tuple
(
args
))
def
footer
(
self
):
self
.
_fprint
(
"
%
s"
,
"
\n
"
,
csv
=
False
)
self
.
_fprint
(
"
%
s"
,
"
\n
"
,
csv
=
False
,
filter
=
False
)
def
_fprint
(
self
,
fmt
,
columns
,
csv
=
True
,
stdout
=
True
):
def
_fprint
(
self
,
fmt
,
columns
,
csv
=
True
,
stdout
=
True
,
filter
=
True
):
line
=
fmt
%
tuple
(
columns
)
if
filter
and
self
.
filter
.
valid_result
(
line
):
if
not
filter
or
self
.
filter
.
valid_result
(
line
):
if
not
self
.
quiet
and
stdout
:
sys
.
stdout
.
write
(
self
.
_format_line
(
line
.
strip
())
+
"
\n
"
)
...
...
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