File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
volatility3/framework/plugins/linux Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 55from typing import List
66import logging
77from volatility3 .framework import constants , interfaces
8- from volatility3 .framework import renderers
8+ from volatility3 .framework import renderers , symbols
99from volatility3 .framework .configuration import requirements
1010from volatility3 .framework .objects import utility
1111from volatility3 .framework .renderers import format_hints
@@ -63,15 +63,9 @@ def _list_injections(self, task):
6363 def _generator (self , tasks ):
6464 # determine if we're on a 32 or 64 bit kernel
6565 vmlinux = self .context .modules [self .config ["kernel" ]]
66- if (
67- self .context .symbol_space .get_type (
68- vmlinux .symbol_table_name + constants .BANG + "pointer"
69- ).size
70- == 4
71- ):
72- is_32bit_arch = True
73- else :
74- is_32bit_arch = False
66+ is_32bit_arch = not symbols .symbol_table_is_64bit (
67+ self .context , vmlinux .symbol_table_name
68+ )
7569
7670 for task in tasks :
7771 process_name = utility .array_to_string (task .comm )
You can’t perform that action at this time.
0 commit comments