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.

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.

The 20 recipes
Checking ports
- 01Check one TCP port
- 02Check a small range of ports
- 03Check a UDP port, and why it misleads
- 04Use -w so a check never hangs
Talking to services by hand
- 05Grab a service banner (SSH, FTP)
- 06Send an HTTP request by hand
- 07Test an SMTP server by hand
- 08Talk to a TLS service (ncat --ssl, s_client)
Listeners and test servers
- 09Log who connects to a port
- 10Listen on one host, connect from another
- 11Two-way chat between two hosts
- 12Keep listening after the first connection (-k)
- 13Serve a fake HTTP response to test a client
Moving data
- 14Send a file and check it arrived intact
- 15Copy a whole folder with tar over nc
- 16Measure rough throughput between two hosts
Network troubleshooting
- 17Test a firewall rule from both sides
- 18Choose the source address and port
- 19A simple relay with mkfifo
Spotting netcat on a host
- 20Find netcat listeners and connections
Also in a bundle
- Network Toolkit Bundle · 5 packs for US$42
- The Complete Collection · 8 packs for US$55