A system administrator suspects a Windows workstation has been compromised and is sending outbound traffic to an unknown command-and-control server. The administrator opens Command Prompt to determine which local Process ID (PID) is responsible for establishing active outbound socket connections. Which command-line utility switch combination should the administrator execute to view numerical IP addresses, active connection states, and their corresponding process IDs?
- netstat -anoCevap
- Barp -a
- Cipconfig /displaydns
- Dnslookup -type=any
Cevap
The command 'netstat -ano' accurately lists active network connections along with numerical IP addresses, port numbers, and owning Process IDs.
Executing 'netstat -ano' combines three flags: '-a' displays all active connections and listening ports, '-n' displays IP addresses and port numbers in numerical format (avoiding slow reverse-DNS lookups), and '-o' appends the owning Process ID (PID) column to the output. This gives security analysts and system administrators the exact data required to map suspicious network connections to running system processes.
Adım Adım Çözüm
Anahtar Kavram
Utilizing command-line network utilities (netstat) to inspect active connections and process identifiers.