mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-31 20:29:46 +02:00
Plugins: make get_executable_path more accurate in process_spoofing
This commit is contained in:
@@ -59,7 +59,7 @@ class ProcessSpoofing(plugins.PluginInterface):
|
||||
task: task_struct object of the process
|
||||
|
||||
Returns:
|
||||
Tuple of (basename, is_deleted) or (None, False) if not available
|
||||
Tuple of (full_path, is_deleted) or (None, False) if not available
|
||||
"""
|
||||
is_deleted = False
|
||||
|
||||
@@ -105,8 +105,7 @@ class ProcessSpoofing(plugins.PluginInterface):
|
||||
)
|
||||
# Continue without deletion info - we still have the path
|
||||
|
||||
basename = PurePosixPath(exe_path).name
|
||||
return basename, is_deleted
|
||||
return exe_path, is_deleted
|
||||
|
||||
@classmethod
|
||||
def get_cmdline_basename(
|
||||
@@ -185,7 +184,8 @@ class ProcessSpoofing(plugins.PluginInterface):
|
||||
Returns:
|
||||
Tuple of (exe_basename, cmdline_basename, comm, is_deleted)
|
||||
"""
|
||||
exe_basename, is_deleted = self.get_executable_path(self.context, task)
|
||||
exe_path, is_deleted = self.get_executable_path(self.context, task)
|
||||
exe_basename = PurePosixPath(exe_path).name if exe_path else None
|
||||
cmdline_basename = self.get_cmdline_basename(self.context, task)
|
||||
comm = self.get_comm(task)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user