handle general failure getting module info for external modules

bug/bundler_fix
Brent Cook 2017-04-09 11:50:03 -05:00
parent 1245eb9db9
commit d9ba993d25
1 changed files with 6 additions and 1 deletions

View File

@ -82,6 +82,11 @@ 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}"
''
end
end
end