FS#63496 - [metasploit] msfdb does not work
Attached to Project:
Community Packages
Opened by Daniel Zhou (dancju) - Sunday, 18 August 2019, 14:55 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:00 GMT
Opened by Daniel Zhou (dancju) - Sunday, 18 August 2019, 14:55 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:00 GMT
|
Details
Description:
`msfdb` does not work. Possible reasons are: 1. non-root users are not permitted to create `/run/postgresql/.s.PGSQL.5432`. 1. `documentation/` direction is purged which is required to launch web ui. Steps to reproduce: ``` cd /opt/metasploit ./msfdb init ``` |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:00 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/metasploit/issues/1
Saturday, 25 November 2023, 20:00 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/metasploit/issues/1
➜ cd /opt/metasploit
➜ ./msfdb init
<internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- rex/socket (LoadError)
from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from ./msfdb:10:in `<main>'
Inside msfconsole:
➜ sudo systemctl start postgresql.service
➜ msfconsole
msf6 > msfdb init
[*] exec: msfdb init
Overriding user environment variable 'OPENSSL_CONF' to enable legacy functions.
[?] Would you like to init the webservice? (Not Required) [no]:
Clearing http web data service credentials in msfconsole
Running the 'init' command for the database:
Existing database found, attempting to start it
Starting database at /home/noraj/.msf4/db...failed
➜ msfconsole --version
Framework Version: 6.3.12-dev