{"id":78,"date":"2023-12-09T14:10:53","date_gmt":"2023-12-09T06:10:53","guid":{"rendered":"https:\/\/blog.ulayer.cn\/?p=78"},"modified":"2023-12-09T14:10:53","modified_gmt":"2023-12-09T06:10:53","slug":"%e4%bd%bf%e7%94%a8zmap%e6%89%ab%e6%8f%8fntp_monlist%e5%88%97%e8%a1%a8%e5%b9%b6%e4%bd%bf%e7%94%a8ntpchecker%e8%bf%87%e6%bb%a4","status":"publish","type":"post","link":"https:\/\/blog.ulayer.cn\/?p=78","title":{"rendered":"\u4f7f\u7528Zmap\u626b\u63cfntp_monlist\u5217\u8868\u5e76\u4f7f\u7528ntpchecker\u8fc7\u6ee4"},"content":{"rendered":"\n<p>\u5df2\u7ecf\u662f\u4e4b\u524d\u670b\u53cb\u4eec\u73a9\u70c2\u7684\u4e1c\u897f\uff0c\u6211\u624d\u5f00\u59cb\u6361\u8d77\u6765\u73a9\uff0c\u4e0d\u8fc7\u5012\u662f\u6709\u4e2a\u597d\u5904\uff0c\u62fe\u4eba\u7259\u6167\u5427\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u514d\u8d23\u58f0\u660e<\/h2>\n\n\n\n<p>\u672c\u6559\u7a0b\u65e8\u5728\u5411\u8bfb\u8005\u63d0\u4f9b\u57fa\u672c\u77e5\u8bc6\u548c\u4e86\u89e3\u3002\u8bf7\u6ce8\u610f\uff0c\u8fdb\u884c\u7f51\u7edc\u653b\u51fb\u662f\u975e\u6cd5\u7684\uff0c\u5e76\u4e14\u8fdd\u53cd\u4e86\u8bb8\u591a\u56fd\u5bb6\u548c\u5730\u533a\u7684\u6cd5\u5f8b\u3002\u672c\u6559\u7a0b\u4ec5\u4f9b\u5b66\u4e60\u548c\u7814\u7a76\u76ee\u7684\uff0c\u4e25\u7981\u5c06\u5176\u7528\u4e8e\u4efb\u4f55\u975e\u6cd5\u6d3b\u52a8\u3002<\/p>\n\n\n\n<p>\u4f5c\u8005\u548c\u53d1\u5e03\u8005\u5bf9\u8bfb\u8005\u4f7f\u7528\u672c\u6559\u7a0b\u6240\u5bfc\u81f4\u7684\u4efb\u4f55\u975e\u6cd5\u884c\u4e3a\u6216\u8fdd\u6cd5\u6d3b\u52a8\u6982\u4e0d\u8d1f\u8d23\u3002\u8bfb\u8005\u5e94\u81ea\u884c\u627f\u62c5\u4f7f\u7528\u672c\u6559\u7a0b\u6240\u5e26\u6765\u7684\u98ce\u9669\u548c\u540e\u679c\u3002<\/p>\n\n\n\n<p>\u672c\u6559\u7a0b\u4e2d\u63d0\u4f9b\u7684\u4fe1\u606f\u4ec5\u4f9b\u53c2\u8003\u3002\u4f5c\u8005\u548c\u53d1\u5e03\u8005\u4e0d\u4fdd\u8bc1\u672c\u6559\u7a0b\u4e2d\u7684\u4fe1\u606f\u7684\u51c6\u786e\u6027\u3001\u5b8c\u6574\u6027\u6216\u5b9e\u7528\u6027\u3002\u8bfb\u8005\u5e94\u81ea\u884c\u5224\u65ad\u548c\u8bc4\u4f30\u672c\u6559\u7a0b\u4e2d\u7684\u4fe1\u606f\uff0c\u5e76\u81ea\u884c\u627f\u62c5\u4f7f\u7528\u8be5\u4fe1\u606f\u6240\u5e26\u6765\u7684\u98ce\u9669\u3002<\/p>\n\n\n\n<p>\u672c\u6559\u7a0b\u4e2d\u63d0\u4f9b\u7684\u4efb\u4f55\u5de5\u5177\u3001\u8f6f\u4ef6\u6216\u4ee3\u7801\u4ec5\u4f9b\u5b66\u4e60\u548c\u7814\u7a76\u76ee\u7684\u3002\u8bfb\u8005\u5728\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u3001\u8f6f\u4ef6\u6216\u4ee3\u7801\u65f6\u5e94\u9075\u5b88\u76f8\u5173\u6cd5\u5f8b\u6cd5\u89c4\uff0c\u5e76\u81ea\u884c\u627f\u62c5\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u3001\u8f6f\u4ef6\u6216\u4ee3\u7801\u6240\u5e26\u6765\u7684\u98ce\u9669\u548c\u540e\u679c\u3002<\/p>\n\n\n\n<p>\u4f5c\u8005\u548c\u53d1\u5e03\u8005\u4e0d\u5bf9\u8bfb\u8005\u4f7f\u7528\u672c\u6559\u7a0b\u6240\u5bfc\u81f4\u7684\u4efb\u4f55\u635f\u5931\u6216\u635f\u5bb3\u627f\u62c5\u4efb\u4f55\u8d23\u4efb\u3002\u8bfb\u8005\u5e94\u81ea\u884c\u627f\u62c5\u4f7f\u7528\u672c\u6559\u7a0b\u6240\u5e26\u6765\u7684\u98ce\u9669\uff0c\u5e76\u91c7\u53d6\u9002\u5f53\u7684\u5b89\u5168\u63aa\u65bd\u6765\u4fdd\u62a4\u81ea\u5df1\u548c\u4ed6\u4eba\u7684\u5229\u76ca\u3002<\/p>\n\n\n\n<p>\u8bf7\u52a1\u5fc5\u9075\u5b88\u6cd5\u5f8b\u6cd5\u89c4\uff0c\u5e76\u5c0a\u91cd\u4ed6\u4eba\u7684\u6743\u76ca\u3002\u4efb\u4f55\u975e\u6cd5\u884c\u4e3a\u6216\u8fdd\u6cd5\u6d3b\u52a8\u90fd\u5c06\u53d7\u5230\u6cd5\u5f8b\u8ffd\u7a76\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u626b\u63cf<\/h2>\n\n\n\n<p>\u9996\u5148\u5b89\u88c5screen\u7528\u6765keep\u626b\u63cf\u8fdb\u7a0b\uff0c\u5b89\u88c5zmap\u6765\u8fdb\u884c\u626b\u63cf<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt -y install screen curl zmap<\/code><\/pre>\n\n\n\n<p>\u5728~\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2apkt\u6587\u4ef6\u5939\uff0c\u5e76\u4e14\u5c06\u5c06zmap\u63a2\u9488\u6587\u4ef6\u62f7\u8d1d\u5230\u91cc\u9762<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir -p \/root\/pkt\ncp \/usr\/share\/doc\/zmap\/examples\/udp-probes\/*.pkt \/root\/pkt<\/code><\/pre>\n\n\n\n<p>\u521b\u5efascreen\u5e76\u5957\u7528\u547d\u4ee4\uff0c\u4e14\u8f93\u51fa\u6587\u4ef6monlist_fingerprint.txt<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>screen zmap -M udp -p 123 --probe-args=file:\/root\/ptk\/ntp_123_monlist.pkt -o monlist_fingerprint.txt<\/code><\/pre>\n\n\n\n<p>\u626b\u63cf\u7684\u65f6\u95f4\u4f1a\u6709\u4e9b\u4e45\uff0c\u770b\u4f60\u5177\u4f53\u7f51\u7edc\u901f\u5ea6\u5427\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u68c0\u67e5<\/h2>\n\n\n\n<p>\u4f7f\u7528ntpchecker\u6765\u68c0\u67e5\u6240\u5f97\u5230\u7684monlist_fingerprint.txt\uff0c\u81f3\u4e8e\u53bb\u54ea\u513f\u627entpchecker\u7684\u8bdd\uff0c\u5c31\u4e0d\u5728\u8fd9\u513f\u63cf\u8ff0\u4e86\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod +x ntpchecker \/\/\u8d4b\u4e88\u6267\u884c\u6743\u9650\n.\/ntpchecker monlist_fingerprint.txt 1.txt 1 0 1  \/\/\u626b\u63cf\u8f93\u51fa1.txt<\/code><\/pre>\n\n\n\n<p>\u68c0\u67e5\u5b8c\u6210\u5f97\u52301.txt\uff0c\u505a\u4e00\u6b21\u6570\u636e\u6e05\u6d17\uff0c\u5c31\u5f97\u5230\u53ef\u7528\u7684\u5217\u8868\u4e86<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>awk '$2>400{print $1}' 1.txt | sort -n | uniq | sort -R > ntp.txt<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e00\u4e9b\u9ad8\u7ea7\u64cd\u4f5c<\/h2>\n\n\n\n<p>\u56e0\u4e3a\u9ed8\u8ba4\u662f\u626b\u5168\u7403\u7684\uff0c\u6211\u4eec\u53ef\u7528\u901a\u8fc7\u6307\u5b9a\u4e00\u4e9b\u5730\u533a\u6765\u8fdb\u884c\u626b\u63cf\u3002\u8fd9\u6837\u6548\u7387\u66f4\u9ad8\uff0c\u5a01\u529b\u53ef\u80fd\u4e5f\u66f4\u5927\u3002<\/p>\n\n\n\n<p>\u6307\u5b9aCIDR\u626b\u63cf\uff0c\u53ef\u4ee5\u4f7f\u7528-w $path\u53c2\u6570\uff0c\u5e76\u4e14\u5efa\u8bae\u5e26\u5bbd\u4e0d\u662f\u7279\u522b\u5927\u7684\u60c5\u51b5\u4e0b\u9650\u5236\u5e26\u5bbd\u4e3a100Mbps\u8fdb\u884c\u626b\u63cf\u9632\u6b62\u6f0f\u626b\uff0c\u7528\u6cd5\u5982\u4e0b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>screen zmap -M udp -p 123 -w \/root\/ips.txt --probe-args=file:\/root\/ptk\/ntp_123_monlist.pkt -o monlist_fingerprint.txt -B 100M<\/code><\/pre>\n\n\n\n<p>IPV4 CIDR\u5f52\u6863\u7ad9\u70b9\uff1a<a rel=\"noreferrer noopener\" href=\"https:\/\/ipv4.fetus.jp\" target=\"_blank\">https:\/\/ipv4.fetus.jp\/<\/a><\/p>\n\n\n\n<p>\u672c\u6587\u5f15\u7528\u4e8e<a href=\"https:\/\/www.pishifu.org\/Logs\/zmap-scan-ntp.html\">https:\/\/www.pishifu.org\/Logs\/zmap-scan-ntp.html<\/a><\/p>\n\n\n\n<p>\u4f46\u662f\u4e0d\u77e5\u9053\u4e3a\u4ec0\u4e48\u76ae\u5e08\u5085\u57df\u540d\u90fd\u6ca1\u6709\u7eed\u8d39\u4e86\uff0c\u597d\u50cf\u88ab\u56de\u6536\u4e86\uff0c\u5199\u7684\u4e00\u4e9b\u5c0f\u8bb0\u5f55\u86ee\u4e0d\u9519\u7684\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5df2\u7ecf\u662f\u4e4b\u524d\u670b\u53cb\u4eec\u73a9\u70c2\u7684\u4e1c\u897f\uff0c\u6211\u624d\u5f00\u59cb\u6361\u8d77\u6765\u73a9\uff0c\u4e0d\u8fc7\u5012\u662f\u6709\u4e2a\u597d\u5904\uff0c\u62fe\u4eba\u7259\u6167\u5427\u3002 \u514d\u8d23\u58f0\u660e \u672c\u6559\u7a0b\u65e8\u5728\u5411\u8bfb\u8005\u63d0\u4f9b\u57fa [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-78","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.ulayer.cn\/index.php?rest_route=\/wp\/v2\/posts\/78","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ulayer.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ulayer.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ulayer.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ulayer.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=78"}],"version-history":[{"count":1,"href":"https:\/\/blog.ulayer.cn\/index.php?rest_route=\/wp\/v2\/posts\/78\/revisions"}],"predecessor-version":[{"id":79,"href":"https:\/\/blog.ulayer.cn\/index.php?rest_route=\/wp\/v2\/posts\/78\/revisions\/79"}],"wp:attachment":[{"href":"https:\/\/blog.ulayer.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ulayer.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ulayer.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}