fix regex

bug/bundler_fix
Christian Mehlmauer 2015-01-07 11:54:55 +01:00
parent eaad4e0bea
commit 09bd0465cf
No known key found for this signature in database
GPG Key ID: BCFF4FA966BC32C7
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ class Metasploit3 < Msf::Exploit::Remote
'data' => xml.to_s
})
if res && res.code == 200
match = res.body.match(/<ns1:mc_versionResponse><return xsi:type="xsd:string">(.+)<\/return><\/ns1:mc_versionResponse>/)
match = res.body.match(/<ns1:mc_versionResponse.*><return xsi:type="xsd:string">(.+)<\/return><\/ns1:mc_versionResponse>/)
if match && match.length == 2
version = match[1]
print_status("Detected Mantis version #{version}")