Error raised when the website needs a basic authentification but none was provided

This commit is contained in:
erwanlr
2012-12-13 13:30:40 +01:00
parent 809311ee04
commit c661f8dd9a

View File

@@ -73,6 +73,10 @@ begin
end end
end end
if wp_target.has_basic_auth? && wpscan_options.basic_auth.nil?
raise "A basic authentification is required, please provide it with --basic-auth <login:password>"
end
# Remote website is wordpress? # Remote website is wordpress?
unless wpscan_options.force unless wpscan_options.force
unless wp_target.is_wordpress? unless wp_target.is_wordpress?