Skip to content

Commit c660279

Browse files
author
jvazquez-r7
committed
Land rapid7#2259, @wchen-r7's patch for [SeeRM rapid7#8319]
2 parents a58750f + 3769da2 commit c660279

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

modules/auxiliary/scanner/http/ektron_cms400net.rb

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ def initialize(info={})
2929

3030
register_options(
3131
[
32-
#Set to false to prevent account lockouts - it will!
33-
OptBool.new('BLANK_PASSWORDS', [false, "Try blank passwords for all users", false]),
3432
OptString.new('URI', [true, "Path to the CMS400.NET login page", '/WorkArea/login.aspx']),
3533
OptPath.new(
3634
'USERPASS_FILE',
@@ -40,7 +38,10 @@ def initialize(info={})
4038
File.join(Msf::Config.install_root, "data", "wordlists", "cms400net_default_userpass.txt")
4139
])
4240
], self.class)
43-
end
41+
42+
# "Set to false to prevent account lockouts - it will!"
43+
deregister_options('BLANK_PASSWORDS')
44+
end
4445

4546
def target_url
4647
#Function to display correct protocol and host/vhost info
@@ -58,6 +59,10 @@ def target_url
5859
end
5960
end
6061

62+
def gen_blank_passwords(users, credentials)
63+
return credentials
64+
end
65+
6166
def run_host(ip)
6267
begin
6368
res = send_request_cgi(
@@ -66,6 +71,11 @@ def run_host(ip)
6671
'uri' => normalize_uri(datastore['URI'])
6772
}, 20)
6873

74+
if res.nil?
75+
print_error("Connection timed out")
76+
return
77+
end
78+
6979
#Check for HTTP 200 response.
7080
#Numerous versions and configs make if difficult to further fingerprint.
7181
if (res and res.code == 200)

0 commit comments

Comments
 (0)