Land #6671, Enable loader warnings for modules using class Metasploit3/4
commit
b60ca0d481
|
@ -147,11 +147,10 @@ class Msf::Modules::Loader::Base
|
|||
|
||||
if namespace_module.const_defined?('Metasploit3', false)
|
||||
klass = namespace_module.const_get('Metasploit3', false)
|
||||
# We are not quite yet ready for the warnings to bubble to the user
|
||||
# load_warning(module_path, 'Please change the modules class name from Metasploit3 to MetasploitModule')
|
||||
load_warning(module_path, 'Please change the modules class name from Metasploit3 to MetasploitModule')
|
||||
elsif namespace_module.const_defined?('Metasploit4', false)
|
||||
klass = namespace_module.const_get('Metasploit4', false)
|
||||
# load_warning(module_path, 'Please change the modules class name from Metasploit4 to MetasploitModule')
|
||||
load_warning(module_path, 'Please change the modules class name from Metasploit4 to MetasploitModule')
|
||||
elsif namespace_module.const_defined?('MetasploitModule', false)
|
||||
klass = namespace_module.const_get('MetasploitModule', false)
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue