Skip to content

Commit 81c6823

Browse files
committed
handle interrupt and unknown exceptions properly with external modules
1 parent 19844fb commit 81c6823

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/msf/core/module/external.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ def wait_status(mod)
1717
end
1818
end
1919
end
20-
rescue Exception => e #Msf::Modules::External::Bridge::Error => e
20+
rescue Interrupt => e
21+
raise e
22+
rescue Exception => e
2123
elog e.backtrace.join("\n")
22-
fail_with Failure::UNKNOWN, e.message
24+
fail_with Msf::Module::Failure::Unknown, e.message
2325
end
2426
end
2527

0 commit comments

Comments
 (0)