Operating Systems

A technician suspects malware is communicating with an unknown remote server. Which command shows active TCP connections along with the process ID that owns each one?

Show the answer

Correct answerA. netstat -o

AWhy this is right: Lists active connections and shows the process ID of the owner of each, so the process can be identified.

BWhy not this: Traces the route and measures loss per hop; it does not show local connections or process IDs.

CWhy not this: Displays the routing table, not connections with owning processes, so it cannot link traffic to a program.

DWhy not this: Queries DNS records for a name; it does not list local connections or the processes using them.

netstat -o adds the owning process ID to each connection, which can be matched to a process in Task Manager. netstat -r shows the routing table instead, so it does not identify the process behind a connection.