mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-08 02:37:39 +02:00
changed config['dump'] to config.get('dump')
The config['dump'] caused some trouble in dlllist.
This commit is contained in:
@@ -132,7 +132,7 @@ class Malfind(interfaces.plugins.PluginInterface):
|
||||
disasm = interfaces.renderers.Disassembly(data, vad.get_start(), architecture)
|
||||
|
||||
dumped = False
|
||||
if self.config['dump']:
|
||||
if self.config.get('dump'):
|
||||
filedata = vadinfo.VadInfo.vad_dump(self.context, proc, vad)
|
||||
if filedata:
|
||||
try:
|
||||
|
||||
@@ -52,7 +52,7 @@ class Memmap(interfaces.plugins.PluginInterface):
|
||||
offset, size, mapped_offset, mapped_size, maplayer = mapval
|
||||
|
||||
dumped = False
|
||||
if self.config['dump']:
|
||||
if self.config.get('dump'):
|
||||
try:
|
||||
data = proc_layer.read(offset, size, pad = True)
|
||||
filedata.data.write(data)
|
||||
|
||||
@@ -75,7 +75,7 @@ class ModScan(interfaces.plugins.PluginInterface):
|
||||
FullDllName = ""
|
||||
|
||||
dumped = False
|
||||
if self.config['dump']:
|
||||
if self.config.get('dump'):
|
||||
filedata = dlllist.DllList.dump_pe(self.context, pe_table_name, mod)
|
||||
if filedata:
|
||||
self.produce_file(filedata)
|
||||
|
||||
@@ -56,7 +56,7 @@ class Modules(interfaces.plugins.PluginInterface):
|
||||
FullDllName = ""
|
||||
|
||||
dumped = False
|
||||
if self.config['dump']:
|
||||
if self.config.get('dump'):
|
||||
filedata = dlllist.DllList.dump_pe(self.context, pe_table_name, mod)
|
||||
if filedata:
|
||||
self.produce_file(filedata)
|
||||
|
||||
@@ -184,7 +184,7 @@ class PsList(interfaces.plugins.PluginInterface, timeliner.TimeLinerInterface):
|
||||
(_, _, offset, _, _) = list(memory.mapping(offset = proc.vol.offset, length = 0))[0]
|
||||
|
||||
dumped = False
|
||||
if self.config['dump']:
|
||||
if self.config.get('dump'):
|
||||
filedata = self.process_dump(self.context, self.config['nt_symbols'], pe_table_name, proc)
|
||||
if filedata:
|
||||
dumped = True
|
||||
|
||||
@@ -71,7 +71,7 @@ class HiveList(interfaces.plugins.PluginInterface):
|
||||
filter_string = self.config.get('filter', None)):
|
||||
|
||||
dumped = False
|
||||
if self.config['dump']:
|
||||
if self.config.get('dump'):
|
||||
# Construct the hive
|
||||
hive = next(self.list_hives(self.context,
|
||||
self.config_path,
|
||||
|
||||
@@ -163,7 +163,7 @@ class VadInfo(interfaces.plugins.PluginInterface):
|
||||
for vad in self.list_vads(proc, filter_func = filter_func):
|
||||
|
||||
dumped = False
|
||||
if self.config['dump']:
|
||||
if self.config.get('dump'):
|
||||
filedata = self.vad_dump(self.context, proc, vad)
|
||||
self.produce_file(filedata)
|
||||
dumped = True
|
||||
|
||||
Reference in New Issue
Block a user