nc命令最常用的用法:
1、测试TCP端口nc -vz ip tcp-port2、测试UDPnc -uvz ip udp-port3、临时监听TCP端口nc -l port4、永久监听TCP端口nc -lk port5、临时监听UDPnc -lu port6、永久监听UDPnc -luk port