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