Skip to content

Commit 3769da2

Browse files
committed
Better fixes
1 parent f68d581 commit 3769da2

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

modules/auxiliary/scanner/http/ektron_cms400net.rb

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def initialize(info={})
3939
])
4040
], self.class)
4141

42+
# "Set to false to prevent account lockouts - it will!"
4243
deregister_options('BLANK_PASSWORDS')
4344
end
4445

@@ -58,23 +59,23 @@ def target_url
5859
end
5960
end
6061

61-
def cleanup
62-
datastore['BLANK_PASSWORDS'] = @blank_pass
63-
end
62+
def gen_blank_passwords(users, credentials)
63+
return credentials
64+
end
6465

6566
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-
7167
begin
7268
res = send_request_cgi(
7369
{
7470
'method' => 'GET',
7571
'uri' => normalize_uri(datastore['URI'])
7672
}, 20)
7773

74+
if res.nil?
75+
print_error("Connection timed out")
76+
return
77+
end
78+
7879
#Check for HTTP 200 response.
7980
#Numerous versions and configs make if difficult to further fingerprint.
8081
if (res and res.code == 200)
@@ -105,7 +106,7 @@ def run_host(ip)
105106
end
106107

107108
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}]")
109110
return
110111
end
111112
end

0 commit comments

Comments
 (0)