From adc58412617b3dec073b2b30dec4dbdd7a8245df Mon Sep 17 00:00:00 2001 From: lp1 Date: Thu, 25 Oct 2018 18:09:04 +0200 Subject: [PATCH] Fixed too restrictive pattern matching on target.wordpress_hosted attribute --- lib/wpscan/target/platform/wordpress.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wpscan/target/platform/wordpress.rb b/lib/wpscan/target/platform/wordpress.rb index e6d88118..ba98b11b 100644 --- a/lib/wpscan/target/platform/wordpress.rb +++ b/lib/wpscan/target/platform/wordpress.rb @@ -41,7 +41,7 @@ module WPScan end def wordpress_hosted? - uri.host =~ /wordpress.com$/i ? true : false + uri.host =~ /\.wordpress\.com$/i ? true : false end # @param [ String ] username