- 10 个例子教你学会 ncat (nc) 命令 https://linux.cn/article-9190-1.html
2台机器互传text
# A 起一个端口
nc -lk 5000
# B 链接 A
nc ip-a 5000
端口转发
windows
netsh interface portproxy add v4tov4 connectaddress=127.0.0.1 connectport=2375 listenport=2376 protocol=tcp
yum install -y nmap-ncat
ncat -l 8080 #
ncat --sh-exec "ncat localhost 80" -l 7777 --keep-open