Port scanning
Scan ports 20-80 on a host (zero I/O mode)
nc -zv 192.168.1.1 20-80
- tool
- netcat10 commands
More netcat commands
-
nc -lvp 4444 < file.tar.gzSend file to a remote listener
-
nc 192.168.1.1 4444 > file.tar.gzReceive a file from a netcat sender
-
nc -u 192.168.1.1 5005Connect using UDP instead of TCP
-
echo -e "GET / HTTP/1.0 " | nc example.com 80Send a raw HTTP GET request with netcat
-
nc -lvp 4444Wait for an incoming reverse shell connection