Metasploit: Not connecting to database error fix 2019

Опубликовано: 01 Октябрь 2024
на канале: I.T Security Labs
40,753
311

How to fix Metasploit and armitage failed to connect to the database error.

Commands used in this video:
grep "port =" /etc/postgresql/11/main/postgresql.conf
port = 5432 # (change requires restart)

If you dont see 5432 as the port, just change it. Mine was set to 5433, if yours is 5433 you can just run this sed line to update:

sed -i 's/\(port = \)5433/\15432/' /etc/postgresql/11/main/postgresql.conf
After that, restart the postgresql service and re-initialize the metasploit db
service postgresql restart
msfdb reinit Connect and Direct Message me on Linkedin:   / howard-mukanda-24503144