Sets the Target#mu_plugind to true when detected passively

This commit is contained in:
erwanlr
2019-04-04 17:25:58 +01:00
parent 888779f81b
commit 1da2f5e823

View File

@@ -14,6 +14,8 @@ module WPScan
url = target.url('wp-content/mu-plugins/')
target.mu_plugins = true
return Model::MuPlugins.new(
url,
confidence: 70,
@@ -33,8 +35,6 @@ module WPScan
return unless [200, 401, 403].include?(res.code)
return if target.homepage_or_404?(res)
# TODO: add the check for --exclude-content once implemented ?
target.mu_plugins = true
Model::MuPlugins.new(