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:
erwanlr
2013-05-10 17:01:10 +02:00
parent cdd2c96b5e
commit 160ee4dcec

View File

@@ -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