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
26d6fab4
Commit
26d6fab4
authored
Dec 22, 2013
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed modules/configuration to modules/general
parent
7b3a5ed5
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
10 deletions
+5
-10
module.py
src/binwalk/core/module.py
+2
-7
__init__.py
src/binwalk/modules/__init__.py
+1
-1
general.py
src/binwalk/modules/general.py
+1
-1
heuristics.py
src/binwalk/modules/heuristics.py
+1
-1
No files found.
src/binwalk/core/module.py
View file @
26d6fab4
...
...
@@ -136,33 +136,28 @@ class Module(object):
# A list of binwalk.core.module.ModuleKwargs accepted by __init__
KWARGS
=
[]
# A dictionary of module dependencies; all modules depend on binwalk.modules.configuration.Configuration
#DEPENDS = {'config' : 'Configuration', 'extractor' : 'Extractor'}
# A dictionary of module dependencies; all modules depend on binwalk.modules.general.General
DEPENDS
=
[
Dependency
(
name
=
'
Configuration
'
,
Dependency
(
name
=
'
General
'
,
attribute
=
'config'
),
Dependency
(
name
=
'Extractor'
,
attribute
=
'extractor'
),
]
# Format string for printing the header during a scan
#HEADER_FORMAT = "%s\n"
HEADER_FORMAT
=
"
%-12
s
%-12
s
%
s
\n
"
# Format string for printing each result during a scan
#RESULT_FORMAT = "%.8d %s\n"
RESULT_FORMAT
=
"
%-12
d 0x
%-12
X
%
s
\n
"
# The header to print during a scan.
# Set to None to not print a header.
# Note that this will be formatted per the HEADER_FORMAT format string.
#HEADER = ["OFFSET DESCRIPTION"]
HEADER
=
[
"DECIMAL"
,
"HEX"
,
"DESCRIPTION"
]
# The attribute names to print during a scan, as provided to the self.results method.
# Set to None to not print any results.
# Note that these will be formatted per the RESULT_FORMAT format string.
#RESULT = ['offset', 'description']
RESULT
=
[
"offset"
,
"offset"
,
"description"
]
VERBOSE_HEADER_FORMAT
=
""
...
...
src/binwalk/modules/__init__.py
View file @
26d6fab4
...
...
@@ -2,7 +2,7 @@ from binwalk.modules.signature import Signature
from
binwalk.modules.binvis
import
Plotter
from
binwalk.modules.hexdiff
import
HexDiff
from
binwalk.modules.hashmatch
import
HashMatch
from
binwalk.modules.
configuration
import
Configuration
from
binwalk.modules.
general
import
General
from
binwalk.modules.extractor
import
Extractor
from
binwalk.modules.entropy
import
Entropy
from
binwalk.modules.heuristics
import
HeuristicCompressionAnalyzer
...
...
src/binwalk/modules/
configuration
.py
→
src/binwalk/modules/
general
.py
View file @
26d6fab4
...
...
@@ -8,7 +8,7 @@ import binwalk.core.settings
from
binwalk.core.compat
import
*
from
binwalk.core.module
import
Module
,
Option
,
Kwarg
,
show_help
class
Configuration
(
Module
):
class
General
(
Module
):
TITLE
=
"General"
ORDER
=
0
...
...
src/binwalk/modules/heuristics.py
View file @
26d6fab4
...
...
@@ -88,7 +88,7 @@ class HeuristicCompressionAnalyzer(Module):
TITLE
=
"Heuristic Compression"
DEPENDS
=
[
Dependency
(
name
=
'
Configuration
'
,
Dependency
(
name
=
'
General
'
,
attribute
=
'config'
),
Dependency
(
name
=
'Entropy'
,
attribute
=
'entropy'
,
...
...
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