1N3 / Sn1per

Attack Surface Management Platform
https://sn1persecurity.com
Other
8.06k stars 1.85k forks source link

Metasploit #273

Closed Jase-NZ closed 4 years ago

Jase-NZ commented 4 years ago

After upgrade to 8.4 I see the following info. I don't think it matters just annoying to see it all the time. The pg and/or activerecord gem version has changed, meaning deprecated pg constants may no longer be in use, so try deleting this file to see if the 'The PGconn, PGresult, and PGError constants are deprecated...' message has gone: /usr/share/metasploit-framework/lib/pg/deprecated_constants.rb

1N3 commented 4 years ago

Hi, Haven't seen this error yet, but can you try the following and see if the error goes away?

mv /usr/share/metasploit-framework/lib/pg/deprecated_constants.rb /usr/share/metasploit-framework/lib/pg/deprecated_constants.rb.bak

Jase-NZ commented 4 years ago

Hey thanks for the reply and awesome work. Been down that road and throws this up instead. As I said it does not seem to stop anything .

`The PGconn, PGresult, and PGError constants are deprecated, and will be removed as of version 1.0.

You should use PG::Connection, PG::Result, and PG::Error instead, respectively.

The PGconn, PGresult, and PGError constants are deprecated, and will be removed as of version 1.0.

You should use PG::Connection, PG::Result, and PG::Error instead, respectively.

Called from /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in load_dependency`

1N3 commented 4 years ago

Just updated the installer in v8.5, so this shouldn't happen now. Let know though.