netcat (nc) Command Cheat Sheet
netcat, or nc, is a command-line utility for managing network connections, transferring files, and testing ports.
Establish TCP Connection
nc example.com 80
Start a TCP Server
nc -l 1234
Send File to Remote Host
nc host 1234 < file.txt
Receive File
nc -l 1234 > file.txt
Port Scanning
nc -zv 192.168.1.1 20-100