Certified Network Defender (CND) — Question 185
Which of the following commands is used for port scanning?
Answer options
- A. nc -t
- B. nc -z
- C. nc -v
- D. nc -d
Correct answer: B
Explanation
The command 'nc -z' is specifically designed for port scanning, allowing users to check if ports are open. In contrast, 'nc -t' is used for TCP connections, 'nc -v' enables verbose mode for output details, and 'nc -d' runs in the background, none of which are intended for scanning ports.