Skip to content

Commit 5c4b1b0

Browse files
committed
Output some information
1 parent 6e9cd33 commit 5c4b1b0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/post/windows/gather/enum_ad_users_to_wordlist.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ def run
7777
ordered_dict = @words_dict.sort_by { |k,v| v }.reverse
7878
ordered_dict.collect! { |k, v| k }
7979

80+
if ordered_dict.blank?
81+
print_error("The wordlist is empty")
82+
return
83+
end
84+
85+
print_good("Wordlist with #{ordered_dict.length} entries built")
8086
stored_path = store_loot('ad.wordlist', 'text/plain', session, ordered_dict.join("\n"))
8187
print_status("Results saved to: #{stored_path}")
8288
end

0 commit comments

Comments
 (0)