Some versions of netcat support an -e
flag that hooks STDIN and STDOUT of an executable to the established network connection. So something like the following will establish a reverse shell:
IMPORTANT
The
-e
flag (and similar-c
flag) is considered a security risk (for obvious reasons!) and is disabled on many systems.