Sets the Target#mu_plugind to true when detected passively
This commit is contained in:
@@ -14,6 +14,8 @@ module WPScan
|
|||||||
|
|
||||||
url = target.url('wp-content/mu-plugins/')
|
url = target.url('wp-content/mu-plugins/')
|
||||||
|
|
||||||
|
target.mu_plugins = true
|
||||||
|
|
||||||
return Model::MuPlugins.new(
|
return Model::MuPlugins.new(
|
||||||
url,
|
url,
|
||||||
confidence: 70,
|
confidence: 70,
|
||||||
@@ -33,8 +35,6 @@ module WPScan
|
|||||||
return unless [200, 401, 403].include?(res.code)
|
return unless [200, 401, 403].include?(res.code)
|
||||||
return if target.homepage_or_404?(res)
|
return if target.homepage_or_404?(res)
|
||||||
|
|
||||||
# TODO: add the check for --exclude-content once implemented ?
|
|
||||||
|
|
||||||
target.mu_plugins = true
|
target.mu_plugins = true
|
||||||
|
|
||||||
Model::MuPlugins.new(
|
Model::MuPlugins.new(
|
||||||
|
|||||||
Reference in New Issue
Block a user