Summary
Netcat File Transfer
Command
Listener nc -l -p 12345 > output.txtClient nc 192.168.0.1 12345 -w 5 < input.txt
Description
Listener
-l listen
-p listen on port 12345
> output.txt transfer any incoming data to file
Client
192.168.0.1 remote listener to connect to
12345 remote port on listener
-w timeout after 5 seconds when stdin is idle
< pipe input.txt to nc