From 8993c740834071dbba386cea8eecc4fa0b79b9cd Mon Sep 17 00:00:00 2001 From: William Vu Date: Wed, 8 Jan 2014 19:38:54 -0600 Subject: [PATCH] Fix even moar outstanding issues --- modules/auxiliary/scanner/smb/ms08_067_check.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/auxiliary/scanner/smb/ms08_067_check.rb b/modules/auxiliary/scanner/smb/ms08_067_check.rb index 9fcba771b139..86a8e0a1c8b2 100644 --- a/modules/auxiliary/scanner/smb/ms08_067_check.rb +++ b/modules/auxiliary/scanner/smb/ms08_067_check.rb @@ -42,7 +42,8 @@ def initialize end def run_host(ip) - if check_vuln == Msf::Exploit::CheckCode::Vulnerable + case check_vuln + when Msf::Exploit::CheckCode::Vulnerable print_good("#{ip}:#{rport} - MS08-067 VULNERABLE") report_vuln({ :host => ip, @@ -50,6 +51,10 @@ def run_host(ip) :info => "Vulnerability in Server service could allow remote code execution", :refs => self.references }) + when Msf::Exploit::CheckCode::Safe + vprint_status("#{ip}:#{rport} - MS08-067 SAFE") + when Msf::Exploit::CheckCode::Unknown + vprint_status("#{ip}:#{rport} - MS08-067 UNKNOWN") end end @@ -57,7 +62,7 @@ def check_vuln begin connect() smb_login() - rescue Rex::ConnectionError, Rex::Proto::SMB::Exceptions::LoginError + rescue Rex::Proto::SMB::Exceptions::LoginError return Msf::Exploit::CheckCode::Unknown end