Skip to content

Commit 17c12a7

Browse files
committed
Fixed issue rapid7#7689, count of found users not accurate
In module drupal_views_user_enum, the count of found users is not accurate. Fixed it by doing flatten before doing counting.
1 parent 12af07d commit 17c12a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/scanner/http/drupal_views_user_enum.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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)