diff --git a/lib/msf/ui/console/command_dispatcher/exploit.rb b/lib/msf/ui/console/command_dispatcher/exploit.rb index 2d791adf34..c117771388 100644 --- a/lib/msf/ui/console/command_dispatcher/exploit.rb +++ b/lib/msf/ui/console/command_dispatcher/exploit.rb @@ -55,17 +55,17 @@ class Exploit 'LocalOutput' => driver.output) if (code) - stat = '[*]' if (code == Msf::Exploit::CheckCode::Vulnerable) - stat = '[+]' + print_good(code[1]) + else + print_status(code[1]) end - print_line(stat + ' ' + code[1]) else - print_error( - "Check failed: The state could not be determined.") + print_error("Check failed: The state could not be determined.") end + rescue ::Interrupt raise $! rescue ::Exception => e