This commit is contained in:
Christian Mehlmauer
2015-05-01 22:15:58 +02:00
parent 04d50ebea5
commit b22550ea55

View File

@@ -87,6 +87,9 @@ def main
# Remote website has a redirection? # Remote website has a redirection?
if (redirection = wp_target.redirection) if (redirection = wp_target.redirection)
if redirection =~ /\/wp-admin\/install\.php$/
puts "#{critical('[!]')} The Website is not fully configured and currently in install mode. Call it to create a new admin user."
else
if wpscan_options.follow_redirection if wpscan_options.follow_redirection
puts "Following redirection #{redirection}" puts "Following redirection #{redirection}"
else else
@@ -105,6 +108,7 @@ def main
end end
end end
end end
end
if wp_target.has_basic_auth? && wpscan_options.basic_auth.nil? if wp_target.has_basic_auth? && wpscan_options.basic_auth.nil?
raise 'Basic authentication is required, please provide it with --basic-auth <login:password>' raise 'Basic authentication is required, please provide it with --basic-auth <login:password>'