Land #8212, Handle failures loading external modules

bug/bundler_fix
Adam Cammack 2017-04-10 11:10:19 -05:00
commit b25cdd2d3b
No known key found for this signature in database
GPG Key ID: C9378BA088092D66
1 changed files with 9 additions and 1 deletions

View File

@ -82,6 +82,14 @@ class Msf::Modules::Loader::Executable < Msf::Modules::Loader::Base
load_error(full_path, Errno::ENOENT.new)
return ''
end
Msf::Modules::External::Shim.generate(full_path)
begin
Msf::Modules::External::Shim.generate(full_path)
rescue ::Exception => e
elog "Unable to load module #{full_path} #{e.class} #{e}"
# XXX migrate this to a full load_error when we can tell the user why the
# module did not load and/or how to resolve it.
# load_error(full_path, e)
''
end
end
end