use happy color printer functions for cmd_check

git-svn-id: file:///home/svn/framework3/trunk@8727 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Joshua Drake
2010-03-05 17:03:59 +00:00
parent 195d1ab4b8
commit 2f3b54efe3
@@ -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