Skip to content

Commit 7247f88

Browse files
committed
Empty line fix
Details: * Empty line fix added to each_user_pass function
1 parent 5679a72 commit 7247f88

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/auxiliary/scanner/http/wordpress_xmlrpc_login.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def initialize(info = {})
3939
[
4040
Opt::RPORT(80),
4141
OptString.new('TARGETURI', [true, 'The path to wordpress xmlrpc file, default is /xmlrpc.php', '/xmlrpc.php']),
42+
# OptBool.new('VERBOSE', [false, 'Whether to print output for all attempts', false]) # warning
4243
], self.class)
4344

4445
deregister_options('BLANK_PASSWORDS') # we don't need this option
@@ -87,7 +88,9 @@ def run_host(_ip)
8788

8889
print_status("#{rhost}:#{rport} - Starting XML-RPC login sweep")
8990
each_user_pass do |user, pass|
90-
do_login(user, pass)
91+
if user != "" # empty line fix ?
92+
do_login(user, pass)
93+
end
9194
end
9295
end
9396

0 commit comments

Comments
 (0)