nc [options] host port
nc -u host port
nc -z -v 192.168.1.2 21-80
echo "EXIT" | nc 192.168.1.1 22
|
Receiving
|
nc -l 5555 > file_name
|
|
Sending
|
nc receiving.host.com 5555 < file_name
|
|
Receiving
|
nc -l 5555 | tar xzvf -
|
|
Sending
|
tar czvf - /path/to/dir | nc receiving.host.com 5555
|
|
Server
|
nc -l 5555
|
|
Client
|
nc first.host.com 5555
|
printf "GET /nc.1 HTTP/1.1\r\nHost: man.openbsd.org\r\n\r\n" | nc man.openbsd.org 80
man nc
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.