{"id":234,"date":"2022-04-14T16:44:33","date_gmt":"2022-04-14T08:44:33","guid":{"rendered":"http:\/\/danielw.top\/?p=234"},"modified":"2023-09-22T14:00:58","modified_gmt":"2023-09-22T06:00:58","slug":"cdn%e7%bb%95%e8%bf%87%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"http:\/\/danielw.top\/?p=234","title":{"rendered":"CDN\u7ed5\u8fc7\u65b9\u6cd5"},"content":{"rendered":"<h1>\u9a8c\u8bc1\u662f\u5426\u5b58\u5728CDN<\/h1>\n<h2>\u591a\u5904ping<\/h2>\n<p>\u5f88\u7b80\u5355\uff0c\u4f7f\u7528\u5404\u79cd\u591a\u5730 ping \u7684\u670d\u52a1\uff0c\u67e5\u770b\u5bf9\u5e94 IP \u5730\u5740\u662f\u5426\u552f\u4e00\uff0c\u5982\u679c\u4e0d\u552f\u4e00\u591a\u534a\u662f\u4f7f\u7528\u4e86CDN\uff0c \u591a\u5730 Ping \u7f51\u7ad9\u6709\uff1a<\/p>\n<ul>\n<li><a href=\"http:\/\/ping.chinaz.com\/\" target=\"_blank\"  rel=\"nofollow\" >http:\/\/ping.chinaz.com\/<\/a><\/li>\n<li><a href=\"http:\/\/ping.aizhan.com\/\" target=\"_blank\"  rel=\"nofollow\" >http:\/\/ping.aizhan.com\/<\/a><\/li>\n<li><a href=\"http:\/\/ce.cloud.360.cn\/\" target=\"_blank\"  rel=\"nofollow\" >http:\/\/ce.cloud.360.cn\/<\/a><\/li>\n<\/ul>\n<h2>nslookup<\/h2>\n<p>\u4f7f\u7528 nslookup \u8fdb\u884c\u68c0\u6d4b\uff0c\u539f\u7406\u540c\u4e0a\uff0c\u5982\u679c\u8fd4\u56de\u57df\u540d\u89e3\u6790\u5bf9\u5e94\u591a\u4e2a IP \u5730\u5740\u591a\u534a\u662f\u4f7f\u7528\u4e86 CDN\u3002<\/p>\n<p>\u6709 CDN \u7684\u793a\u4f8b\uff1a<\/p>\n<pre><code>www.163.com\n \u670d\u52a1\u5668:  public1.114dns.com\n Address:  114.114.114.114\n\n\u975e\u6743\u5a01\u5e94\u7b54:\n \u540d\u79f0:    163.xdwscache.ourglb0.com\n Addresses:  58.223.164.86\n             125.75.32.252\n Aliases:  http:\/\/www.163.com\n           http:\/\/www.163.com.lxdns.com<\/code><\/pre>\n<p>\u65e0 CDN \u7684\u793a\u4f8b\uff1a<\/p>\n<pre><code>xiaix.me\n \u670d\u52a1\u5668:  public1.114dns.com\n Address:  114.114.114.114\n\n\u975e\u6743\u5a01\u5e94\u7b54:\n \u540d\u79f0:    xiaix.me\n Address:  192.3.168.172<\/code><\/pre>\n<h2>\u4f7f\u7528\u5de5\u5177<\/h2>\n<p>\u4f7f\u7528\u5404\u79cd\u5de5\u5177\u5e2e\u52a9\u68c0\u6d4b\u76ee\u6807\u7f51\u7ad9\u662f\u5426\u4f7f\u7528\u4e86 CDN\uff0c\u53ef\u4ee5\u53c2\u89c1\u5982\u4e0b\u7f51\u7ad9\uff1a<\/p>\n<ul>\n<li>\n<p><a href=\"http:\/\/www.cdnplanet.com\/tools\/cdnfinder\/\" target=\"_blank\"  rel=\"nofollow\" >http:\/\/www.cdnplanet.com\/tools\/cdnfinder\/<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"http:\/\/www.ipip.net\/ip.html\" target=\"_blank\"  rel=\"nofollow\" >http:\/\/www.ipip.net\/ip.html<\/a><\/p>\n<p><a href=\"https:\/\/raw.githubusercontent.com\/Wh0ale\/Image-Hosting\/master\/blog\/b6de3d7dgy1fz7n7lxpfjj21150c8dhc.jpg\" alt=\"CDN\u7ed5\u8fc7\u65b9\u6cd5\" title=\"CDN\u7ed5\u8fc7\u65b9\u6cd5\" target=\"_blank\"  rel=\"nofollow\" ><img decoding=\"async\" src=\"http:\/\/img.danielw.top\/b6de3d7dgy1fz7n7lxpfjj21150c8dhc.jpg\" alt=\"img\" \/><\/a><\/p>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/raw.githubusercontent.com\/Wh0ale\/Image-Hosting\/master\/blog\/b6de3d7dgy1fz7n7lxpfjj21150c8dhc.jpg\" alt=\"CDN\u7ed5\u8fc7\u65b9\u6cd5\" title=\"CDN\u7ed5\u8fc7\u65b9\u6cd5\" target=\"_blank\"  rel=\"nofollow\" ><img decoding=\"async\" src=\"http:\/\/img.danielw.top\/b6de3d7dgy1fz7n7lxpfjj21150c8dhc.jpg\" alt=\"img\" \/><\/a><\/p>\n<h1>\u7ed5\u8fc7 CDN \u67e5\u627e\u7f51\u7ad9\u771f\u5b9e IP<\/h1>\n<h2>\u67e5\u8be2\u5386\u53f2DNS\u8bb0\u5f55<\/h2>\n<p>\u67e5\u770b IP \u4e0e \u57df\u540d\u7ed1\u5b9a\u7684\u5386\u53f2\u8bb0\u5f55\uff0c\u53ef\u80fd\u4f1a\u5b58\u5728\u4f7f\u7528 CDN \u524d\u7684\u8bb0\u5f55\uff0c\u76f8\u5173\u67e5\u8be2\u7f51\u7ad9\u6709\uff1a<\/p>\n<ul>\n<li><a href=\"https:\/\/dnsdb.io\/zh-cn\/\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/dnsdb.io\/zh-cn\/<\/a><\/li>\n<li><a href=\"https:\/\/x.threatbook.cn\/\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/x.threatbook.cn\/<\/a><\/li>\n<li><a href=\"http:\/\/toolbar.netcraft.com\/site_report?url=\/\" target=\"_blank\"  rel=\"nofollow\" >http:\/\/toolbar.netcraft.com\/site_report?url=<\/a><\/li>\n<li><a href=\"http:\/\/viewdns.info\/\" target=\"_blank\"  rel=\"nofollow\" >http:\/\/viewdns.info\/<\/a><\/li>\n<\/ul>\n<h2>\u67e5\u8be2\u5b50\u57df\u540d<\/h2>\n<p>\u6bd5\u7adf CDN \u8fd8\u662f\u4e0d\u4fbf\u5b9c\u7684\uff0c\u6240\u4ee5\u5f88\u591a\u7ad9\u957f\u53ef\u80fd\u53ea\u4f1a\u5bf9\u4e3b\u7ad9\u6216\u8005\u6d41\u91cf\u5927\u7684\u5b50\u7ad9\u70b9\u505a\u4e86 CDN\uff0c\u800c\u5f88\u591a\u5c0f\u7ad9\u5b50\u7ad9\u70b9\u53c8\u8ddf\u4e3b\u7ad9\u5728\u540c\u4e00\u53f0\u670d\u52a1\u5668\u6216\u8005\u540c\u4e00\u4e2aC\u6bb5\u5185\uff0c\u6b64\u65f6\u5c31\u53ef\u4ee5\u901a\u8fc7\u67e5\u8be2\u5b50\u57df\u540d\u5bf9\u5e94\u7684 IP \u6765\u8f85\u52a9\u67e5\u627e\u7f51\u7ad9\u7684\u771f\u5b9eIP\u3002<\/p>\n<h2>\u5229\u7528\u7f51\u7ad9\u6f0f\u6d1e<\/h2>\n<p>\u8fd9\u4e2a\u5c31\u6ca1\u4ec0\u4e48\u597d\u8bf4\u7684\u4e86\uff0c\u76ee\u7684\u5c31\u662f\u8ba9\u76ee\u6807\u670d\u52a1\u5668\u4e3b\u52a8\u6765\u8fde\u63a5\u6211\u4eec\uff0c\u8fd9\u6837\u6211\u4eec\u5c31\u77e5\u9053\u5176\u771f\u5b9eIP\u4e86\uff0c\u53ef\u7528\u7684\u6bd4\u5982XSS\u76f2\u6253\uff0c\u547d\u4ee4\u6267\u884c\u53cd\u5f39shell\uff0cSSRF\u7b49\u7b49\u3002<\/p>\n<h2>\u670d\u52a1\u5668\u5408\u6cd5\u670d\u52a1\u4e3b\u52a8\u8fde\u63a5\u6211\u4eec<\/h2>\n<p>\u540c\u4e0a\u4e00\u6837\u7684\u601d\u8def\u5c31\u662f\u8ba9\u670d\u52a1\u5668\u4e3b\u52a8\u8fde\u63a5\u6211\u4eec\u544a\u8bc9\u6211\u4eec\u5b83\u7684IP\uff0c\u4e0d\u8fc7\u4f7f\u7528\u7684\u662f\u5408\u6cd5\u7684\u670d\u52a1\uff0c\u5982RSS\u90ae\u4ef6\u8ba2\u9605\uff0c\u5f88\u591a\u7f51\u7ad9\u90fd\u81ea\u5e26 sendmail\uff0c\u4f1a\u53d1\u90ae\u4ef6\u7ed9\u6211\u4eec\uff0c\u6b64\u65f6\u67e5\u770b\u90ae\u4ef6\u6e90\u7801\u91cc\u9762\u5c31\u4f1a\u5305\u542b\u670d\u52a1\u5668\u7684\u771f\u5b9e IP \u4e86\u3002<\/p>\n<h2>\u4f7f\u7528\u56fd\u5916\u4e3b\u673a\u89e3\u6790\u57df\u540d<\/h2>\n<p>\u56fd\u5185\u5f88\u591a CDN \u5382\u5546\u56e0\u4e3a\u5404\u79cd\u539f\u56e0\u53ea\u505a\u4e86\u56fd\u5185\u7684\u7ebf\u8def\uff0c\u800c\u9488\u5bf9\u56fd\u5916\u7684\u7ebf\u8def\u53ef\u80fd\u51e0\u4e4e\u6ca1\u6709\uff0c\u6b64\u65f6\u6211\u4eec\u4f7f\u7528\u56fd\u5916\u7684\u4e3b\u673a\u76f4\u63a5\u8bbf\u95ee\u53ef\u80fd\u5c31\u80fd\u83b7\u53d6\u5230\u771f\u5b9eIP\u3002\u8fd9\u91cc\u7528\u5230\u4e00\u6b3e\u5168\u7403ping\u626b\u5de5\u5177\uff0c\u70ed\u5ea6\u8d8a\u4f4e\u7684\u56fd\u5bb6\uff0c\u6548\u679c\u8d8a\u597d\u3002<br \/>\nIPIPtools\uff1a<a href=\"https:\/\/tools.ipip.net\/cdn.php\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/tools.ipip.net\/cdn.php<\/a><\/p>\n<h2>\u4ece CDN \u5165\u624b<\/h2>\n<p>\u65e0\u8bba\u662f\u7528\u793e\u5de5\u8fd8\u662f\u5176\u4ed6\u624b\u6bb5\uff0c\u53cd\u6b63\u662f\u62ff\u5230\u4e86\u76ee\u6807\u7f51\u7ad9\u7ba1\u7406\u5458\u5728CDN\u7684\u8d26\u53f7\u4e86\uff0c\u6b64\u65f6\u5c31\u53ef\u4ee5\u81ea\u5df1\u5728CDN\u7684\u914d\u7f6e\u4e2d\u627e\u5230\u7f51\u7ad9\u7684\u771f\u5b9eIP\u4e86\u3002<\/p>\n<h2>\u9057\u7559\u6587\u4ef6\uff0c\u626b\u63cf\u5168\u7f51<\/h2>\n<p>\u4e00\u4e9b\u7ad9\u70b9\u5728\u642d\u5efa\u4e4b\u521d\uff0c\u4f1a\u7528\u4e00\u4e9b\u6587\u4ef6\u6d4b\u8bd5\u7ad9\u70b9\uff0c\u4f8b\u5982\u201cphpinfo()\u201d\u6587\u4ef6\uff0c\u6b64\u7c7b\u6587\u4ef6\u91cc\u5c31\u6709\u53ef\u80fd\u5305\u542b\u4e86\u771f\u5b9e\u7684IP\u5730\u5740\u3002\u53ef\u4ee5\u5229\u7528Google\u641c\u7d22\u5f15\u64ce\u641c\u7d22\u5173\u952e\u5b57\u201csite:xxx.com inurl:phpinfo.php\u201d\uff0c\u641c\u7d22\u7ad9\u70b9\u662f\u5426\u6709\u9057\u7559\u6587\u4ef6\u3002<br \/>\n<img decoding=\"async\" src=\"http:\/\/img.danielw.top\/1624431873_60d2dd01b16838ea84efa.png!small\" alt=\"image\" \/><\/p>\n<h2>\u9ed1\u6697\u5f15\u64ce\u641c\u7d22\u7279\u5b9a\u6587\u4ef6<\/h2>\n<p>\u8fd9\u91cc\u7684\u7279\u5b9a\u6587\u4ef6\uff0c\u6307\u7684\u662f\u7ad9\u70b9\u7684icon\u6587\u4ef6\uff0c\u4e5f\u5c31\u662f\u7f51\u7ad9\u7684\u56fe\u6807\uff0c\u4e00\u822c\u67e5\u770b\u7f51\u9875\u6e90\u4ee3\u7801\u53ef\u4ee5\u627e\u5230\uff0c\u683c\u5f0f\u5927\u81f4\u201c<a href=\"http:\/\/www.xx.com\/favicon.ico\u201d\u3002\u5728shodan\u641c\u7d22\u7f51\u7ad9icon\u56fe\u6807\u7684\u8bed\u6cd5\u4e3a\uff1ahttp.favicon.hash:hash\u503c\uff0chash\u662f\u4e00\u4e2a\u672a\u77e5\u7684\u968f\u673a\u6570\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7shodan\u8bed\u6cd5\u6765\u67e5\u770b\u4e00\u4e2a\u5df2\u7ecf\u88abshodan\u6536\u5f55\u7684\u7f51\u7ad9\u7684hash\u503c\uff0c\u6765\u8fdb\u4e00\u6b65\u83b7\u53d6\u5230\u6240\u6709\u5e26\u6709\u67d0icon\u7684\u7f51\u7ad9\" target=\"_blank\"  rel=\"nofollow\" >http:\/\/www.xx.com\/favicon.ico\u201d\u3002\u5728shodan\u641c\u7d22\u7f51\u7ad9icon\u56fe\u6807\u7684\u8bed\u6cd5\u4e3a\uff1ahttp.favicon.hash:hash\u503c\uff0chash\u662f\u4e00\u4e2a\u672a\u77e5\u7684\u968f\u673a\u6570\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7shodan\u8bed\u6cd5\u6765\u67e5\u770b\u4e00\u4e2a\u5df2\u7ecf\u88abshodan\u6536\u5f55\u7684\u7f51\u7ad9\u7684hash\u503c\uff0c\u6765\u8fdb\u4e00\u6b65\u83b7\u53d6\u5230\u6240\u6709\u5e26\u6709\u67d0icon\u7684\u7f51\u7ad9<\/a>\u3002<br \/>\n\u90a3\u4e48\u95ee\u9898\u6765\u4e86\uff0c\u5982\u4f55\u83b7\u53d6icon\u7684hash\u503c\u5462\uff1f<\/p>\n<h4>python\u5de5\u5177<\/h4>\n<pre><code>#Python2 \u5f00\u53d1\u522b\u641e\u9519\u4e86\u6267\u884c\u73af\u5883 \n#\u5b89\u88c5 mmh3 \u5931\u8d25\u8bb0\u5f97\u5148\u5b89\u88c5\u4e0b\u8fd9\u4e2aMicrosoft Visual C++ 14.0 \nimport mmh3 \nimport requests \nresponse = requests.get(&#039;http:\/\/www.xx.com\/favicon.ico&#039;) \nfavicon = response.content.encode(&#039;base64&#039;) \nhash = mmh3.hash(favicon) \nprint &#039;http.favicon.hash:&#039;+str(hash)<\/code><\/pre>\n<h4>\u7a7a\u95f4\u7f51\u7edc\u5f15\u64ce\u641c\u7d22<\/h4>\n<p>\u5e38\u89c1\u7684\u6709\u4ee5\u524d\u7684\u949f\u9997\u4e4b\u773c\uff0c<a href=\"https:\/\/www.shodan.io\/\" target=\"_blank\"  rel=\"nofollow\" >shodan<\/a>\uff0c<a href=\"https:\/\/fofa.so\/\" target=\"_blank\"  rel=\"nofollow\" >fofa\u641c\u7d22<\/a>\u3002\u4ee5fofa\u4e3a\u4f8b\uff0c\u53ea\u9700\u8f93\u5165\uff1atitle:\u201c\u7f51\u7ad9\u7684title\u5173\u952e\u5b57\u201d\u6216\u8005body\uff1a\u201c\u7f51\u7ad9\u7684body\u7279\u5f81\u201d\u5c31\u53ef\u4ee5\u627e\u51fafofa\u6536\u5f55\u7684\u6709\u8fd9\u4e9b\u5173\u952e\u5b57\u7684ip\u57df\u540d\uff0c\u5f88\u591a\u65f6\u5019\u80fd\u83b7\u53d6\u7f51\u7ad9\u7684\u771f\u5b9eip<\/p>\n<h4>\u5229\u7528FOFA\u95f4\u63a5\u83b7\u53d6<\/h4>\n<p>FOFA\u9ad8\u7ea7\u4f1a\u5458\u53ef\u4ee5\u76f4\u63a5\u641c\u7d22icon\uff0c\u4f46\u662f\u4e00\u822c\u7528\u6237\u53ef\u4ee5\u76f4\u63a5\u641c\u7d22icon\uff0c\u5b83\u4f1a\u8fd4\u56deicon\u7684hash\u503c<br \/>\n<img decoding=\"async\" src=\"http:\/\/img.danielw.top\/1624432065_60d2ddc10ca3ade24de17.png!small\" alt=\"image\" \/><br \/>\n\u7136\u540e\u518d\u5229\u7528shodan\u7684\u8bed\u6cd5\uff1ahttp.favicon.hash:hash\u503c\uff0c\u5c31\u53ef\u4ee5\u8fdb\u884c\u641c\u7d22\u5566<br \/>\n<img decoding=\"async\" src=\"http:\/\/img.danielw.top\/1624432087_60d2ddd780e3da931434c.png!small\" alt=\"image\" \/><br \/>\n\u8fd9\u91cc\u63a8\u8350\u4e00\u4e2a\u811a\u672c\uff1a<\/p>\n<pre><code class=\"language-python\">#\u4f5c\u8005:dgz zhubayi\n#\u65f6\u95f4:2021-6-23\n#CSDN:https:\/\/blog.csdn.net\/AD_CSY\n#\u5fae\u4fe1\u516c\u4f17\u53f7:\u661f\u6cb3\u75af\u5ba2admin\n#\u5f00\u53d1\u73af\u5883\uff1apython3\nimport base64\nimport requests\nfrom bs4 import BeautifulSoup\nimport re\n\nparturl1 =&quot;https:\/\/www.fofa.so\/result?qbase64=&quot;\nparturl2 = (base64.b64encode(input(&quot;\u8bf7\u8f93\u5165favicon\u5730\u5740\uff1a&quot;).encode(&#039;utf-8&#039;))).decode(&#039;utf-8&#039;)\nresult = (requests.get(parturl1+parturl2)).text\nsoup = BeautifulSoup(result,&quot;html.parser&quot;)\nscripts = soup.select(&quot;script&quot;)\nindex=str(scripts[3]).find(&#039;icon_hash=&#039;)\ntemp=str(scripts[3])[index:]\nicon_hash = str(re.findall(&quot;\\d+&quot;, temp))\nprint(&quot;shodan\u641c\u7d22\u8bed\u6cd5\u4e3a\uff1ahttp.favicon.hash:&quot;+icon_hash[2:-2])<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u9a8c\u8bc1\u662f\u5426\u5b58\u5728CDN \u591a\u5904ping \u5f88\u7b80\u5355\uff0c\u4f7f\u7528\u5404\u79cd\u591a\u5730 ping \u7684\u670d\u52a1\uff0c\u67e5\u770b\u5bf9\u5e94 IP \u5730\u5740\u662f\u5426\u552f\u4e00\uff0c\u5982\u679c\u4e0d\u552f\u4e00\u591a\u534a\u662f\u4f7f\u7528\u4e86CD &#8230;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-234","post","type-post","status-publish","format-standard","hentry","category-3"],"_links":{"self":[{"href":"http:\/\/danielw.top\/index.php?rest_route=\/wp\/v2\/posts\/234","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/danielw.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/danielw.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/danielw.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/danielw.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=234"}],"version-history":[{"count":1,"href":"http:\/\/danielw.top\/index.php?rest_route=\/wp\/v2\/posts\/234\/revisions"}],"predecessor-version":[{"id":235,"href":"http:\/\/danielw.top\/index.php?rest_route=\/wp\/v2\/posts\/234\/revisions\/235"}],"wp:attachment":[{"href":"http:\/\/danielw.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/danielw.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=234"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/danielw.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}