- by x32x01 ||
Installing the Metasploit Framework on Linux
After the installation completes, open a terminal window and type the following to start msfconsole:
The prompt asks you if you want to use and set up a new database. Type y or yes to run the initial configuration script to create the initial database.
If all goes well, the console starts and displays the following:
To check to see if the database was set up, run the following command:
If the Metasploit Framework successfully connected to the database, the following status displays:
Managing The Database
If you did not opt to create a database when msfconsole loaded for the first time, you can use the msfdb script to configure postgresql to run as your local user and store the database in ~/.msf4/db/.
To enable and start the database, run the following command:
After the database starts, you can use any of the following commands to manage the database:
- Open the terminal.
- Enter the following command to add the build repository and install the Metasploit Framework package:
After the installation completes, open a terminal window and type the following to start msfconsole:
The prompt asks you if you want to use and set up a new database. Type y or yes to run the initial configuration script to create the initial database.
To check to see if the database was set up, run the following command:
If the Metasploit Framework successfully connected to the database, the following status displays:
Managing The Database
If you did not opt to create a database when msfconsole loaded for the first time, you can use the msfdb script to configure postgresql to run as your local user and store the database in ~/.msf4/db/.
To enable and start the database, run the following command:
After the database starts, you can use any of the following commands to manage the database:
- msfdb reinit - Deletes and reinitializes the database.
- msfdb delete - Deletes the database.
- msfdb start - Starts the database.
- msfdb stop - Stops the database.
- msfdb status - Shows the database status.