nerdexam
GAQM

CPEH-001 · Question #313

What is the outcome of the comm"nc -l -p 2222 | nc 10.1.0.43 1234"?

The correct answer is B. Netcat will listen on port 2222 and output anything received to a remote connection on 10.1.0.43. See the full explanation below for the reasoning.

Question

What is the outcome of the comm"nc -l -p 2222 | nc 10.1.0.43 1234"?

Options

  • ANetcat will listen on the 10.1.0.43 interface for 1234 seconds on port 2222.
  • BNetcat will listen on port 2222 and output anything received to a remote connection on 10.1.0.43
  • CNetcat will listen for a connection from 10.1.0.43 on port 1234 and output anything received to
  • DNetcat will listen on port 2222 and then output anything received to local interface 10.1.0.43.

How the community answered

(53 responses)
  • A
    11% (6)
  • B
    83% (44)
  • C
    4% (2)
  • D
    2% (1)

Community Discussion

No community discussion yet for this question.

Full CPEH-001 Practice