Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to point to a different Postgresql instance? #8

Open
clive7391 opened this issue Aug 26, 2020 · 2 comments
Open

Possible to point to a different Postgresql instance? #8

clive7391 opened this issue Aug 26, 2020 · 2 comments

Comments

@clive7391
Copy link

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

@mfadzilramli
Copy link

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)

@clive7391
Copy link
Author

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")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants