Skip to content

Commit 19ab71a

Browse files
committed
Final update i swear
1 parent 7a77dbc commit 19ab71a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

modules/auxiliary/scanner/http/ms15_034_ulonglongadd.rb

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def initialize(info = {})
2121
},
2222
'Author' =>
2323
[
24-
'billbillthebillbill', # He did all the work (see the pastebin code)
25-
'sinn3r' # MSF version of bill's work
24+
'Bill Finlayson', # He did all the work (see the pastebin code), twitter: @hectorh56193716
25+
'sinn3r' # MSF version of bill's work
2626
],
2727
'References' =>
2828
[
@@ -52,14 +52,20 @@ def run_host(ip)
5252
end
5353

5454
def check_host(ip)
55-
uri = target_uri.path
55+
uri = normalize_uri(target_uri.path)
5656

5757
res = send_request_raw({'uri'=>uri})
58+
5859
unless res
5960
vprint_error("#{ip}:#{rport} - Connection timed out")
6061
return Exploit::CheckCode::Unknown
6162
end
6263

64+
if res.code == 404
65+
print_error("#{ip}:#{rport} - URI must be a valid resource")
66+
return
67+
end
68+
6369
if !res.headers['Server'].include?('Microsoft-IIS')
6470
vprint_error("#{ip}:#{rport} - Target isn't IIS")
6571
return Exploit::CheckCode::Safe

0 commit comments

Comments
 (0)