netcat
Installation
SKILL.md
Contains Shell Commands
This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.
Netcat Network Utility
Scan ports, set up listeners, and transfer files using netcat (nc).
Variant note: netcat has multiple implementations (OpenBSD, ncat, GNU, traditional).
Flag syntax differs between variants. The commands below use the most portable form.
Detect your variant: nc -h 2>&1 | head -3
Tool Status
- Tool installed: !
command -v nc > /dev/null 2>&1 && echo "YES -- $(nc -h 2>&1 | head -1 || true)" || echo "NO -- Install: apt install netcat-openbsd (Debian/Ubuntu) | brew install netcat (macOS)" - Wrapper scripts available: !
test -f scripts/netcat/scan-ports.sh && echo "YES -- use wrapper scripts for structured JSON output" || echo "NO -- using standalone mode with direct commands"
Mode: Wrapper Scripts Available
If wrapper scripts are available (shown as YES above), prefer these commands. They auto-detect nc variant and provide structured JSON output.