mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-12 20:57:39 +02:00
Refactor symbol to object_type (so it doesn't shadow builtin type).
This commit is contained in:
@@ -36,7 +36,7 @@ class Check_sysctl(plugins.PluginInterface):
|
||||
var_name = known_sysctls[name]
|
||||
|
||||
try:
|
||||
var_array = kernel.object(symbol = var_name)
|
||||
var_array = kernel.object(object_type = var_name)
|
||||
except exceptions.SymbolError:
|
||||
var_array = None
|
||||
|
||||
@@ -110,7 +110,7 @@ class Check_sysctl(plugins.PluginInterface):
|
||||
|
||||
kernel = contexts.Module(self._context, self.config['darwin'], self.config['primary'], 0)
|
||||
|
||||
sysctl_list = kernel.object_from_symbol(symbol = "sysctl__children")
|
||||
sysctl_list = kernel.object_from_symbol(object_type = "sysctl__children")
|
||||
|
||||
for sysctl, name, val in self._process_sysctl_list(kernel, sysctl_list):
|
||||
check_addr = sysctl.oid_handler
|
||||
|
||||
Reference in New Issue
Block a user