GIAC
GCIH · Question #22
GCIH Question #22: Real Exam Question with Answer & Explanation
The correct answer is A: It provides special tunneling, such as UDP to TCP, with the possibility of specifying all. Netcat supports TCP/UDP connections, file transfers, and protocol tunneling, but the -z flag enables zero-I/O port scanning mode rather than stdin/stdout redirection.
Question
Which of the following statements are true about netcat? Each correct answer represents a complete solution. Choose all that apply.
Options
- AIt provides special tunneling, such as UDP to TCP, with the possibility of specifying all
- BIt can be used as a file transfer solution.
- CIt provides outbound and inbound connections for TCP and UDP ports.
- DThe nc -z command can be used to redirect stdin/stdout from a program.
Explanation
Netcat supports TCP/UDP connections, file transfers, and protocol tunneling, but the -z flag enables zero-I/O port scanning mode rather than stdin/stdout redirection.
Common mistakes.
- D. The nc -z flag activates zero-I/O mode for port scanning by connecting without sending data, not for redirecting stdin/stdout from a program - the -e flag is used to bind a program's stdin/stdout to the network socket.
Concept tested. Netcat capabilities and correct flag functions
Reference. https://nmap.org/ncat/guide/
Community Discussion
No community discussion yet for this question.