mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-06 17:57:38 +02:00
Volshell: Fix recent script option for non-generic volshell
This commit is contained in:
@@ -86,7 +86,9 @@ class Volshell(interfaces.plugins.PluginInterface):
|
||||
|
||||
sys.ps1 = "({}) >>> ".format(self.current_layer)
|
||||
self.__console = code.InteractiveConsole(locals = self._construct_locals_dict())
|
||||
if self.config['script'] is not None:
|
||||
# Since we have to do work to add the option only once for all different modes of volshell, we can't
|
||||
# rely on the default having been set
|
||||
if self.config.get('script', None) is not None:
|
||||
self.run_script(location = self.config['script'])
|
||||
|
||||
self.__console.interact(banner = banner)
|
||||
|
||||
Reference in New Issue
Block a user