mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-23 10:04:52 +02:00
Rework config system yet again, and start filling in some of the requirements.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user