nerdexam
CompTIA

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.

Attacks and exploits

Question

Which of the following commands starts the Metasploit database?

Options

  • Amsfconsole
  • Bworkspace
  • Cmsfvenom
  • Ddb_init
  • Edb_connect

How the community answered

(32 responses)
  • A
    91% (29)
  • D
    3% (1)
  • E
    6% (2)

Why each option

The msfconsole command launches the Metasploit Framework console and establishes the connection to the PostgreSQL database used by the framework.

AmsfconsoleCorrect

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.

Bworkspace

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.

Cmsfvenom

msfvenom is a standalone command-line payload generation and encoding tool that has no interaction with the Metasploit database.

Ddb_init

db_init is not a valid command in modern Metasploit versions and does not function as an executable or recognized console command.

Edb_connect

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

#Metasploit#msfconsole#exploitation framework#database initialization

Community Discussion

No community discussion yet for this question.

Full PT0-001 Practice