Common commands for starting the Metasploit database and console during pentests.
Metasploit relies on a PostgreSQL database to store hosts, services and loot. On a fresh Kali install, the database usually needs to be initialised before msfconsole will connect to it.
sudo systemctl start postgresql # Start the database servicesudo msfdb init # Initialise the Metasploit databasemsfconsole -q # Launch msfconsole quietly (no banner)db_status # Confirm msfconsole is connected to the database



