From ef178298b2f2000e7d0665727ffc9dfa9348af6b Mon Sep 17 00:00:00 2001 From: jheysel-r7 Date: Thu, 14 Dec 2023 11:55:30 -0500 Subject: [PATCH] Update lib/msf/core/exploit/remote/http/atlassian/confluence/version.rb Co-authored-by: Christophe De La Fuente <56716719+cdelafuente-r7@users.noreply.github.com> --- .../core/exploit/remote/http/atlassian/confluence/version.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/msf/core/exploit/remote/http/atlassian/confluence/version.rb b/lib/msf/core/exploit/remote/http/atlassian/confluence/version.rb index b8bfc76bcab7..c7c95d34d2be 100644 --- a/lib/msf/core/exploit/remote/http/atlassian/confluence/version.rb +++ b/lib/msf/core/exploit/remote/http/atlassian/confluence/version.rb @@ -11,7 +11,6 @@ def get_confluence_version poweredby = res.get_xml_document.xpath('//ul[@id="poweredby"]/li[@class="print-only"]/text()').first&.text return nil unless poweredby =~ /Confluence (\d+(\.\d+)*)/ - confluence_version = Rex::Version.new(Regexp.last_match(1)) - confluence_version + Rex::Version.new(Regexp.last_match(1)) end end \ No newline at end of file