PT0-001 · Question #30
Which of the following commands starts the Metasploit database?
The correct answer is A. msfconsole. The msfconsole command launches the Metasploit Framework console and establishes the connection to the PostgreSQL database used by the framework.
Question
Which of the following commands starts the Metasploit database?
Options
- Amsfconsole
- Bworkspace
- Cmsfvenom
- Ddb_init
- Edb_connect
How the community answered
(32 responses)- A91% (29)
- D3% (1)
- E6% (2)
Why each option
The msfconsole command launches the Metasploit Framework console and establishes the connection to the PostgreSQL database used by the framework.
Running msfconsole starts the main Metasploit Framework interface and automatically initializes the connection to the configured PostgreSQL database, making it the primary command that brings the Metasploit database session online for operational use. The other listed options either manage existing sessions within an active console, generate payloads, or are not valid current Metasploit commands.
The workspace command is an msfconsole subcommand used to switch between or manage named workspaces within an already active database session, not to start the database.
msfvenom is a standalone command-line payload generation and encoding tool that has no interaction with the Metasploit database.
db_init is not a valid command in modern Metasploit versions and does not function as an executable or recognized console command.
db_connect is an msfconsole subcommand used to attach to an already running external database instance, not to start or initialize the Metasploit database itself.
Concept tested: Metasploit Framework console and database initialization
Source: https://docs.metasploit.com/docs/using-metasploit/getting-started/nightly-installers.html
Topics
Community Discussion
No community discussion yet for this question.