From 09bd0465cf120e34b210b12ec9897c60298535cf Mon Sep 17 00:00:00 2001 From: Christian Mehlmauer Date: Wed, 7 Jan 2015 11:54:55 +0100 Subject: [PATCH] fix regex --- modules/exploits/multi/http/mantisbt_php_exec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/exploits/multi/http/mantisbt_php_exec.rb b/modules/exploits/multi/http/mantisbt_php_exec.rb index 2e0cafc8ce..48523cc5ef 100644 --- a/modules/exploits/multi/http/mantisbt_php_exec.rb +++ b/modules/exploits/multi/http/mantisbt_php_exec.rb @@ -74,7 +74,7 @@ class Metasploit3 < Msf::Exploit::Remote 'data' => xml.to_s }) if res && res.code == 200 - match = res.body.match(/(.+)<\/return><\/ns1:mc_versionResponse>/) + match = res.body.match(/(.+)<\/return><\/ns1:mc_versionResponse>/) if match && match.length == 2 version = match[1] print_status("Detected Mantis version #{version}")