diff --git a/lib/msf/core/module_manager.rb b/lib/msf/core/module_manager.rb index d3f32fc3c6..1f1b789e3f 100644 --- a/lib/msf/core/module_manager.rb +++ b/lib/msf/core/module_manager.rb @@ -733,6 +733,7 @@ class ModuleManager < ModuleSet return end + added = nil ::Msf::Framework::Major.downto(1) do |major| if wrap.const_defined?("Metasploit#{major}") added = wrap.const_get("Metasploit#{major}")