Skip to content

Commit

Permalink
Merge pull request #3 from wvu-r7/pr/2848
Browse files Browse the repository at this point in the history
Fix even moar outstanding issues
  • Loading branch information
sho-luv committed Jan 9, 2014
2 parents a2958d4 + 8993c74 commit 8161663
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions modules/auxiliary/scanner/smb/ms08_067_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,27 @@ 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,
:name => "MS08-067",
: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

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

Expand Down

0 comments on commit 8161663

Please sign in to comment.