From 147a9e49684533535b287fd0d4dab0dd1c190a16 Mon Sep 17 00:00:00 2001 From: ethicalhack3r Date: Thu, 8 Jan 2015 15:07:02 +0100 Subject: [PATCH] Recommend random-agent on 403 --- lib/wpscan/wp_target.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/wpscan/wp_target.rb b/lib/wpscan/wp_target.rb index b477d148..dd5d0ca8 100644 --- a/lib/wpscan/wp_target.rb +++ b/lib/wpscan/wp_target.rb @@ -41,8 +41,8 @@ class WpTarget < WebSite # Note: in the future major WPScan version, change the user-agent to see # if the response is a 200 ? - fail "The target is responding with a 403, this might be due to a WAF or a plugin\n" \ - 'You should try to supply a valid user-agent via the --user-agent option' if response.code == 403 + fail "The target is responding with a 403, this might be due to a WAF or a plugin.\n" \ + 'You should try to supply a valid user-agent via the --user-agent option or use the --random-agent option' if response.code == 403 if response.body =~ /["'][^"']*\/wp-content\/[^"']*["']/i wordpress = true