Packs / netcat Recipes

Pack 06

netcat Recipes

20 practical commands for testing ports, services, listeners and transfers with nc

For blue-team learners, homelabbers and junior admins who want to know what's really happening on a port. Twenty recipes cover checking TCP and UDP ports, talking HTTP, SMTP and TLS by hand, quick listeners and test servers, sending and verifying files, testing firewall rules and spotting stray netcat listeners on a host. Each recipe was run between Kali, Ubuntu Server and Metasploitable 2 on an isolated lab network and shows the real output it produced.

US$12local taxes calculated at checkout

Buy on Gumroad

Checkout and download are handled by Gumroad.

Cover of netcat Recipes

What you get

  • netcat Recipes PDF: 20 recipes
  • One-page OpenBSD netcat cheat sheet PDF
  • Edition 1

What it covers

  • Check ports and grab banners
  • Talk HTTP, SMTP and TLS by hand
  • Listen, transfer and measure
  • Test firewalls and spot stray listeners

Tested on

Tool
OpenBSD netcat 1.238 and 1.234
System
Kali GNU/Linux Rolling and Ubuntu 26.04.1 LTS
Lab runs
28 Nov 2026, on an isolated lab network

Only connect to or listen on systems you own or have written permission to test.

A sample page from netcat Recipes
A page from the pack.

The 20 recipes

Checking ports

  1. 01Check one TCP port
  2. 02Check a small range of ports
  3. 03Check a UDP port, and why it misleads
  4. 04Use -w so a check never hangs

Talking to services by hand

  1. 05Grab a service banner (SSH, FTP)
  2. 06Send an HTTP request by hand
  3. 07Test an SMTP server by hand
  4. 08Talk to a TLS service (ncat --ssl, s_client)

Listeners and test servers

  1. 09Log who connects to a port
  2. 10Listen on one host, connect from another
  3. 11Two-way chat between two hosts
  4. 12Keep listening after the first connection (-k)
  5. 13Serve a fake HTTP response to test a client

Moving data

  1. 14Send a file and check it arrived intact
  2. 15Copy a whole folder with tar over nc
  3. 16Measure rough throughput between two hosts

Network troubleshooting

  1. 17Test a firewall rule from both sides
  2. 18Choose the source address and port
  3. 19A simple relay with mkfifo

Spotting netcat on a host

  1. 20Find netcat listeners and connections

Also in a bundle