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
da583ef4
Commit
da583ef4
authored
Dec 19, 2013
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated binwalk.__init__.py
parent
7a9b037a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
binwalk
src/bin/binwalk
+2
-2
__init__.py
src/binwalk/__init__.py
+1
-1
module.py
src/binwalk/module.py
+2
-0
No files found.
src/bin/binwalk
View file @
da583ef4
#!/usr/bin/env python
#!/usr/bin/env python
import
sys
import
sys
import
binwalk
.modules
import
binwalk
from
threading
import
Thread
from
threading
import
Thread
def
display_status
(
m
):
def
display_status
(
m
):
...
@@ -20,7 +20,7 @@ def usage(modules):
...
@@ -20,7 +20,7 @@ def usage(modules):
sys
.
exit
(
1
)
sys
.
exit
(
1
)
def
main
():
def
main
():
modules
=
binwalk
.
module
.
Modules
()
modules
=
binwalk
.
Modules
()
# Start the display_status function as a daemon thread.
# Start the display_status function as a daemon thread.
t
=
Thread
(
target
=
display_status
,
args
=
(
modules
,))
t
=
Thread
(
target
=
display_status
,
args
=
(
modules
,))
...
...
src/binwalk/__init__.py
View file @
da583ef4
from
module
import
Modules
from
binwalk.
module
import
Modules
src/binwalk/module.py
View file @
da583ef4
...
@@ -377,6 +377,7 @@ class Modules(object):
...
@@ -377,6 +377,7 @@ class Modules(object):
Returns a list of modules that contain the specified attribute.
Returns a list of modules that contain the specified attribute.
'''
'''
import
binwalk.modules
modules
=
[]
modules
=
[]
for
(
name
,
module
)
in
inspect
.
getmembers
(
binwalk
.
modules
):
for
(
name
,
module
)
in
inspect
.
getmembers
(
binwalk
.
modules
):
...
@@ -440,6 +441,7 @@ class Modules(object):
...
@@ -440,6 +441,7 @@ class Modules(object):
return
module
(
**
kwargs
)
return
module
(
**
kwargs
)
def
dependencies
(
self
,
module
):
def
dependencies
(
self
,
module
):
import
binwalk.modules
kwargs
=
{}
kwargs
=
{}
if
hasattr
(
module
,
"DEPENDS"
):
if
hasattr
(
module
,
"DEPENDS"
):
...
...
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