From c661f8dd9ae6d1aef0398980bc3182d7fa4afa40 Mon Sep 17 00:00:00 2001 From: erwanlr Date: Thu, 13 Dec 2012 13:30:40 +0100 Subject: [PATCH] Error raised when the website needs a basic authentification but none was provided --- wpscan.rb | 4 ++++ 1 file changed, 4 insertions(+) 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?