首页 > 代码库 > nc 显示服务器开放的端口

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!

 

nc 显示服务器开放的端口