nc端口扫描示例

nc -v -z 192.168.10.197 79-100:扫描固定范围内的端口是否开启

[root@master scprits]# nc -v -z 192.168.10.197 79-100

nc: connect to 192.168.10.197 port 79 (tcp) failed: Connection refused

Connection to 192.168.10.197 80 port [tcp/http] succeeded!

nc: connect to 192.168.10.197 port 81 (tcp) failed: Connection refused

nc: connect to 192.168.10.197 port 82 (tcp) failed: Connection refused

nc: connect to 192.168.10.197 port 83 (tcp) failed: Connection refused

nc: connect to 192.168.10.197 port 84 (tcp) failed: Connection refused

nc: connect to 192.168.10.197 port 85 (tcp) failed: Connection refused

nc: connect to 192.168.10.197 port 86 (tcp) failed: Connection refused

nc: connect to 192.168.10.197 port 87 (tcp) failed: Connection refused

nc: connect to 192.168.10.197 port 88 (tcp) failed: Connection refused

nc: connect to 192.168.10.197 port 89 (tcp) failed: Connection refused

nc: connect to 192.168.10.197 port 90 (tcp) failed: Connection refused

nc: connect to 192.168.10.197 port 91 (tcp) failed: Connection refused

nc: connect to 192.168.10.197 port 92 (tcp) failed: Connection refused

nc: connect to 192.168.10.197 port 93 (tcp) failed: Connection refused

nc: connect to 192.168.10.197 port 94 (tcp) failed: Connection refused

nc: connect to 192.168.10.197 port 95 (tcp) failed: Connection refused

nc: connect to 192.168.10.197 port 96 (tcp) failed: Connection refused

nc: connect to 192.168.10.197 port 97 (tcp) failed: Connection refused

nc: connect to 192.168.10.197 port 98 (tcp) failed: Connection refused

nc: connect to 192.168.10.197 port 99 (tcp) failed: Connection refused

nc: connect to 192.168.10.197 port 100 (tcp) failed: Connection refused

nc -v -z 192.168.10.197 22 :扫描指定端口是否开启

[root@master scprits]# nc -v -z 192.168.10.197 22

Connection to 192.168.10.197 22 port [tcp/ssh] succeeded!

你可能感兴趣的:(职场,端口,扫描,示例,休闲)