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,7 +21,7 @@ class Metasploit3 < Msf::Auxiliary
},
'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
],
'References' =>
@ -52,14 +52,20 @@ class Metasploit3 < Msf::Auxiliary
end
def check_host(ip)
uri = target_uri.path
uri = normalize_uri(target_uri.path)
res = send_request_raw({'uri'=>uri})
unless res
vprint_error("#{ip}:#{rport} - Connection timed out")
return Exploit::CheckCode::Unknown
end
if res.code == 404
print_error("#{ip}:#{rport} - URI must be a valid resource")
return
end
if !res.headers['Server'].include?('Microsoft-IIS')
vprint_error("#{ip}:#{rport} - Target isn't IIS")
return Exploit::CheckCode::Safe