nerdexam
GIAC

GSEC · Question #270

Which Linux command could a systems administrator use to determine if an attacker had opened up a new listening port on her system?

The correct answer is D. netstat. The netstat command displays active network connections and listening ports, making it the correct tool for detecting unauthorized open ports on a Linux system.

Linux and Cryptography

Question

Which Linux command could a systems administrator use to determine if an attacker had opened up a new listening port on her system?

Options

  • Anfsstat
  • Bnetreport
  • Cps
  • Dnetstat
  • Evrnstat

How the community answered

(45 responses)
  • A
    2% (1)
  • B
    7% (3)
  • C
    11% (5)
  • D
    80% (36)

Why each option

The netstat command displays active network connections and listening ports, making it the correct tool for detecting unauthorized open ports on a Linux system.

Anfsstat

nfsstat reports statistics specifically about the NFS (Network File System) protocol and does not display general listening ports or TCP/UDP socket state.

Bnetreport

netreport is not a standard Linux networking utility and is not used to enumerate listening ports or active connections.

Cps

ps displays running processes and their attributes but does not show network socket state or which ports are open and listening.

DnetstatCorrect

netstat (network statistics) lists all current TCP/UDP connections, listening sockets, and the associated process IDs, allowing an administrator to compare the current port state against a known-good baseline. Running 'netstat -tulnp' shows all listening ports with the owning process, which directly reveals any attacker-introduced listeners. This makes it the standard tool for network-level host auditing.

Evrnstat

vrnstat is not a recognized Linux command and does not exist as a standard networking diagnostic tool.

Concept tested: Linux network port enumeration using netstat

Source: https://linux.die.net/man/8/netstat

Topics

#Linux#netstat#listening ports#network reconnaissance detection

Community Discussion

No community discussion yet for this question.

Full GSEC Practice