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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user