mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-30 05:24:52 +02:00
Merge pull request #1178 from dgmcdona/dgmcdona/windows_poolscan_layer_bug
Windows: fixes scanner bug for versions < win10
This commit is contained in:
@@ -256,12 +256,13 @@ class Module(interfaces.context.ModuleInterface):
|
||||
if not absolute:
|
||||
offset += self._offset
|
||||
|
||||
# Ensure we don't use a layer_name other than the module's, why would anyone do that?
|
||||
if "layer_name" in kwargs:
|
||||
del kwargs["layer_name"]
|
||||
# We have to allow using an alternative layer name due to pool scanners switching
|
||||
# to the memory layer for scanning samples prior to Windows 10.
|
||||
layer_name = kwargs.pop("layer_name", self._layer_name)
|
||||
|
||||
return self._context.object(
|
||||
object_type=object_type,
|
||||
layer_name=self._layer_name,
|
||||
layer_name=layer_name,
|
||||
offset=offset,
|
||||
native_layer_name=native_layer_name or self._native_layer_name,
|
||||
**kwargs,
|
||||
|
||||
Reference in New Issue
Block a user