SK0-003 · Question #548
An administrator needs to review the open ports on a host. Which of the following commands should they use?
The correct answer is C. netstat -ano. To effectively review open ports on a host, the 'netstat -ano' command is used to display all active connections and listening ports, along with their associated process IDs.
Question
An administrator needs to review the open ports on a host. Which of the following commands should they use?
Options
- Atraceroute -d
- Bping -t
- Cnetstat -ano
- Dnbtstat -a
How the community answered
(44 responses)- A5% (2)
- B5% (2)
- C89% (39)
- D2% (1)
Why each option
To effectively review open ports on a host, the 'netstat -ano' command is used to display all active connections and listening ports, along with their associated process IDs.
`traceroute -d` is used to trace the route that packets take to a network host, not to list open ports on the local machine.
The `netstat -ano` command displays active TCP connections, listening ports, and the process ID (PID) associated with each connection, providing a comprehensive view of network activity and open ports on the local host. The '-a' flag shows all connections and listening ports, '-n' shows numerical addresses and port numbers, and '-o' shows the owning process ID.
Concept tested: Command-line network port enumeration
Source: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/netstat
Topics
Community Discussion
No community discussion yet for this question.