Fix #181 Don't exit if no usernames found during a simple enumeration (but exit if a brute force is asked)
This commit is contained in:
12
wpscan.rb
12
wpscan.rb
@@ -260,15 +260,17 @@ def main
|
||||
show_progression: false
|
||||
)
|
||||
)
|
||||
puts
|
||||
|
||||
if wp_users.empty?
|
||||
puts 'We did not enumerate any usernames :('
|
||||
puts 'Try supplying your own username with the --username option'
|
||||
puts
|
||||
exit(1)
|
||||
|
||||
if wpscan_options.wordlist
|
||||
puts 'Try supplying your own username with the --username option'
|
||||
puts
|
||||
exit(1)
|
||||
end
|
||||
else
|
||||
puts green('[+]') + " We found the following #{wp_users.size} user/s :"
|
||||
|
||||
wp_users.output(margin_left: ' ' * 4)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user