How would the attacker use netcat to encrypt the information before transmitting onto the wire?

An attacker runs netcat tool to transfer a secret file between two hosts.

Machine A: netcat -l -p 1234 < secretfile
Machine B: netcat 192.168.3.4 > 1234

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?

An attacker runs netcat tool to transfer a secret file between two hosts.

Machine A: netcat -l -p 1234 < secretfile
Machine B: netcat 192.168.3.4 > 1234

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?

A.
Use cryptcat instead of netcat

B.
Machine A: netcat -l -p -s password 1234 < testfile
Machine B: netcat <machine A IP> 1234

C.
Machine A: netcat -l -e magickey -p 1234 < testfile
Machine B: netcat <machine A IP> 1234

D.
Machine A: netcat -l -p 1234 < testfile -pw password
Machine B: netcat <machine A IP> 1234 -pw password

Explanation:
Netcat cannot encrypt the file transfer itself but would need to use a third party application to encrypt/decrypt like openssl. Cryptcat is the standard netcat enhanced with twofish encryption.



Leave a Reply 0

Your email address will not be published. Required fields are marked *