Skip to main content

nc 端口转发

· One min read

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