ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 313 - PT0-002 discussion

Report
Export

A penetration tester executes the following Nmap command and obtains the following output:

Which of the following commands would best help the penetration tester discover an exploitable service?

A.
nmap -v -p 25 -- soript smtp-enum-users remotehost
Answers
A.
nmap -v -p 25 -- soript smtp-enum-users remotehost
B.
nmap -v -- script=mysql-info.nse remotehost
Answers
B.
nmap -v -- script=mysql-info.nse remotehost
C.
nmap --ocript=omb-brute.noe remotehoat
Answers
C.
nmap --ocript=omb-brute.noe remotehoat
D.
nmap -p 3306 -- script 'http*vuln*' remotehost
Answers
D.
nmap -p 3306 -- script 'http*vuln*' remotehost
Suggested answer: B

Explanation:

The Nmap command in the question scans all ports on the remote host and identifies the services and versions running on them. The output shows that port 3306 is open and running MariaDB, which is a fork of MySQL. Therefore, the best command to discover an exploitable service would be to use the mysql-info.nse script, which gathers information about the MySQL server, such as the version, user accounts, databases, and configuration variables. The other commands are either misspelled, irrelevant, or too broad for the task.Reference:Best PenTest+ certification study resources and training materials,CompTIA PenTest+ PT0-002 Cert Guide,101 Labs --- CompTIA PenTest+: Hands-on Labs for the PT0-002 Exam

asked 02/10/2024
Earl Frederick
32 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first