Certified Network Defender (CND) — Question 185

Which of the following commands is used for port scanning?

Answer options

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.