Closed Fulgurance closed 3 years ago
pentoo
installation packaging is not maintained by the Metasploit Framework team. Due to this support for configuration issues should be directed at the maintainers of the packaging system you are using.
Database configuration varies by distro, however metasploit framework places database service configuration in ~/.msf4/database.yml. You can find an example configuration file here.
If postgresql services are available and the credentials are known you can also initiate the connection in the framework CLI . Here are the help
results for this command:
msf6 > db_connect -h
USAGE:
* Postgres Data Service:
db_connect <user:[pass]>@<host:[port]>/<database>
Examples:
db_connect user@metasploit3
db_connect user:pass@192.168.0.2/metasploit3
db_connect user:pass@192.168.0.2:1500/metasploit3
db_connect -y [path/to/database.yml]
* HTTP Data Service:
db_connect [options] <http|https>://<host:[port]>
Examples:
db_connect http://localhost:8080
db_connect http://my-super-msf-data.service.com
db_connect -c ~/cert.pem -t 6a7a74c1a5003802c955ead1bbddd4ab1b05a7f2940b4732d34bfc555bc6e1c5d7611a497b29e8f0 https://localhost:8080
NOTE: You must be connected to a Postgres data service in order to successfully connect to a HTTP data service.
Persisting Connections:
db_connect --name <name to save connection as> [options] <address>
Examples:
Saving: db_connect --name LA-server http://123.123.123.45:1234
Connecting: db_connect LA-server
OPTIONS:
-l,--list-services List the available data services that have been previously saved.
-y,--yaml Connect to the data service specified in the provided database.yml file.
-n,--name Name used to store the connection. Providing an existing name will overwrite the settings for that connection.
-c,--cert Certificate file matching the remote data server's certificate. Needed when using self-signed SSL cert.
-t,--token The API token used to authenticate to the remote data service.
--skip-verify Skip validating authenticity of server's certificate (NOT RECOMMENDED).
Hi!
This issue has been left open with no activity for a while now.
We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 30 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.
Hi again!
It’s been 60 days since anything happened on this issue, so we are going to close it. Please keep in mind that I’m only a robot, so if I’ve closed this issue in error please feel free to reopen this issue or create a new one if you need anything else.
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.
Steps to reproduce
How'd you do it?
Result
Sorry I'm a beginner with metasploit, but I'm actually learning. I'm a Gentoo Linux user, and I installed metasploit yet, I configured postgreql and others files. But impossible to connect to the database. And I don't understand what is the problem.
I give you the information about my metasploit version and my system:
Emerge info:
Metasploit informations: