Skip to content

Commit

Permalink
Merge pull request #1178 from dgmcdona/dgmcdona/windows_poolscan_laye…
Browse files Browse the repository at this point in the history
…r_bug

Windows: fixes scanner bug for versions < win10
  • Loading branch information
ikelos authored Jun 23, 2024
2 parents 7ece5fb + 898c084 commit ac5769c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions volatility3/framework/contexts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,13 @@ def object(
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,
Expand Down

0 comments on commit ac5769c

Please sign in to comment.