O'Reilly logo

Mastering Kali Linux for Advanced Penetration Testing - Second Edition by Vijay Kumar Velu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

  • Start the PostgreSQL by running systemctl start postgresql in the Terminal.
  • Initialize the Metasploit database by running msfinit; unless it is a first time, the initialization will create the database msf 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.
  • Now you are ready to access msfconsole.
  • Once inside the console, you can verify the status of the database by typing db_status in the console and you should be able to see the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required