properly bubble up errors on external module load
parent
b370477326
commit
cfbc0a9a0c
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue