SANS SEC504: Hacker Tools, Techniques and Incident Handling — Question 4

Which of the following commands can be used for port scanning?

Answer options

Correct answer: B

Explanation

The correct answer is B, as the 'nc -z' command is specifically designed for scanning ports without sending any data. The other options, 'nc -t', 'nc -w', and 'nc -g', do not perform port scanning functions and have different purposes in the netcat utility.