Land #6671, Enable loader warnings for modules using class Metasploit3/4

bug/bundler_fix
Brent Cook 2016-03-13 14:10:05 -05:00
commit b60ca0d481
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96
1 changed files with 2 additions and 3 deletions

View File

@ -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