We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaad4e0 commit 09bd046Copy full SHA for 09bd046
modules/exploits/multi/http/mantisbt_php_exec.rb
@@ -74,7 +74,7 @@ def get_mantis_version
74
'data' => xml.to_s
75
})
76
if res && res.code == 200
77
- 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>/)
78
if match && match.length == 2
79
version = match[1]
80
print_status("Detected Mantis version #{version}")
0 commit comments