Skip to content

Commit ba351f5

Browse files
committed
Linux: Update malfind plugin to use symbols.symbol_table_is_64bit when determining if a 32bit OS is detected in the sample
1 parent 5d2a5f9 commit ba351f5

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

volatility3/framework/plugins/linux/malfind.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from typing import List
66
import logging
77
from volatility3.framework import constants, interfaces
8-
from volatility3.framework import renderers
8+
from volatility3.framework import renderers, symbols
99
from volatility3.framework.configuration import requirements
1010
from volatility3.framework.objects import utility
1111
from 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)

0 commit comments

Comments
 (0)