Fix for 1.8.7 compatability, where regexes need escaped plusses.

git-svn-id: file:///home/svn/framework3/trunk@12115 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Tod Beardsley 2011-03-23 21:24:09 +00:00
parent ec5e61966d
commit a3f68b97a6
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ class Metasploit3 < Msf::Exploit::Remote
# the stock Postgresql downloads are Visual C++ for 8.4 and 8.3, and GCC for mingw)
# Also, the method to write files to disk doesn't appear to work on 9.0, so
# tabling that version for now.
if result[:auth] =~ /PostgreSQL (8\.[234]).*(Visual C++|mingw|cygwin)/i
if result[:auth] =~ /PostgreSQL (8\.[234]).*(Visual C\+\+|mingw|cygwin)/i
return $1
else
print_status "Found #{result[:auth]}"