Syntax fix

This commit is contained in:
Ege Balcı
2023-08-11 18:25:36 +02:00
parent 0d7591c2fb
commit 2edf12d303
+1 -1
View File
@@ -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<b>([0-9.]+)</b>\)
version = Rex::Version.new(Regexp.last_match(1)) if res.body =~ %r{\(v<b>([0-9.]+)</b>\)}
if version <= Rex::Version.new('0.54')
return CheckCode::Appears("Version Detected: #{version}")