File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
modules/auxiliary/scanner/http Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ def initialize(info = {})
21
21
} ,
22
22
'Author' =>
23
23
[
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
26
26
] ,
27
27
'References' =>
28
28
[
@@ -52,14 +52,20 @@ def run_host(ip)
52
52
end
53
53
54
54
def check_host ( ip )
55
- uri = target_uri . path
55
+ uri = normalize_uri ( target_uri . path )
56
56
57
57
res = send_request_raw ( { 'uri' => uri } )
58
+
58
59
unless res
59
60
vprint_error ( "#{ ip } :#{ rport } - Connection timed out" )
60
61
return Exploit ::CheckCode ::Unknown
61
62
end
62
63
64
+ if res . code == 404
65
+ print_error ( "#{ ip } :#{ rport } - URI must be a valid resource" )
66
+ return
67
+ end
68
+
63
69
if !res . headers [ 'Server' ] . include? ( 'Microsoft-IIS' )
64
70
vprint_error ( "#{ ip } :#{ rport } - Target isn't IIS" )
65
71
return Exploit ::CheckCode ::Safe
You can’t perform that action at this time.
0 commit comments