Skip to content
This repository was archived by the owner on May 16, 2025. It is now read-only.

Commit 76685db

Browse files
author
Michael Ligh
committed
patch the windows handles() plugin for older no PAT systems
1 parent 2c2fad9 commit 76685db

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

volatility/plugins/overlays/windows/windows.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,12 @@ def _make_handle_array(self, offset, level, depth = 0):
848848
count = 0x1000 / self.obj_vm.profile.get_obj_size("_HANDLE_TABLE_ENTRY")
849849
targetType = "_HANDLE_TABLE_ENTRY"
850850

851+
# as seen on an XP 32-bit system with no PAT, the kernel address 0 can
852+
# be valid, leading to successful instantiation of a handle array at
853+
# address zero, and lots of wasted resources from then on. stop it here.
854+
if offset == 0:
855+
raise StopIteration
856+
851857
table = obj.Object("Array", offset = offset, vm = self.obj_vm, count = count,
852858
targetType = targetType, parent = self, native_vm = self.obj_native_vm)
853859

0 commit comments

Comments
 (0)