handle interrupt and unknown exceptions properly with external modules

This commit is contained in:
Brent Cook 2017-11-21 17:50:53 -06:00
parent 19844fb6ed
commit 81c6823b72
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