nerdexam
GIAC

GCIH · Question #122

Which of the following netcat parameters makes netcat a listener that automatically restarts itself when a connection is dropped?

The correct answer is D. -L. In the Windows version of Netcat (nc.exe), -L (uppercase) is the 'Listen harder' flag - it puts Netcat into persistent listener mode, meaning it automatically restarts and waits for a new connection after the current one is terminated. The lowercase -l simply opens a one-time…

Vulnerability Exploitation & Privilege Escalation

Question

Which of the following netcat parameters makes netcat a listener that automatically restarts itself when a connection is dropped?

Options

  • A-u
  • B-l
  • C-p
  • D-L

How the community answered

(29 responses)
  • B
    3% (1)
  • C
    7% (2)
  • D
    90% (26)

Explanation

In the Windows version of Netcat (nc.exe), -L (uppercase) is the 'Listen harder' flag - it puts Netcat into persistent listener mode, meaning it automatically restarts and waits for a new connection after the current one is terminated. The lowercase -l simply opens a one-time listener that exits after the first connection closes. -p specifies the port number, and -u switches Netcat to UDP mode instead of TCP.

Topics

#netcat#listener mode#persistence#backdoor

Community Discussion

No community discussion yet for this question.

Full GCIH Practice