mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-12 12:47:39 +02:00
Merge pull request #1143 from volatilityfoundation/dumpfiles_dump_only_once_per_file_object
Prevent duplicate processing of the same file object
This commit is contained in:
@@ -244,6 +244,8 @@ class DumpFiles(interfaces.plugins.PluginInterface):
|
||||
symbol_table=kernel.symbol_table_name,
|
||||
)
|
||||
|
||||
dumped_files = set()
|
||||
|
||||
for proc in procs:
|
||||
try:
|
||||
object_table = proc.ObjectTable
|
||||
@@ -267,6 +269,10 @@ class DumpFiles(interfaces.plugins.PluginInterface):
|
||||
if not file_re.search(name):
|
||||
continue
|
||||
|
||||
if file_obj.vol.offset in dumped_files:
|
||||
continue
|
||||
dumped_files.add(file_obj.vol.offset)
|
||||
|
||||
for result in self.process_file_object(
|
||||
self.context, kernel.layer_name, self.open, file_obj
|
||||
):
|
||||
@@ -303,6 +309,10 @@ class DumpFiles(interfaces.plugins.PluginInterface):
|
||||
if not file_re.search(name):
|
||||
continue
|
||||
|
||||
if file_obj.vol.offset in dumped_files:
|
||||
continue
|
||||
dumped_files.add(file_obj.vol.offset)
|
||||
|
||||
for result in self.process_file_object(
|
||||
self.context, kernel.layer_name, self.open, file_obj
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user