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…
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)- B3% (1)
- C7% (2)
- D90% (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
Community Discussion
No community discussion yet for this question.