fix regex
parent
eaad4e0bea
commit
09bd0465cf
|
@ -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}")
|
||||
|
|
Loading…
Reference in New Issue