netcat commands
10 commands, each with a one-line explanation. Click a command to copy it, or its title for details.
Commands 10 shown
-
nc -lvp 4444Start a netcat listener on port 4444
-
nc 192.168.1.1 80Open a TCP connection to host on port 80
-
nc -zv 192.168.1.1 20-80Scan ports 20-80 on a host (zero I/O mode)
-
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
-
nc -v 192.168.1.1 22Connect to port and read service banner
-
nc -w 3 192.168.1.1 80Set connection timeout to 3 seconds
no commands match — try a different search