Netcat, widely known as a net admin’s Swiss Army Knife, is a command line network utility that can read and write data  across TCP and UDP network connections. It can be used as a powerful port scanner, port listener, port re-director and a backdoor to anyone who gets familiar with the commands.

All the tables provided in the cheat sheets are also presented in tables below which are easy to copy and paste.

View or Download the Cheat Sheet JPG image

Right-click on the image below to save the JPG file (1,507 width x 1,082 height in pixels), or click here and open it in a new browser tab. Once the image opens in a new window, you may need to click on the image to zoom in and view the full-sized jpeg.

The Netcat cheat sheet covers:

  • Installation
  • Run Modes
  • Netcat Command Flags

View or Download the cheat sheet PDF file

You can also download the cheat sheet PDF file here. If it opens in a new browser tab, simply right click on the PDF and navigate to the download selection to save on your hard-drive or cloud storage.

What’s included in the cheat sheet

The following categories and items have been included in the cheat sheet:

Installation / Run Modes

Netcat Command Flags

nc -zv hostname.com <port_from>-<port_to> 

alternatively 

nc -zv hostname.com <port_from>