mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-31 12:19:42 +02:00
Provide a more user friendly filename.
This commit is contained in:
@@ -39,9 +39,8 @@ class Certificates(interfaces.plugins.PluginInterface):
|
||||
layer_name = self.config['primary'],
|
||||
symbol_table = self.config['nt_symbols']):
|
||||
|
||||
for top_key in ["Microsoft\\SystemCertificates",
|
||||
"Software\\Microsoft\\SystemCertificates",
|
||||
]:
|
||||
for key_type, top_key in [("Machine", "Microsoft\\SystemCertificates"),
|
||||
("User", "Software\\Microsoft\\SystemCertificates")]:
|
||||
try:
|
||||
# Walk it
|
||||
node_path = hive.get_key(top_key, return_list = True)
|
||||
@@ -54,8 +53,8 @@ class Certificates(interfaces.plugins.PluginInterface):
|
||||
key_hash = key_path[key_path.rindex("\\") + 1:]
|
||||
|
||||
if not isinstance(certificate_data, interfaces.renderers.BaseAbsentValue):
|
||||
filedata = interfaces.plugins.FileInterface(
|
||||
"{} - {} - {}.crt".format(hex(hive.hive_offset), reg_section, key_hash))
|
||||
filedata = interfaces.plugins.FileInterface("{} - {} - {}.crt".format(
|
||||
key_type, reg_section, key_hash))
|
||||
filedata.data.write(certificate_data)
|
||||
self.produce_file(filedata)
|
||||
yield (0, (top_key, reg_section, key_hash, name))
|
||||
|
||||
Reference in New Issue
Block a user