Land #9231, Properly handle external module errors

MS-2855/keylogger-mettle-extension
Adam Cammack 2017-11-22 14:30:24 -06:00
commit ccdd1cd2ce
No known key found for this signature in database
GPG Key ID: C9378BA088092D66
1 changed files with 4 additions and 2 deletions

View File

@ -17,9 +17,11 @@ module Msf::Module::External
end
end
end
rescue Exception => e #Msf::Modules::External::Bridge::Error => e
rescue Interrupt => e
raise e
rescue Exception => e
elog e.backtrace.join("\n")
fail_with Failure::UNKNOWN, e.message
fail_with Msf::Module::Failure::Unknown, e.message
end
end