Prepare core plugins for moving into the framework namespace.

This commit is contained in:
Mike Auty
2018-12-09 13:32:32 +00:00
parent cf95f6e73e
commit f57bfa5738
8 changed files with 46 additions and 1 deletions
+5 -1
View File
@@ -3,6 +3,8 @@
import os
import sys
from PyInstaller.building.api import PYZ, EXE
from PyInstaller.building.build_main import Analysis
from PyInstaller.utils.hooks import collect_submodules, collect_data_files
block_cipher = None
@@ -15,9 +17,11 @@ a = Analysis(['vol.py'],
pathex = [],
binaries = [],
datas = collect_data_files('volatility.framework') + \
collect_data_files('volatility.framework.plugins', include_py_files = True) + \
collect_data_files('volatility.schemas') + \
collect_data_files('volatility.plugins', include_py_files = True),
hiddenimports = collect_submodules('volatility.plugins'),
hiddenimports = collect_submodules('volatility.framework.plugins') + \
collect_submodules('volatility.plugins'),
hookspath = [],
runtime_hooks = [],
excludes = [],
+5
View File
@@ -1,3 +1,8 @@
"""All core generic plugins
These modules should only be imported from volatility.plugins NOT volatility.framework.plugins
"""
import logging
import typing
@@ -0,0 +1,4 @@
"""All core linux plugins
These modules should only be imported from volatility.plugins NOT volatility.framework.plugins
"""
@@ -0,0 +1,4 @@
"""All core windows plugins
These modules should only be imported from volatility.plugins NOT volatility.framework.plugins
"""
@@ -0,0 +1,4 @@
"""All core windows registry plugins
These modules should only be imported from volatility.plugins NOT volatility.framework.plugins
"""
+8
View File
@@ -1 +1,9 @@
"""All Linux-related plugins"""
import os
from volatility.framework import constants
# This is necessary to ensure the core plugins are available, whilst still be overridable
plugin_path_components = __name__.split('.')[2:]
__path__ = [os.path.join(x, *plugin_path_components) for x in constants.PLUGINS_PATH]
+8
View File
@@ -1 +1,9 @@
"""All Windows OS plugins"""
import os
from volatility.framework import constants
# This is necessary to ensure the core plugins are available, whilst still be overridable
plugin_path_components = __name__.split('.')[2:]
__path__ = [os.path.join(x, *plugin_path_components) for x in constants.PLUGINS_PATH]
@@ -1 +1,9 @@
"""Windows registry plugins"""
import os
from volatility.framework import constants
# This is necessary to ensure the core plugins are available, whilst still be overridable
plugin_path_components = __name__.split('.')[2:]
__path__ = [os.path.join(x, *plugin_path_components) for x in constants.PLUGINS_PATH]