File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
modules/auxiliary/scanner/http Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ def initialize(info={})
39
39
] )
40
40
] , self . class )
41
41
42
+ # "Set to false to prevent account lockouts - it will!"
42
43
deregister_options ( 'BLANK_PASSWORDS' )
43
44
end
44
45
@@ -58,23 +59,23 @@ def target_url
58
59
end
59
60
end
60
61
61
- def cleanup
62
- datastore [ 'BLANK_PASSWORDS' ] = @blank_pass
63
- end
62
+ def gen_blank_passwords ( users , credentials )
63
+ return credentials
64
+ end
64
65
65
66
def run_host ( ip )
66
- # "Set to false to prevent account lockouts - it will!"
67
- # Therefore we shouldn't present BLANK_PASSWORDS as an option
68
- @blank_pass = datastore [ 'BLANK_PASSWORDS' ]
69
- datastore [ 'BLANK_PASSWORDS' ] = false
70
-
71
67
begin
72
68
res = send_request_cgi (
73
69
{
74
70
'method' => 'GET' ,
75
71
'uri' => normalize_uri ( datastore [ 'URI' ] )
76
72
} , 20 )
77
73
74
+ if res . nil?
75
+ print_error ( "Connection timed out" )
76
+ return
77
+ end
78
+
78
79
#Check for HTTP 200 response.
79
80
#Numerous versions and configs make if difficult to further fingerprint.
80
81
if ( res and res . code == 200 )
@@ -105,7 +106,7 @@ def run_host(ip)
105
106
end
106
107
107
108
rescue
108
- print_error ( "Ektron CMS400.NET login page not found at #{ target_url } [HTTP #{ res . code rescue '= No response' } ]" )
109
+ print_error ( "Ektron CMS400.NET login page not found at #{ target_url } [HTTP #{ res . code } ]" )
109
110
return
110
111
end
111
112
end
You can’t perform that action at this time.
0 commit comments