当前位置:   article > 正文

nc扫描机器端口

nc扫描一个网段的端口

# nc -z localhost 1-10000   //扫描本机1到1000端口,获取打开的端口
Connection to localhost 22 port [tcp/ssh] succeeded!
Connection to localhost 80 port [tcp/http] succeeded!
Connection to localhost 111 port [tcp/sunrpc] succeeded!
Connection to localhost 199 port [tcp/smux] succeeded!
Connection to localhost 3306 port [tcp/mysql] succeeded!
Connection to localhost 6010 port [tcp/x11-ssh-offset] succeeded!
Connection to localhost 6011 port [tcp/*] succeeded!

-z      Specifies that nc should just scan for listening daemons, without sending any data to them.  It is  an error to use this option in conjunction with the -l option.

转载于:https://www.cnblogs.com/kumulinux/archive/2012/11/15/2808693.html

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号