Skip to content

Commit a8feb8c

Browse files
committed
make passwords faster for reading huge wordlest files
1 parent 4cb19c7 commit a8feb8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/scanner/http/wordpress_xmlrpc_login.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def initialize(info = {})
5656
end
5757

5858
def passwords
59-
File.readlines(datastore['PASS_FILE']).map {|pass| pass.chomp}
59+
File.readlines(datastore['PASS_FILE']).lazy.map {|pass| pass.chomp}
6060
end
6161

6262
def check_setup

0 commit comments

Comments
 (0)