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-depend
binwalk
Commits
c4ef1b68
Commit
c4ef1b68
authored
Jan 08, 2014
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed --dd bug.
parent
464a7d8c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
module.py
src/binwalk/core/module.py
+5
-0
extractor.py
src/binwalk/modules/extractor.py
+1
-1
No files found.
src/binwalk/core/module.py
View file @
c4ef1b68
...
...
@@ -721,6 +721,9 @@ class Modules(object):
elif
has_key
(
args
,
module_option
.
long
)
and
args
[
module_option
.
long
]
not
in
[
None
,
False
]:
# TODO: There is one module_option.type for many module_option.kwargs. This means that
# all kwargs must be of the same type, else errors can happen in the below processing.
# Fix to check the defined type of each kwarg, and make the module_option.type obsolete.
for
(
name
,
value
)
in
iterator
(
module_option
.
kwargs
):
if
not
has_key
(
last_priority
,
name
)
or
last_priority
[
name
]
<=
module_option
.
priority
:
...
...
@@ -742,6 +745,8 @@ class Modules(object):
elif
module_option
.
type
==
list
:
if
not
has_key
(
kwargs
,
name
):
kwargs
[
name
]
=
[]
# HACK. Fix the above TODO and this check is no longer necessary
if
type
(
kwargs
[
name
])
==
list
:
kwargs
[
name
]
.
append
(
value
)
else
:
kwargs
[
name
]
=
value
...
...
src/binwalk/modules/extractor.py
View file @
c4ef1b68
...
...
@@ -33,7 +33,7 @@ class Extractor(Module):
description
=
'Automatically extract known file types'
),
Option
(
short
=
'D'
,
long
=
'dd'
,
type
=
[]
,
type
=
list
,
dtype
=
'type:ext:cmd'
,
kwargs
=
{
'manual_rules'
:
[],
'enabled'
:
True
},
description
=
'Extract <type> signatures, give the files an extension of <ext>, and execute <cmd>'
),
...
...
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