Send a file (sender)
Serve a file on port 4444 and wait until the receiver connects
nc -lvp 4444 < file.tar.gz
- tool
- netcat10 commands
More netcat commands
-
nc 192.168.1.1 4444 > file.tar.gzConnect to the netcat sender and save the file
-
nc -u 192.168.1.1 5005Connect over UDP instead of TCP
-
echo -e "GET / HTTP/1.0 " | nc example.com 80Send a raw HTTP GET request with netcat
-
nc -lvp 4444Start a netcat listener on port 4444
-
nc -v 192.168.1.1 22Connect to a port and read the banner that the service sends