nc 显示服务器开放的端口

# nc -z -w 2 xxxx.com 1-1000
Connection to xxxx.com 21 port [tcp/ftp] succeeded!
Connection to xxxx.com port [tcp/http] succeeded!
Connection toxxxx.com port [tcp/epmap] succeeded!
Connection to xxxx.com139 port [tcp/netbios-ssn] succeeded!
Connection to xxxx.com 443 port [tcp/https] succeeded!
Connection toxxxx.com 445 port [tcp/microsoft-ds] succeeded!
Connection to xxxx.comc 990 port [tcp/ftps] succeeded!
原文地址:https://www.cnblogs.com/bass6/p/6132360.html