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!

 

posted @ 2016-12-04 23:17  bass  阅读(379)  评论(0编辑  收藏  举报