Syntax fix
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user