init_module_paths once in msfconsole
MSP-11672 Pass `'DeferModuleLoads' => false` to `Msf::Simple::Framework.create` so that `framework.modules.init_module_paths` is only called once (directly in `Msf::Ui::Console::Driver#initialize`) instead of twice (in `Msf::Simple::Framework.create` and `Msf::Ui::Console::Driver#initialize).bug/bundler_fix
parent
653c71e029
commit
90c6764426
|
@ -59,7 +59,10 @@ class Driver < Msf::Ui::Driver
|
|||
histfile = opts['HistFile'] || Msf::Config.history_file
|
||||
|
||||
# Initialize attributes
|
||||
self.framework = opts['Framework'] || Msf::Simple::Framework.create(opts)
|
||||
|
||||
# Defer loading of modules until paths from opts can be added below
|
||||
framework_create_options = {'DeferModuleLoads' => true}.merge(opts)
|
||||
self.framework = opts['Framework'] || Msf::Simple::Framework.create(framework_create_options)
|
||||
|
||||
if self.framework.datastore['Prompt']
|
||||
prompt = self.framework.datastore['Prompt']
|
||||
|
|
Loading…
Reference in New Issue