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
e07757a5
Commit
e07757a5
authored
Dec 11, 2017
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for generating entropy graphs on headless systems.
parent
3268cb6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
entropy.py
src/binwalk/modules/entropy.py
+7
-1
No files found.
src/binwalk/modules/entropy.py
View file @
e07757a5
...
...
@@ -116,7 +116,7 @@ class Entropy(Module):
self
.
block_size
=
None
def
_entropy_sigterm_handler
(
self
,
*
args
):
print
(
"F
U
ck it all."
)
print
(
"F
u
ck it all."
)
def
run
(
self
):
self
.
_run
()
...
...
@@ -125,6 +125,12 @@ class Entropy(Module):
# Sanity check and warning if matplotlib isn't found
if
self
.
do_plot
:
try
:
# If we're saving the plot to a file, configure matplotlib
# to use the Agg back-end. This does not require a X server,
# allowing users to generate plot files on headless systems.
if
self
.
save_plot
:
import
matplotlib
as
mpl
mpl
.
use
(
'Agg'
)
import
matplotlib.pyplot
as
plt
except
ImportError
as
e
:
binwalk
.
core
.
common
.
warning
(
"Failed to import matplotlib module, visual entropy graphing will be disabled"
)
...
...
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