Skip to content

Commit 09bd046

Browse files
committed
fix regex
1 parent eaad4e0 commit 09bd046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/multi/http/mantisbt_php_exec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def get_mantis_version
7474
'data' => xml.to_s
7575
})
7676
if res && res.code == 200
77-
match = res.body.match(/<ns1:mc_versionResponse><return xsi:type="xsd:string">(.+)<\/return><\/ns1:mc_versionResponse>/)
77+
match = res.body.match(/<ns1:mc_versionResponse.*><return xsi:type="xsd:string">(.+)<\/return><\/ns1:mc_versionResponse>/)
7878
if match && match.length == 2
7979
version = match[1]
8080
print_status("Detected Mantis version #{version}")

0 commit comments

Comments
 (0)