properly bubble up errors on external module load

GSoC/Meterpreter_Web_Console
Brent Cook 2018-10-06 05:52:34 -05:00
parent b370477326
commit cfbc0a9a0c
2 changed files with 2 additions and 1 deletions

View File

@ -47,5 +47,6 @@ class Msf::Modules::External
exec method: :describe do |msg|
return msg.params if msg.method == :reply
end
return nil
end
end

View File

@ -4,7 +4,7 @@ require 'msf/core/modules/external'
class Msf::Modules::External::Shim
def self.generate(module_path, framework)
mod = Msf::Modules::External.new(module_path, framework: framework)
return '' unless mod.meta
return nil unless mod.meta
case mod.meta['type']
when 'remote_exploit'
remote_exploit(mod)