nerdexam
EC-Council

312-50V13 · Question #136

An attacker runs netcat tool to transfer a secret file between two hosts. He is worried about information being sniffed on the network. How would the attacker use netcat to encrypt the information…

The correct answer is D. Use cryptcat instead of netcat. To securely transfer a file using Netcat with encryption, a specialized version like Cryptcat should be used, as standard Netcat lacks native encryption capabilities.

Submitted by devops_kid· Mar 6, 2026Sniffing

Question

An attacker runs netcat tool to transfer a secret file between two hosts. He is worried about information being sniffed on the network. How would the attacker use netcat to encrypt the information before transmitting onto the wire?

Options

  • AMachine A: netcat -l -p -s password 1234 < testfileMachine B: netcat <machine A IP> 1234
  • BMachine A: netcat -l -e magickey -p 1234 < testfileMachine B: netcat <machine A IP> 1234
  • CMachine A: netcat -l -p 1234 < testfile -pw passwordMachine B: netcat <machine A IP> 1234 -pw
  • DUse cryptcat instead of netcat

How the community answered

(47 responses)
  • A
    2% (1)
  • B
    2% (1)
  • C
    2% (1)
  • D
    94% (44)

Why each option

To securely transfer a file using Netcat with encryption, a specialized version like Cryptcat should be used, as standard Netcat lacks native encryption capabilities.

AMachine A: netcat -l -p -s password 1234 < testfileMachine B: netcat <machine A IP> 1234

The `-s password` option for Netcat is not a standard or valid flag for specifying encryption or a password for encryption; it is typically used for source IP binding.

BMachine A: netcat -l -e magickey -p 1234 < testfileMachine B: netcat <machine A IP> 1234

The `-e` flag in Netcat is used for executing a program after a connection is established, not for enabling encryption with an arbitrary 'magickey' or any other built-in mechanism.

CMachine A: netcat -l -p 1234 < testfile -pw passwordMachine B: netcat <machine A IP> 1234 -pw

There is no standard `-pw` or `--pw` option in Netcat for directly applying password-based encryption to the data stream; this functionality is not natively supported by Netcat.

DUse cryptcat instead of netcatCorrect

Standard Netcat does not have built-in encryption features; to encrypt data transferred via a Netcat-like mechanism, a specialized tool like Cryptcat, which integrates encryption (e.g., Twofish), or using Netcat in conjunction with an external encryption tool (like OpenSSL), is required.

Concept tested: Network utility encryption (Netcat alternatives)

Topics

#netcat#cryptcat#data encryption#sniffing evasion

Community Discussion

No community discussion yet for this question.

Full 312-50V13 Practice