SANS SEC504: Hacker Tools, Techniques and Incident Handling — Question 4
Which of the following commands can be used for port scanning?
Answer options
- A. nc -t
- B. nc -z
- C. nc -w
- D. nc -g
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.