AI Generated Cheatsheets

Netcat Cheatsheet

The netcat command is a utility for reading from and writing to network connections using TCP or UDP protocols.

Basic Syntax

nc [options] host port

Examples

Options

Option Description
-u Use UDP instead of TCP.
-l Listen for incoming connections.
-p Specify the local port number to use.
-w Set a timeout value.
-v Display verbose output.
-n Do not use DNS resolution.

Resources