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
490b4ea6
Commit
490b4ea6
authored
Dec 22, 2013
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed enable module bugs.
parent
d19ff934
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
binvis.py
src/binwalk/modules/binvis.py
+1
-0
extractor.py
src/binwalk/modules/extractor.py
+0
-1
hexdiff.py
src/binwalk/modules/hexdiff.py
+6
-4
No files found.
src/binwalk/modules/binvis.py
View file @
490b4ea6
...
...
@@ -38,6 +38,7 @@ class Plotter(Module):
Kwarg
(
name
=
'axis'
,
default
=
3
),
Kwarg
(
name
=
'max_points'
,
default
=
0
),
Kwarg
(
name
=
'show_grids'
,
default
=
False
),
Kwarg
(
name
=
'enabled'
,
default
=
False
),
]
# There isn't really any useful data to print to console. Disable header and result output.
...
...
src/binwalk/modules/extractor.py
View file @
490b4ea6
...
...
@@ -94,7 +94,6 @@ class Extractor(Module):
except
KeyboardInterrupt
as
e
:
pass
except
Exception
as
e
:
print
e
return
if
not
r
.
size
:
...
...
src/binwalk/modules/hexdiff.py
View file @
490b4ea6
...
...
@@ -52,6 +52,7 @@ class HexDiff(Module):
Kwarg
(
name
=
'show_blue'
,
default
=
True
),
Kwarg
(
name
=
'show_green'
,
default
=
True
),
Kwarg
(
name
=
'terse'
,
default
=
False
),
Kwarg
(
name
=
'enabled'
,
default
=
False
),
]
HEADER_FORMAT
=
"
\n
%
s
\n
"
...
...
@@ -154,10 +155,11 @@ class HexDiff(Module):
if
offset
<
0
:
size
=
offset
*
-
1
if
common
.
BlockFile
.
READ_BLOCK_SIZE
<
block
:
read_block_size
=
block
else
:
read_block_size
=
common
.
BlockFile
.
READ_BLOCK_SIZE
#if common.BlockFile.READ_BLOCK_SIZE < block:
# read_block_size = block
#else:
# read_block_size = common.BlockFile.READ_BLOCK_SIZE
read_block_size
=
common
.
BlockFile
.
DEFAULT_BLOCK_READ_SIZE
# BlockFile handles calculation of negative offsets, if one was specified
offset
=
self
.
config
.
target_files
[
0
]
.
offset
...
...
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