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
5dff8a31
Commit
5dff8a31
authored
Apr 19, 2014
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed --magic option bug.
parent
6b0a85ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
signature.py
src/binwalk/modules/signature.py
+2
-3
No files found.
src/binwalk/modules/signature.py
View file @
5dff8a31
...
...
@@ -13,7 +13,7 @@ class Signature(Module):
CLI
=
[
Option
(
short
=
'B'
,
long
=
'signature'
,
kwargs
=
{
'enabled'
:
True
,
'force_default_scan'
:
True
},
kwargs
=
{
'enabled'
:
True
},
description
=
'Scan target file(s) for common file signatures'
),
Option
(
short
=
'R'
,
long
=
'raw'
,
...
...
@@ -46,7 +46,6 @@ class Signature(Module):
Kwarg
(
name
=
'search_for_opcodes'
,
default
=
False
),
Kwarg
(
name
=
'cast_data_types'
,
default
=
False
),
Kwarg
(
name
=
'dumb_scan'
,
default
=
False
),
Kwarg
(
name
=
'force_default_scan'
,
default
=
False
),
Kwarg
(
name
=
'magic_files'
,
default
=
[]),
]
...
...
@@ -75,7 +74,7 @@ class Signature(Module):
]
# Use the system default magic file if no other was specified, or if -B was explicitly specified
elif
not
self
.
magic_files
or
self
.
force_default_scan
:
elif
not
self
.
magic_files
:
self
.
magic_files
=
[
self
.
config
.
settings
.
get_file_path
(
'user'
,
self
.
config
.
settings
.
BINWALK_MAGIC_FILE
),
self
.
config
.
settings
.
get_file_path
(
'system'
,
self
.
config
.
settings
.
BINWALK_MAGIC_FILE
),
...
...
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