From 5386496bdc39b16d4a6e60731267afca6760f998 Mon Sep 17 00:00:00 2001 From: Christian Mehlmauer Date: Wed, 6 Apr 2016 14:13:56 +0200 Subject: [PATCH] move wordpress check to the top --- wpscan.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wpscan.rb b/wpscan.rb index eba4e1da..7fb2b3f6 100755 --- a/wpscan.rb +++ b/wpscan.rb @@ -82,6 +82,10 @@ def main wp_target = WpTarget.new(wpscan_options.url, wpscan_options.to_h) + if wp_target.wordpress_hosted? + raise 'We do not support scanning *.wordpress.com hosted blogs' + end + # Remote website up? unless wp_target.online? raise "The WordPress URL supplied '#{wp_target.uri}' seems to be down." @@ -157,10 +161,6 @@ def main puts info("Started: #{start_time.asctime}") puts - if wp_target.wordpress_hosted? - puts critical('We do not support scanning *.wordpress.com hosted blogs') - end - if wp_target.has_robots? puts info("robots.txt available under: '#{wp_target.robots_url}'")