From 2f3b54efe3fdd9fbd66ea5f2b7e3abb713ecfbeb Mon Sep 17 00:00:00 2001 From: Joshua Drake Date: Fri, 5 Mar 2010 17:03:59 +0000 Subject: [PATCH] use happy color printer functions for cmd_check git-svn-id: file:///home/svn/framework3/trunk@8727 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/ui/console/command_dispatcher/exploit.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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