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
d84f22da
Commit
d84f22da
authored
Jan 08, 2014
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed terminal formatting in hexdiff mode
parent
55075e57
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
filter.py
src/binwalk/core/filter.py
+1
-1
general.py
src/binwalk/modules/general.py
+2
-3
hexdiff.py
src/binwalk/modules/hexdiff.py
+4
-1
No files found.
src/binwalk/core/filter.py
View file @
d84f22da
...
@@ -144,7 +144,7 @@ class Filter(object):
...
@@ -144,7 +144,7 @@ class Filter(object):
return
False
return
False
# If showing invalid results, just return True without further checking.
# If showing invalid results, just return True without further checking.
if
callable
(
self
.
show_invalid_results
)
and
self
.
show_invalid_results
()
:
if
self
.
show_invalid_results
:
return
True
return
True
# Don't include quoted strings or keyword arguments in this search, as
# Don't include quoted strings or keyword arguments in this search, as
...
...
src/binwalk/modules/general.py
View file @
d84f22da
...
@@ -109,7 +109,8 @@ class General(Module):
...
@@ -109,7 +109,8 @@ class General(Module):
self
.
_open_target_files
()
self
.
_open_target_files
()
self
.
_set_verbosity
()
self
.
_set_verbosity
()
self
.
filter
=
binwalk
.
core
.
filter
.
Filter
(
self
.
_display_invalid
)
#self.filter = binwalk.core.filter.Filter(self._display_invalid)
self
.
filter
=
binwalk
.
core
.
filter
.
Filter
(
self
.
show_invalid
)
# Set any specified include/exclude filters
# Set any specified include/exclude filters
for
regex
in
self
.
exclude_filters
:
for
regex
in
self
.
exclude_filters
:
...
@@ -184,5 +185,3 @@ class General(Module):
...
@@ -184,5 +185,3 @@ class General(Module):
except
Exception
as
e
:
except
Exception
as
e
:
self
.
error
(
description
=
"Cannot open file :
%
s"
%
str
(
e
))
self
.
error
(
description
=
"Cannot open file :
%
s"
%
str
(
e
))
def
_display_invalid
(
self
):
return
self
.
show_invalid
src/binwalk/modules/hexdiff.py
View file @
d84f22da
...
@@ -153,7 +153,10 @@ class HexDiff(Module):
...
@@ -153,7 +153,10 @@ class HexDiff(Module):
def
init
(
self
):
def
init
(
self
):
# Disable the invalid description auto-filtering feature.
# Disable the invalid description auto-filtering feature.
# This will not affect our own validation.
# This will not affect our own validation.
self
.
config
.
show_invalid
=
True
self
.
config
.
filter
.
show_invalid_results
=
True
# Always disable terminal formatting, as it won't work properly with colorized output
self
.
config
.
display
.
fit_to_screen
=
False
# Set the block size (aka, hexdump line size)
# Set the block size (aka, hexdump line size)
self
.
block
=
self
.
config
.
block
self
.
block
=
self
.
config
.
block
...
...
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