From 20eb2d825d069fc36eb473d23ecbe614f0560818 Mon Sep 17 00:00:00 2001 From: Dwi Siswanto Date: Thu, 10 Sep 2020 17:30:36 +0700 Subject: [PATCH] :hammer: Update regex --- app/finders/interesting_findings/duplicator_installer_log.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/finders/interesting_findings/duplicator_installer_log.rb b/app/finders/interesting_findings/duplicator_installer_log.rb index 83a9b263..b1c2af4e 100644 --- a/app/finders/interesting_findings/duplicator_installer_log.rb +++ b/app/finders/interesting_findings/duplicator_installer_log.rb @@ -9,7 +9,7 @@ module WPScan def aggressive(_opts = {}) path = 'installer-log.txt' - return unless /DUPLICATOR(?:-(PRO|LITE):)? INSTALL-LOG/i.match?(target.head_and_get(path).body) + return unless /DUPLICATOR(-|\s)?(PRO|LITE)?:? INSTALL-LOG/i.match?(target.head_and_get(path).body) Model::DuplicatorInstallerLog.new(target.url(path), confidence: 100, found_by: DIRECT_ACCESS) end