{"id":3877,"date":"2019-07-21T23:45:19","date_gmt":"2019-07-21T15:45:19","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3877"},"modified":"2019-07-21T23:45:20","modified_gmt":"2019-07-21T15:45:20","slug":"nc","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/nc","title":{"rendered":"nc\u547d\u4ee4 – \u8bbe\u7f6e\u8def\u7531"},"content":{"rendered":"\n
nc\u547d\u4ee4\u662f\u4e00\u4e2a\u529f\u80fd\u6253\u5305\u7684\u7f51\u7edc\u5b9e\u7528\u7a0b\u5e8f\uff0c\u5b83\u901a\u8fc7\u547d\u4ee4\u884c\u5728\u7f51\u7edc\u4e0a\u8bfb\u53d6\u548c\u5199\u5165\u6570\u636e;nc\u662f\u4e3aNMAP\u9879\u76ee\u7f16\u5199\u7684\uff0c\u662f\u76ee\u524d\u5df2\u5206\u88c2\u7684netcat\u5bb6\u65cf\u7684\u9876\u5cf0,\u5b83\u88ab\u8bbe\u8ba1\u6210\u4e00\u4e2a\u53ef\u9760\u7684\u540e\u7aef\u5de5\u5177\uff0c\u53ef\u4ee5\u7acb\u5373\u4e3a\u5176\u4ed6\u7528\u6237\u63d0\u4f9b\u7f51\u7edc\u8fde\u63a5\u5e94\u7528\u7a0b\u5e8f\u548c\u7528\u6237\u3002nc\u4e0d\u4ec5\u53ef\u4ee5\u4f7f\u7528IPv4\u548cIPv6\uff0c\u800c\u4e14\u53ef\u4ee5\u4e3a\u7528\u6237\u63d0\u4f9b\u65e0\u9650\u7684\u6f5c\u5728\u7528\u9014\u3002<\/p>\n\n\n\n
\u5728nc\u7684\u5927\u91cf\u529f\u80fd\u4e2d\uff0c\u6709\u80fd\u529b\u5c06nc\u94fe\u63a5\u5728\u4e00\u8d77\uff1bTCP\u3001UDP\u548c\u5230\u5176\u4ed6\u7ad9\u70b9\u7684SCTP\u7aef\u53e3\uff1b\u652f\u6301SSL\uff1b\u901a\u8fc7socks4\u6216HTTP\u4ee3\u7406\uff08\u5e26\u6709\u53ef\u9009\u4ee3\u7406\uff09\u8fdb\u884c\u4ee3\u7406\u8fde\u63a5\u8eab\u4efd\u9a8c\u8bc1\uff09;\u4e00\u4e9b\u4e00\u822c\u539f\u5219\u9002\u7528\u4e8e\u5927\u591a\u6570\u5e94\u7528\u7a0b\u5e8f\uff0c\u56e0\u6b64\u4f7f\u60a8\u80fd\u591f\u7acb\u5373\u5411\u901a\u5e38\u4e0d\u652f\u6301\u5b83\u7684\u8f6f\u4ef6\u6dfb\u52a0\u7f51\u7edc\u652f\u6301\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>nc [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u626b\u63cf80\u7aef\u53e3\uff1a<\/p>\n\n\n\n \u626b\u63cfUDP\u7aef\u53e3\uff1a<\/p>\n\n\n\n \u626b\u63cfTCP\u7aef\u53e3\uff1a<\/p>\n\n\n\n nc\u547d\u4ee4\u662f\u4e00\u4e2a\u529f\u80fd\u6253\u5305\u7684\u7f51\u7edc\u5b9e\u7528\u7a0b\u5e8f\uff0c\u5b83\u901a\u8fc7\u547d\u4ee4\u884c\u5728\u7f51\u7edc\u4e0a\u8bfb\u53d6\u548c\u5199\u5165\u6570\u636e;nc\u662f\u4e3aNMAP\u9879\u76ee\u7f16\u5199\u7684\uff0c\u662f\u76ee\u524d\u5df2 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3877"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=3877"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3877\/revisions"}],"predecessor-version":[{"id":4080,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3877\/revisions\/4080"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3877"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3877"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3877"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-l<\/td> \u4f7f\u7528\u76d1\u542c\u6a21\u5f0f\uff0c\u7ba1\u63a7\u4f20\u5165\u7684\u8d44\u6599<\/td><\/tr> -p<\/td> \u8bbe\u7f6e\u672c\u5730\u4e3b\u673a\u4f7f\u7528\u7684\u901a\u4fe1\u7aef\u53e3<\/td><\/tr> -s<\/td> \u8bbe\u7f6e\u672c\u5730\u4e3b\u673a\u9001\u51fa\u6570\u636e\u5305\u7684IP\u5730\u5740<\/td><\/tr> -u<\/td> \u4f7f\u7528UDP\u4f20\u8f93\u534f\u8bae<\/td><\/tr> -v<\/td> \u663e\u793a\u6307\u4ee4\u6267\u884c\u8fc7\u7a0b<\/td><\/tr> -w<\/td> \u8bbe\u7f6e\u7b49\u5f85\u8fde\u7ebf\u7684\u65f6\u95f4<\/td><\/tr> -z<\/td> \u4f7f\u75280\u8f93\u5165\/\u8f93\u51fa\u6a21\u5f0f\uff0c\u53ea\u5728\u626b\u63cf\u901a\u4fe1\u7aef\u53e3\u65f6\u4f7f\u7528<\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# nc -nvv 192.168.3.1 80<\/pre>\n\n\n\n
[root@linuxcool ~]# nc -u -z -w2 192.168.0.1 1-1000<\/pre>\n\n\n\n
[root@linuxcool ~]# nc -v -z -w2 192.168.0.3 1-100<\/pre>\n","protected":false},"excerpt":{"rendered":"