Skip to content

Commit 261da93

Browse files
committed
Use store_loot
1 parent cf52dd8 commit 261da93

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

modules/post/windows/gather/enum_ad_users_to_wordlist.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,8 @@ def run
7979
ordered_dict = @words_dict.sort_by { |k,v| v }.reverse
8080
ordered_dict.collect! { |k, v| k }
8181

82-
wordlist_file = Rex::Quickfile.new("wordlist")
83-
wordlist_file.write(ordered_dict.join("\n") + "\n")
84-
print_status("Seeded the password database with #{output.length} words into #{wordlist_file.path}...")
85-
wordlist_file.close
82+
stored_path = store_loot('ad.wordlist', 'text/plain', session, ordered_dict.join("\n"))
83+
print_status("Results saved to: #{stored_path}")
8684
end
8785

8886
def search_words(field)

0 commit comments

Comments
 (0)