From 2edf12d30309dfd753657e2a692aff86d97c6fd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ege=20Balc=C4=B1?= Date: Fri, 11 Aug 2023 18:25:36 +0200 Subject: [PATCH] Syntax fix --- modules/exploits/unix/http/maltrail_rce.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/exploits/unix/http/maltrail_rce.rb b/modules/exploits/unix/http/maltrail_rce.rb index eaa7770be2..76d398ea06 100644 --- a/modules/exploits/unix/http/maltrail_rce.rb +++ b/modules/exploits/unix/http/maltrail_rce.rb @@ -91,7 +91,7 @@ class MetasploitModule < Msf::Exploit::Remote return CheckCode::Unknown("#{peer} - Could not connect to web service - no response") if res.nil? return CheckCode::Unknown("#{peer} - Check URI Path, unexpected HTTP response code: #{res.code}") unless res.code == 200 - version = Rex::Version.new(Regexp.last_match(1)) if res.body =~ %r{\(v([0-9.]+)\) + version = Rex::Version.new(Regexp.last_match(1)) if res.body =~ %r{\(v([0-9.]+)\)} if version <= Rex::Version.new('0.54') return CheckCode::Appears("Version Detected: #{version}")