exam questions

Exam PT0-001 All Questions

View all questions & answers for the PT0-001 exam

Exam PT0-001 topic 1 question 32 discussion

Actual exam question from CompTIA's PT0-001
Question #: 32
Topic #: 1
[All PT0-001 Questions]

Which of the following commands starts the Metasploit database?

  • A. msfconsole
  • B. workspace
  • C. msfvenom
  • D. db_init
  • E. db_connect
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Reference:
https://www.offensive-security.com/metasploit-unleashed/msfconsole/

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
mr_robot
Highly Voted 5 years, 1 month ago
PenTest+ Practice Tests Book - SYBEX A. - Metasploit is launched by running msfconsole from the command line. The msfconsole command is located in the /usr/share/metasploitframework/ msfconsole directory.
upvoted 7 times
mr_robot
4 years, 11 months ago
This is a tricky one. If you actually just want to start the Metasploit database you can use the command msfdb init from Linux shell, and not db_init as shown from one the answers. https://www.offensive-security.com/metasploit-unleashed/using-databases/ msfconsole - start the Metasploit Framework Console db_connect - connect to an existing database db_status - check the status from current database workspace - display the currently selected workspaces from the database msfvenom - is a combination of Msfpayload and Msfencode, putting both of these tools into a single Framework instance. https://metasploit.help.rapid7.com/docs/managing-the-database#connecting-to-a-database But since you can also enable the database during each startup of msfconsole, I guess the best answer would be A. https://fedoraproject.org/wiki/Metasploit_Postgres_Setup
upvoted 4 times
JustAnotherDave
3 years, 8 months ago
Also it's msfdb init to start just the database.
upvoted 1 times
...
...
...
miabe
Most Recent 2 years, 10 months ago
Selected Answer: A
looks good to me
upvoted 1 times
...
americaman80
4 years ago
It's A. https://www.kali.org/docs/tools/starting-metasploit-framework-in-kali/
upvoted 2 times
mrfstop
3 years, 9 months ago
From your source "msfdb start" would start the database which is what the question is asking for. The closest answer provided is db_init
upvoted 1 times
JustAnotherDave
3 years, 8 months ago
msfdb init. db_init will just throw an error. So the best way to do it is to start the console with msfconsole which will attempt to start the database and throw an error that the db isn't started if it's not.
upvoted 1 times
...
...
...
someguy1393
4 years, 5 months ago
I'm pretty sure that they are looking for db_init here. Technically it should read msfdb_init but I think it's the closest option. msfconsole starts Metasploit as a whole but if you want the database you use the db_init command. https://www.offensive-security.com/metasploit-unleashed/using-databases/ https://www.kali.org/docs/tools/starting-metasploit-framework-in-kali/ https://subscription.packtpub.com/book/networking_and_servers/9781788623179/1/ch01lvl1sec19/configuring-postgresql
upvoted 2 times
TheThreatGuy
4 years, 4 months ago
Guess it will depend on if this is a typo or not. If it shows up as msfdb_init on the exam, that would be my choice. If not, I would lean toward msfconsole.
upvoted 2 times
kamaluchi
3 years, 10 months ago
yep absolutely, since launching metasploit with msfconsole will also initialise the database
upvoted 1 times
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago