Fixes non detection of plugin/theme readme and changelog files due to changes in CMSSCanner

This commit is contained in:
erwanlr
2019-03-25 21:25:00 +00:00
parent bf91f60242
commit 7ea1acb7c1
4 changed files with 41 additions and 4 deletions

View File

@@ -9,6 +9,10 @@ module WPScan
super(slug, blog, opts)
@uri = Addressable::URI.parse(blog.url("wp-content/plugins/#{slug}/"))
# To be used by #head_and_get
# If custom wp-content, it will be replaced by blog#url
@path_from_blog = "wp-content/plugins/#{slug}/"
end
# @return [ JSON ]