netcat is a very useful small program to communicate between two machines. If you just want to simply upload a file from one machine to another one, without setting up ftp, ssh server, then you can use netcat (it has many other functions).
commands:
1) listen on a port:
nc -l -p 2222 > log.txt
2) send file:
cat /etc/passwd nc 192.168.0.50 2222
No comments:
Post a Comment