Added hosted wordpress detection. See issue #343.

This commit is contained in:
ethicalhack3r
2013-10-28 00:18:09 +01:00
parent ac1228d97c
commit a7d9927584
3 changed files with 25 additions and 0 deletions

View File

@@ -56,6 +56,10 @@ class WpTarget < WebSite
wordpress
end
def wordpress_hosted?
@uri.to_s =~ /\.wordpress\.com/i
end
def login_url
url = @uri.merge('wp-login.php').to_s