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:
@@ -260,15 +260,17 @@ def main
|
|||||||
show_progression: false
|
show_progression: false
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
puts
|
|
||||||
if wp_users.empty?
|
if wp_users.empty?
|
||||||
puts 'We did not enumerate any usernames :('
|
puts 'We did not enumerate any usernames :('
|
||||||
|
|
||||||
|
if wpscan_options.wordlist
|
||||||
puts 'Try supplying your own username with the --username option'
|
puts 'Try supplying your own username with the --username option'
|
||||||
puts
|
puts
|
||||||
exit(1)
|
exit(1)
|
||||||
|
end
|
||||||
else
|
else
|
||||||
puts green('[+]') + " We found the following #{wp_users.size} user/s :"
|
puts green('[+]') + " We found the following #{wp_users.size} user/s :"
|
||||||
|
|
||||||
wp_users.output(margin_left: ' ' * 4)
|
wp_users.output(margin_left: ' ' * 4)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user