Rework config system yet again, and start filling in some of the requirements.

This commit is contained in:
Mike Auty
2015-04-09 15:56:57 -05:00
parent 3d00956951
commit a85bcb9e58
8 changed files with 123 additions and 59 deletions
+6 -2
View File
@@ -1,4 +1,5 @@
import inspect
from volatility.framework import config
import volatility.framework.interfaces.plugins as plugins
@@ -6,8 +7,11 @@ import volatility.framework.interfaces.plugins as plugins
class PsList(plugins.PluginInterface):
@classmethod
def requirements(cls):
print(inspect.getfullargspec(cls.__call__))
return {"primary": "Intel"}
return [config.TranslationLayerRequirement(name = 'primary',
description = 'Kernel Address Space'),
config.IntRequirement(name = 'pid',
description = "Process ID",
optional = True)]
@staticmethod
def kernel_process_from_physical_process(ctx, physical_layer, kernel_layer, offset):