nerdexam
CompTIA

CV0-003 · Question #97

An administrator needs to verify what ports are listening on an operating system. Which of the following tools can be used to accomplish this task?

The correct answer is B. netstat. The netstat command displays active network connections and ports currently listening on an operating system, making it the correct tool for auditing open ports.

Troubleshooting

Question

An administrator needs to verify what ports are listening on an operating system. Which of the following tools can be used to accomplish this task?

Options

  • Atelnet
  • Bnetstat
  • Cpacket sniffer
  • Difconfig

How the community answered

(47 responses)
  • A
    2% (1)
  • B
    94% (44)
  • D
    4% (2)

Why each option

The netstat command displays active network connections and ports currently listening on an operating system, making it the correct tool for auditing open ports.

Atelnet

Telnet is used to test connectivity to a specific port on a remote host but cannot enumerate all listening ports on a system.

BnetstatCorrect

Netstat (network statistics) is a built-in command-line utility that reports active TCP and UDP connections along with the ports on which the local system is listening, directly satisfying the requirement to verify which ports are open on an operating system without requiring any external traffic.

Cpacket sniffer

A packet sniffer captures network traffic passing through an interface but cannot enumerate all ports the local OS has open and listening without active traffic being present on each port.

Difconfig

Ifconfig displays network interface configuration such as IP addresses and MAC addresses, not the ports that processes have bound and are listening on.

Concept tested: Using netstat to identify listening ports

Source: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/netstat

Topics

#netstat#open ports#network diagnostics#port monitoring

Community Discussion

No community discussion yet for this question.

Full CV0-003 Practice