nc
Redirect I/O into a network stream through this versatile tool. More information: https://manned.org/nc.
- Start a [l]istener on the specified TCP [p]ort and send a file into it:
nc < -l -p
- Connect to a target listener on the specified port and receive a file from it:
nc >
- Scan the open TCP ports of a specified host:
nc -v -z -w -
- Start a [l]istener on the specified TCP [p]ort and provide your local shell access to the connected party (this is dangerous and can be abused):
nc -l -p -e
- Connect to a target listener and provide your local shell access to the remote party (this is dangerous and can be abused):
nc -e
- Act as a proxy and forward data from a local TCP port to the given remote host:
nc -l -p | nc
- Send an HTTP GET request:
echo -e "GET / HTTP/1.1\nHost: \n\n" | nc 80
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
