msploitego icon indicating copy to clipboard operation
msploitego copied to clipboard

Possible to point to a different Postgresql instance?

Open clive7391 opened this issue 4 years ago • 2 comments

Outstanding looking tool!

I use Metasploit Pro locally and on remote dropboxes via VPN.

Is it possible to connect to DB on a different port and remote IP?

My local MSP database.yml:

adapter: "postgresql" database: "msf3" username: "msf3" password: "XXXXXXXXXX" port: 7337 host: "localhost" pool: 256 timeout: 5

clive7391 avatar Aug 26 '20 12:08 clive7391

edit src/msploitego/transforms/common/postgresdb.pyc & add "port=xxxx"

conn = psycopg2.connect(dbname=self._db, user=self._user, host="localhost", password=self._password, port=5433)

mfadzilramli avatar Aug 29 '20 03:08 mfadzilramli

Thank you.

Error I still receive. Running transform Enum Workspaces[Postgres] on 1 entities (from entity "msf3") Error running local transform: Local transform "/usr/bin/python" returned with exit code 1 (from entity "msf3") Transform Enum Workspaces[Postgres] returned with an error: Error running local transform: Local transform "/usr/bin/python" returned with exit code 1 (from entity "msf3")

clive7391 avatar Sep 08 '20 12:09 clive7391