Final update i swear

bug/bundler_fix
sinn3r 2015-04-15 10:20:15 -05:00
parent 7a77dbc9f0
commit 19ab71aa43
1 changed files with 9 additions and 3 deletions

View File

@ -21,8 +21,8 @@ class Metasploit3 < Msf::Auxiliary
}, },
'Author' => 'Author' =>
[ [
'billbillthebillbill', # He did all the work (see the pastebin code) 'Bill Finlayson', # He did all the work (see the pastebin code), twitter: @hectorh56193716
'sinn3r' # MSF version of bill's work 'sinn3r' # MSF version of bill's work
], ],
'References' => 'References' =>
[ [
@ -52,14 +52,20 @@ class Metasploit3 < Msf::Auxiliary
end end
def check_host(ip) def check_host(ip)
uri = target_uri.path uri = normalize_uri(target_uri.path)
res = send_request_raw({'uri'=>uri}) res = send_request_raw({'uri'=>uri})
unless res unless res
vprint_error("#{ip}:#{rport} - Connection timed out") vprint_error("#{ip}:#{rport} - Connection timed out")
return Exploit::CheckCode::Unknown return Exploit::CheckCode::Unknown
end end
if res.code == 404
print_error("#{ip}:#{rport} - URI must be a valid resource")
return
end
if !res.headers['Server'].include?('Microsoft-IIS') if !res.headers['Server'].include?('Microsoft-IIS')
vprint_error("#{ip}:#{rport} - Target isn't IIS") vprint_error("#{ip}:#{rport} - Target isn't IIS")
return Exploit::CheckCode::Safe return Exploit::CheckCode::Safe