Final update i swear
parent
7a77dbc9f0
commit
19ab71aa43
|
@ -21,7 +21,7 @@ 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
|
||||||
|
|
Loading…
Reference in New Issue