Setup Metasploit Database

Try reconfigure Metasploit

dpkg-reconfigure metasploit-framework

Start postgresql

systemctl start postgresql.service

Initialize database

msfdb init

Run metasploit

msfconsole

Connect to database

db_connect -y /usr/share/metasploit-framework/config/database.yml

Rebuild cache

db_rebuild_cache

Run postgresql at startup

systemctl enable postgresql.service
%d bloggers like this: