95 words
1 minutes
How to use Netcat

How to use Netcat#

Netcat is a versatile networking tool used for reading from and writing to network connections. This guide provides basic usage of Netcat.

Basic Usage#

To start a Netcat listener on a specific port, use the following command:

nc -l 1234

To connect to a Netcat listener, use:

nc 127.0.0.1 1234

File Transfer#

To transfer a file using Netcat, use the following commands:

On the receiving end:

nc -l 1234 > received_file

On the sending end:

nc 127.0.0.1 1234 < file_to_send

Conclusion#

Netcat is a powerful tool for network communication and file transfer. By using the basic commands provided, you can perform various networking tasks efficiently.


How to use Netcat
https://zxce3.net/posts/how-to-use-netcat/
Author
Memet Zx
Published at
2022-11-17