mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-02 05:08:48 +02:00
Fix: compare logic for key_path and top_key
This commit is contained in:
@@ -6,7 +6,6 @@ from volatility3.framework.configuration import requirements
|
||||
from volatility3.framework.symbols.windows.extensions.registry import RegValueTypes
|
||||
from volatility3.plugins.windows.registry import hivelist, printkey
|
||||
|
||||
|
||||
class Certificates(interfaces.plugins.PluginInterface):
|
||||
"""Lists the certificates in the registry's Certificate Store."""
|
||||
|
||||
@@ -52,7 +51,7 @@ class Certificates(interfaces.plugins.PluginInterface):
|
||||
node) in printkey.PrintKey.key_iterator(hive, node_path, recurse = True):
|
||||
if not is_key and RegValueTypes(node.Type).name == "REG_BINARY":
|
||||
name, certificate_data = self.parse_data(node.decode_data())
|
||||
unique_key_offset = key_path.index(top_key) + len(top_key) + 1
|
||||
unique_key_offset = key_path.casefold().index(top_key.casefold()) + len(top_key) + 1
|
||||
reg_section = key_path[unique_key_offset:key_path.index("\\", unique_key_offset)]
|
||||
key_hash = key_path[key_path.rindex("\\") + 1:]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user