Windows Threads: Change list_process_threads signature

This updates the windows.threads plugin with a method signature change:
`module_name` is now `kernel_module_name` for clarity.

Co-authored-by: Andrew Case <andrew@dfir.org>
This commit is contained in:
David McDonald
2025-03-05 17:59:38 -06:00
co-authored by Andrew Case
parent d69b231f16
commit 23cd309045
@@ -16,7 +16,7 @@ class Threads(thrdscan.ThrdScan):
"""Lists process threads"""
_required_framework_version = (2, 4, 0)
_version = (1, 0, 1)
_version = (2, 0, 0)
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
@@ -59,16 +59,18 @@ class Threads(thrdscan.ThrdScan):
@classmethod
def list_process_threads(
cls, context: interfaces.context.ContextInterface, module_name: str
cls,
context: interfaces.context.ContextInterface,
kernel_module_name: str,
) -> Iterable[interfaces.objects.ObjectInterface]:
"""Runs through all processes and lists threads for each process"""
module = context.modules[module_name]
layer_name = module.layer_name
symbol_table_name = module.symbol_table_name
module = context.modules[kernel_module_name]
filter_func = pslist.PsList.create_pid_filter(context.config.get("pid", None))
for proc in pslist.PsList.list_processes(
context=context,
layer_name=layer_name,
symbol_table=symbol_table_name,
context,
kernel_module_name,
filter_func=filter_func,
):
yield from cls.list_threads(module, proc)