mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-06 17:57:38 +02:00
Update check_creds.py
changed behavior of plugin with it is run with a bad symbol table. Instead of a vollog.error, a TypeError exception is raised with information as to why it was raised. Also removed unnecessary header info.
This commit is contained in:
@@ -1,14 +1,7 @@
|
||||
# Volatility
|
||||
|
||||
# This file is Copyright 2019 Volatility Foundation and licensed under the Volatility Software License 1.0
|
||||
# which is available at https://www.volatilityfoundation.org/license/vsl-v1.0
|
||||
#
|
||||
|
||||
"""
|
||||
@author: Matt Tressler
|
||||
@contact: matthewtressler10@gmail.com
|
||||
"""
|
||||
|
||||
import logging
|
||||
from typing import List
|
||||
|
||||
@@ -44,7 +37,7 @@ class check_creds(interfaces.plugins.PluginInterface):
|
||||
type_task = self.context.symbol_space.get_type(self.config['vmlinux'] + constants.BANG +"task_struct")
|
||||
|
||||
if not type_task.has_member("cred"):
|
||||
vollog.error("this command is not supported by this profile")
|
||||
raise TypeError("This plugin requires the task_struct structure to have a cred member. This member is not present in the supplied symbol table. This means you are either analyzing an unsupported kernel version or that your symbol table is corrupt.")
|
||||
|
||||
creds = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user