diff --git a/modules/exploits/windows/postgres/postgres_payload.rb b/modules/exploits/windows/postgres/postgres_payload.rb index e50ee68e67..9c45b54f09 100644 --- a/modules/exploits/windows/postgres/postgres_payload.rb +++ b/modules/exploits/windows/postgres/postgres_payload.rb @@ -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]}"