- Published on
Transfer files using nc
Sometimes you might need to send files across a network, netcat
or nc
can quickly be used to accomplish that task without any additional setup.
On the receiving end type:
nc -W 1 -lvnp 4000 < /path/to/received_file
On the sending end:
# set host.name to your targets ip or hostnamenc host.name 4000 < /path/to/file_to_be_send
Once both programs exist out, you should be able to find your file at the location you specified at /path/to/received_file