exam questions

Exam CS0-001 All Questions

View all questions & answers for the CS0-001 exam

Exam CS0-001 topic 1 question 36 discussion

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

An analyst wants to use a command line tool to identify open ports and running services on a host along with the application that is associated with those services and port. Which of the following should the analyst use?

  • A. Wireshark
  • B. Qualys
  • C. netstat
  • D. nmap
  • E. ping
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
danierug
Highly Voted 5 years, 9 months ago
The correct answer is NMAP
upvoted 10 times
Blind_Hatred
4 years, 10 months ago
Could you shed some light on this? Why are you so certain?
upvoted 1 times
...
...
Jeend
Most Recent 2 years, 3 months ago
Nmap is used to discover hosts and services on a computer network by sending packets
upvoted 1 times
...
boydmwanza
2 years, 8 months ago
I chose Nmap and got it wrong with a Prof. Netstat is right
upvoted 1 times
...
Hobbes26
3 years, 11 months ago
netstat -tulnp -> last column is PID/Program name nmap -sV -> third column is SERVICE, fourth column is VERSION VERSION will describe the applications associated with the service. Answer: D. nmap
upvoted 1 times
...
somsom
4 years, 2 months ago
NMAP is the answer is used to scan devices running on the system, also checking services and ports which they are being run from.
upvoted 1 times
...
Snickers
4 years, 4 months ago
netstat -b "Displays the executable involved in creating each connection or listening port. In some cases well-known executables host multiple independent components, and in these cases the sequence of components involved in creating the connection or listening port is displayed. In this case the executable name is in [] at the bottom, on top is the component it called, and so forth until TCP/IP was reached." I don't believe NMAP can enumerate the application that created the connection. And there is no reason to assume this is being done remotely.
upvoted 1 times
...
j172
4 years, 5 months ago
Nestat- Keyphrase; 'Running Services' nmap wont be able to tell what services are currently running on the host
upvoted 1 times
...
teerawat
4 years, 5 months ago
Which CLI can be used to achieve the purpose in the question?
upvoted 1 times
...
tman30
4 years, 8 months ago
Nmap sends specially crafted packets to the target host(s) and then analyzes the responses to determine the open ports and services running on those hosts. In addition, nmap can determine the versions of the applications being used on those ports and services. Nmap is a command-line tool for use on Linux, Windows, and macOS systems. The netstat (network statistics) tool is a command-line utility that displays network connections for both incoming and outgoing TCP packets, routing tables, and a number of network interface and network protocol statistics, but it cannot be used to identify open ports and services on a host with their version numbers.
upvoted 1 times
...
MagicianRecon
4 years, 9 months ago
NMAP Version Detection can be used to find applications https://nmap.org/book/solution-find-open-port.html NMAP seems to be the correct answer. Netstat highlights the PID and not the applications.
upvoted 1 times
...
iphy
4 years, 9 months ago
"Nmap, short for Network Mapper, is a free, open-source tool for vulnerability scanning and network discovery. Network administrators use Nmap to identify what devices are running on their systems, discovering hosts that are available and the services they offer, finding open ports and detecting security risks" The answer is NMAP...
upvoted 2 times
JeffPunzalan
4 years, 9 months ago
but how about the applications associated with those services? NMAP can not detect applications
upvoted 1 times
...
...
kry00
4 years, 9 months ago
Netstat is the answer https://www.getfilecloud.com/blog/2016/05/how-to-find-what-application-is-listening-on-a-tcpip-port-in-windows-using-netstat/#.XxRBb-wpC9c
upvoted 1 times
...
Blind_Hatred
4 years, 10 months ago
My vote is on C, netstat. We're talking about "applications" assigned to those ports and services. There is no way of doing that with NMAP.
upvoted 2 times
...
cyberchick
4 years, 10 months ago
https://techtalk.gfi.com/scanning-open-ports-in-windows-part-3-nmap/
upvoted 1 times
...
TheThreatGuy
4 years, 10 months ago
This is another one of those questions where I feel more info is needed. Do we have direct access to the host? Or is this to be done remotely... both NMAP and netstat fit the description here....
upvoted 1 times
TheThreatGuy
4 years, 10 months ago
With this in mind, since they are looking for the "BEST" answer, NMAP can be used in both cases.
upvoted 1 times
...
Blind_Hatred
4 years, 10 months ago
But can you find specific information about the applications/services linked to each port with NMAP? You can find SOME information with NMAP, surely, but not as much detail as NETSTAT. I'm a bit confused here. "Open ports" makes me believe it should be NMAP, but then throw in "Application" in the mix, and I feel like that's more closely related to NETSTAT... .
upvoted 1 times
...
...
[Removed]
5 years, 3 months ago
COMMAND LINE tool.... netstat
upvoted 4 times
KC
5 years, 3 months ago
NMAP can also be run on a Linux command line. But, even then, it won’t show the running applications. So you’re still right, Netstat is correct.
upvoted 1 times
[Removed]
5 years, 3 months ago
You're right. NMAP is ran via command line. I realized that the next day and forgot to correct myself.
upvoted 1 times
...
...
...
KC
5 years, 3 months ago
C is correct. Netstat would be the more useful command for an analyst with full access to the host system. Netstat provides more detailed information about open services and ports. Nmap would be for discovering remote systems and ports, but it may not find as much information as the host system would provide through netstat.
upvoted 4 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