nerdexam
GIAC

GCIH · Question #22

Which of the following statements are true about netcat? Each correct answer represents a complete solution. Choose all that apply.

The correct answer is A. It provides special tunneling, such as UDP to TCP, with the possibility of specifying all B. It can be used as a file transfer solution. C. It provides outbound and inbound connections for TCP and UDP ports. 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.

Reconnaissance, Scanning, and Enumeration

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.

How the community answered

(51 responses)
  • A
    94% (48)
  • D
    6% (3)

Why each option

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.

AIt provides special tunneling, such as UDP to TCP, with the possibility of specifying allCorrect

Netcat supports special tunneling including UDP-to-TCP conversion, allowing traffic to be relayed across different protocol layers with configurable addresses and ports. This tunneling capability is invoked by combining UDP mode (-u) with piped netcat instances to bridge protocol boundaries.

BIt can be used as a file transfer solution.Correct

Netcat can transfer files by redirecting file content through a TCP or UDP connection using shell input/output operators. The sender pipes a file into netcat and the receiver redirects netcat output to a file, making it a lightweight file transfer mechanism.

CIt provides outbound and inbound connections for TCP and UDP ports.Correct

Netcat creates both outbound client connections and inbound listening servers using the -l flag, supporting both TCP and UDP transport. This bidirectional connectivity over any port is the foundation of netcat's use as a network utility.

DThe nc -z command can be used to redirect stdin/stdout from a program.

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

Source: https://nmap.org/ncat/guide/

Topics

#netcat#TCP/UDP connections#file transfer#tunneling

Community Discussion

No community discussion yet for this question.

Full GCIH Practice