From 1da2f5e823366075ba1d075119eb56e276d4a416 Mon Sep 17 00:00:00 2001 From: erwanlr Date: Thu, 4 Apr 2019 17:25:58 +0100 Subject: [PATCH] Sets the Target#mu_plugind to true when detected passively --- app/finders/interesting_findings/mu_plugins.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/finders/interesting_findings/mu_plugins.rb b/app/finders/interesting_findings/mu_plugins.rb index fc5db708..2a316b7e 100644 --- a/app/finders/interesting_findings/mu_plugins.rb +++ b/app/finders/interesting_findings/mu_plugins.rb @@ -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(