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
e7f17320
Commit
e7f17320
authored
Nov 01, 2014
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed confusing error message received when running a signature scan without python-lzma installed
parent
d710494c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
binwalk
src/scripts/binwalk
+10
-2
No files found.
src/scripts/binwalk
View file @
e7f17320
...
...
@@ -15,6 +15,7 @@ if os.path.exists(_module_path) and _module_path not in sys.path:
sys
.
path
=
[
_module_path
]
+
sys
.
path
import
binwalk
import
binwalk.modules
from
binwalk.core.compat
import
user_input
def
display_status
(
m
):
...
...
@@ -49,9 +50,16 @@ def main():
# If no explicit module was enabled in the command line arguments,
# run again with the default signature scan explicitly enabled.
elif
not
modules
.
execute
():
modules
.
execute
(
*
sys
.
argv
[
1
:],
signature
=
True
)
# Make sure the Signature module is loaded before attempting
# an implicit signature scan; else, the error message received
# by the end user is not very helpful.
if
hasattr
(
binwalk
.
modules
,
"Signature"
):
modules
.
execute
(
*
sys
.
argv
[
1
:],
signature
=
True
)
else
:
sys
.
stderr
.
write
(
"Error: Signature scans not supported; "
)
sys
.
stderr
.
write
(
"make sure you have python-lzma installed and try again.
\n
"
)
sys
.
exit
(
1
)
except
binwalk
.
ModuleException
as
e
:
sys
.
stderr
.
write
(
str
(
e
)
+
'
\n
'
)
sys
.
exit
(
1
)
if
__name__
==
'__main__'
:
...
...
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