Skip to content

Commit 2b0bce6

Browse files
committed
Land rapid7#7690, drupal_views_user_enum user count fix
2 parents 77dd952 + 4e235be commit 2b0bce6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/auxiliary/scanner/http/drupal_views_user_enum.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module of Drupal, brute-forcing the first 10 usernames from 'a' to 'z'
4040
end
4141

4242
def base_uri
43-
@base_uri ||= "#{normalize_uri(target_uri.path)}?q=admin/views/ajax/autocomplete/user/"
43+
@base_uri ||= normalize_uri("#{target_uri.path}/?q=admin/views/ajax/autocomplete/user/")
4444
end
4545

4646
def check_host(ip)
@@ -126,9 +126,9 @@ def run_host(ip)
126126
return
127127
end
128128
end
129-
129+
results = results.flatten.uniq
130130
print_status("Done. #{results.length} usernames found...")
131-
results.flatten.uniq.each do |user|
131+
results.each do |user|
132132
print_good("Found User: #{user}")
133133

134134
report_cred(

0 commit comments

Comments
 (0)