mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-22 09:34:52 +02:00
Refactor symbol to object_type (so it doesn't shadow builtin type).
This commit is contained in:
@@ -75,9 +75,9 @@ class Modules(interfaces.plugins.PluginInterface):
|
||||
type_name = ldr_entry_type.type_name.split(constants.BANG)[1]
|
||||
|
||||
list_head = ntkrnlmp.get_symbol("PsLoadedModuleList").address
|
||||
list_entry = ntkrnlmp.object(symbol = "_LIST_ENTRY", offset = list_head)
|
||||
list_entry = ntkrnlmp.object(object_type = "_LIST_ENTRY", offset = list_head)
|
||||
reloff = ldr_entry_type.relative_child_offset("InLoadOrderLinks")
|
||||
module = ntkrnlmp.object(symbol = type_name, offset = list_entry.vol.offset - reloff, absolute = True)
|
||||
module = ntkrnlmp.object(object_type = type_name, offset = list_entry.vol.offset - reloff, absolute = True)
|
||||
|
||||
for mod in module.InLoadOrderLinks:
|
||||
yield mod
|
||||
|
||||
Reference in New Issue
Block a user