Database setup and configuration

It is fairly simple to set up the new version of Metasploit, since Metasploit does not run as a service anymore:

  1. Start the PostgreSQL by running systemctl start postgresql in the Terminal.
  1. Initialize the Metasploit database by running msfinit; unless it is the first time it has been run, the initialization will create the msf database and create a role and add msf_test and msf databases in the configuration file, /usr/share/metasploit-framework/config/database.yml; otherwise, by default, the msf database will be created in the prebuild of Kali Linux.
  2. Now you are ready to access msfconsole.
  3. Once inside the console, you can verify the status of the database by typing db_status in the console and you should ...

Get Mastering Kali Linux for Advanced Penetration Testing - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.