CompTIA
PT0-001 · Question #30
PT0-001 Question #30: Real Exam Question with Answer & Explanation
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
Explanation
The msfconsole command launches the Metasploit Framework console and establishes the connection to the PostgreSQL database used by the framework.
Common mistakes.
- B. 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.
- C. msfvenom is a standalone command-line payload generation and encoding tool that has no interaction with the Metasploit database.
- D. db_init is not a valid command in modern Metasploit versions and does not function as an executable or recognized console command.
- E. 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
Reference. https://docs.metasploit.com/docs/using-metasploit/getting-started/nightly-installers.html
Community Discussion
No community discussion yet for this question.