diff --git a/wpscan.rb b/wpscan.rb index 02743689..4c3f1df6 100755 --- a/wpscan.rb +++ b/wpscan.rb @@ -73,6 +73,10 @@ begin 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 " + end + # Remote website is wordpress? unless wpscan_options.force unless wp_target.is_wordpress?