{"id":306,"date":"2014-07-01T01:54:47","date_gmt":"2014-07-01T01:54:47","guid":{"rendered":"http:\/\/ixyzero.com\/blog\/?p=306"},"modified":"2014-07-01T01:54:47","modified_gmt":"2014-07-01T01:54:47","slug":"shodan%e6%90%9c%e7%b4%a2%e5%bc%95%e6%93%8e%e7%9a%84%e7%9b%b8%e5%85%b3%e5%ad%a6%e4%b9%a0%e8%b5%84%e6%96%99","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/306.html","title":{"rendered":"Shodan\u641c\u7d22\u5f15\u64ce\u7684\u76f8\u5173\u5b66\u4e60\u8d44\u6599"},"content":{"rendered":"<p style=\"color: #333333;\">\u539f\u6587\u5730\u5740\uff1a<a href=\"http:\/\/drops.wooyun.org\/tips\/2469\" target=\"_blank\">http:\/\/drops.wooyun.org\/tips\/2469<\/a><\/p>\n<p><a href=\"https:\/\/www.exploit-db.com\/docs\/33859.pdf\" target=\"_blank\">https:\/\/www.exploit-db.com\/docs\/33859.pdf<\/a><\/p>\n<h2 style=\"color: #333333;\">0x00 \u6982\u8981<\/h2>\n<p style=\"color: #333333;\">\u8fd9\u7bc7\u6587\u7ae0\u53ef\u4ee5\u4f5c\u4e3a\u6e17\u900f\u6d4b\u8bd5\u4eba\u5458\u548c\u5b89\u5168\u5de5\u4f5c\u8005\u8fd0\u7528Shodan\u641c\u7d22\u5f15\u64ce\u7684\u6307\u5357\uff0c\u540c\u65f6\u6709\u52a9\u4e8e\u7406\u89e3\u5176\u5de5\u4f5c\u539f\u7406\u548c\u8fbe\u5230\u5b89\u5168\u5ba1\u8ba1\u76ee\u7684\u3002\u6587\u7ae0\u4e5f\u5217\u4e3e\u51fa\u627e\u5230\u5927\u91cf\u6709\u98ce\u9669\u7684\u4e92\u8054\u7f51\u670d\u52a1\u53ca\u5176\u8bbe\u5907\u7684\u6b65\u9aa4\u548c\u65b9\u6cd5\u3002\u540c\u65f6\u4ecb\u7ecd\u4e86Shodan\u80fd\u7528\u521d\u7ea7\u7b5b\u9009\u8bed\u6cd5\u4ee5\u53caShodan\u548c\u5176\u4ed6\u5de5\u5177\u7684\u8054\u5408\u8fd0\u7528\u3002\u4e3b\u8981\u9002\u7528\u4e8e\u6e17\u900f\u6d4b\u8bd5\u7684\u6570\u636e\u6536\u96c6\u9636\u6bb5\u3002<\/p>\n<h2>0x01 \u4ecb\u7ecd<\/h2>\n<p style=\"color: #333333;\"><span style=\"color: #ff0000;\">Shoudan\u662f\u4e00\u4e2a\u7528\u4e8e\u5e2e\u52a9\u53d1\u73b0\u4e3b\u8981\u7684\u4e92\u8054\u7f51\u7cfb\u7edf\u6f0f\u6d1e\uff08\u5305\u62ec\u8def\u7531\u5668\uff0c\u4ea4\u6362\u673a\uff0c\u5de5\u63a7\u7cfb\u7edf\u7b49\uff09\u7684\u641c\u7d22\u5f15\u64ce\u3002<\/span>\u5b83\u5728\u5708\u5b50\u91cc\u5c31\u50cfgoogle\u4e00\u6837\u51fa\u540d\u3002<span style=\"color: #ff0000;\"><strong>\u5b83\u4e3b\u8981\u901a\u8fc7\u62e6\u622a\u4ece\u670d\u52a1\u5668\u5230\u5ba2\u6237\u7aef\u7684\u5143\u6570\u636e\u6765\u5de5\u4f5c<\/strong><\/span>\uff0c\u76ee\u524d\u63d0\u4f9b\u8d85\u8fc750\u4e2a\u7aef\u53e3\u7684\u76f8\u5173\u641c\u7d22\u3002<\/p>\n<h6 style=\"color: #333333;\">Shodan\u80fd\u627e\u5230\u7684\u8bbe\u5907\uff1a<\/h6>\n<ol>\n<ol>\n<li>\u670d\u52a1\u5668<\/li>\n<li>\u8def\u7531\u5668<\/li>\n<li>\u4ea4\u6362\u673a<\/li>\n<li>\u516c\u5171ip\u7684\u6253\u5370\u673a<\/li>\n<li>\u7f51\u7edc\u6444\u50cf\u5934<\/li>\n<li>\u52a0\u6cb9\u7ad9\u7684\u6cf5<\/li>\n<li>Voip\u7535\u8bdd\u548c\u6240\u6709\u6570\u636e\u91c7\u96c6\u76d1\u63a7\u7cfb\u7edf<\/li>\n<\/ol>\n<\/ol>\n<h6 style=\"color: #333333;\">Shodan\u80fd\u505a\u7684\uff1a<\/h6>\n<ol>\n<ol>\n<li>\u7528\u6237\u641c\u7d22\u5236\u5b9a\u7684\u9879\u76ee<\/li>\n<li>Shodan\u5bfb\u627e\u7aef\u53e3\u5e76\u62e6\u622a\u6570\u636e<\/li>\n<li>Shodan\u4e3a\u62e6\u622a\u7684\u6570\u636e\u8bbe\u7f6e\u7d22\u5f15<\/li>\n<li>\u663e\u793a\u7ed3\u679c<\/li>\n<\/ol>\n<\/ol>\n<h6 style=\"color: #333333;\">Shodan\u548cGoogle\u7684\u533a\u522b\uff1a<\/h6>\n<p style=\"color: #333333;\">Google\u7684\u722c\u866b\/\u8718\u86db\u6293\u53d6\u7f51\u9875\u6570\u636e\u5e76\u4e3a\u7f51\u9875\u5185\u5bb9\u521b\u5efa\u7d22\u5f15\uff0c\u7136\u540e\u6839\u636epage rank\u663e\u793a\u7ed3\u679c\u3002Shoudan\u4e3b\u8981\u5bfb\u627e\u7aef\u53e3\u5e76\u6293\u53d6\u62e6\u622a\u5230\u7684\u4fe1\u606f\uff0c\u7136\u540e\u4e3a\u5b83\u4eec\u5efa\u7acb\u7d22\u5f15\uff0c\u6700\u540e\u663e\u793a\u7ed3\u679c\u3002Shoudan\u5e76\u4e0d\u50cfGoogle\u90a3\u6837\u4e3a\u7f51\u9875\u5185\u5bb9\u5efa\u7acb\u7d22\u5f15\uff0c\u56e0\u6b64<span style=\"color: #ff0000;\">\u5b83\u662f\u4e00\u4e2a\u57fa\u4e8e\u62e6\u622a\u5668\u7684\u641c\u7d22\u5f15\u64ce<\/span>\u3002<\/p>\n<h2>0x02 \u57fa\u7840\u7528\u6cd5<\/h2>\n<p style=\"color: #333333;\">City\uff1a\u7528\u4e8e\u5bfb\u627e\u4f4d\u4e8e\u6307\u5b9a\u57ce\u5e02\u7684\u8bbe\u5907\u3002\u4f8b\uff1a<\/p>\n<p style=\"color: #333333;\"><code>iis city:New York<\/code><\/p>\n<p style=\"color: #333333;\">County\uff1a\u7528\u4e8e\u5bfb\u627e\u4f4d\u4e8e\u6307\u5b9a\u56fd\u5bb6\u7684\u8bbe\u5907\u3002\u4f8b\uff1a<\/p>\n<p style=\"color: #333333;\"><code>iis country: United States<\/code><\/p>\n<p style=\"color: #333333;\">Port\uff1a\u9650\u5b9a\u6307\u5b9a\u7684\u7aef\u53e3\u3002\u4f8b\uff1a<\/p>\n<p style=\"color: #333333;\"><code>https port:443<\/code><\/p>\n<p style=\"color: #333333;\">Os\uff1a\u7528\u4e8e\u5bfb\u627e\u7279\u5b9a\u7684\u64cd\u4f5c\u7cfb\u7edf\u3002\u4f8b\uff1a<\/p>\n<p style=\"color: #333333;\"><code>microsoft-iis os:\"windows 2003\"<\/code><\/p>\n<p style=\"color: #333333;\">Geo\uff1a\u6839\u636e\u7ecf\u7eac\u5ea6\u548c\u6307\u5b9a\u7684\u534a\u5f84\u6765\u8fd4\u56de\u7ed3\u679c\u3002\u53ea\u80fd\u67092\u4e2a\u62163\u4e2a\u53c2\u6570\uff0c\u7b2c\u4e09\u4e2a\u53c2\u6570\u662f\u534a\u5f84\uff0c\u9ed8\u8ba4\u6570\u503c\u4e4b5km\u3002\u4f8b\uff1a<\/p>\n<p style=\"color: #333333;\"><code>apache geo:42.9693,-74.1224<\/code><\/p>\n<p style=\"color: #333333;\">Net\uff1a\u7528\u4e8e\u5bfb\u627e\u6307\u5b9aip\u5730\u5740\u548c\u5b50\u7f51\u63a9\u7801\u7684\u8bbe\u5907\u3002\u4f8b\uff1a<\/p>\n<p style=\"color: #333333;\"><code>iis net:216.0.0.0\/16<\/code><\/p>\n<p style=\"color: #333333;\">Hostname\uff1a\u7528\u4e8e\u641c\u7d22\u5305\u542b\u6307\u5b9a\u57df\u540d\u7684\u4e3b\u673a\u3002\u4f8b\uff1a<\/p>\n<p style=\"color: #333333;\"><code>Akamai\u00a0\u00a0hostname:.com<\/code><\/p>\n<p style=\"color: #333333;\">After and Before: \u5e2e\u52a9\u627e\u5230\u6307\u5b9a\u65e5\u671f\u8303\u56f4\u7684\u8bbe\u5907\u3002\u683c\u5f0f\uff1add\/mm\/yyyy dd-mm-yy \u4f8b\uff1a<\/p>\n<p style=\"color: #333333;\"><code>apache before:1\/01\/2014<\/code><\/p>\n<p style=\"color: #333333;\"><code>nginx after:1\/01\/2014<\/code><\/p>\n<p style=\"color: #333333;\">\u6ce8\u610f\uff1a\u767b\u5f55\u540e\u5927\u591a\u6570\u53c2\u6570\u90fd\u80fd\u8fd0\u4f5c\u3002<\/p>\n<h2>0x03 Shodan\u548c\u5176\u4ed6\u5de5\u5177\u7684\u7ed3\u5408<\/h2>\n<h4>1.\u548cMaltego\u7684\u7ed3\u5408<\/h4>\n<p style=\"color: #333333;\">\u4e4b\u524d\u4f7f\u7528\u8fc7Maltego\u4f46\u6548\u679c\u4e00\u822c\uff0c\u53ef\u80fd\u548c\u56fd\u60c5\u6709\u5173\uff08\u8fd8\u6709\u53ef\u80fd\u5c31\u662fG\u00b7F\u00b7W\u7684\u539f\u56e0\uff09\uff0c\u6240\u4ee5\u5c31\u6ca1\u518d\u7ee7\u7eed\u4e86\uff0c\u800c\u4e14\u4e5f\u786e\u5b9e\u6bd4\u8f83\u5927\uff08\u88c5\u5728VPS\u4e0a\u7684\u8bdd\u53c8\u6709\u53ef\u80fd\u5403\u4e0d\u6d88\uff09\uff0c\u88c5\u914d\u8d77\u6765\u6bd4\u8f83\u9ebb\u70e6o(\u256f\u25a1\u2570)o<\/p>\n<h4>2.\u548cmetasploit\u7684\u7ed3\u5408<\/h4>\n<p style=\"color: #333333;\">\u7528\u6cd5\uff1a<\/p>\n<ol>\n<ol>\n<li>\u5728Kail\/Backtrack Box\u4e2d\u6253\u5f00Metasploit framework<\/li>\n<li>\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165show auxiliary<\/li>\n<li>\u4f7f\u7528 auxiliary\/gather\/Shodansearch \u6a21\u5757<\/li>\n<li>\u73b0\u5728\uff0c\u4f60\u53ef\u4ee5\u7528show options\u547d\u4ee4\u6765\u67e5\u770b\u6a21\u5757\u9700\u8981\u7684\u53c2\u6570<\/li>\n<li>\u6211\u4eec\u9700\u8981\u6307\u5b9aiis\u6765\u641c\u7d22iis\u670d\u52a1\u5668\uff0c\u8fd8\u9700\u8981\u767b\u9646Shodan\u8d26\u6237\u540e\u5f97\u5230\u7684API key\u3002\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u7528Run command \u6765\u6267\u884c\u547d\u4ee4\u3002<\/li>\n<\/ol>\n<\/ol>\n<p style=\"color: #333333;\">\u4e00\u822c\u6765\u8bf4 auxiliary\/gather\/Shodan_search\u6a21\u5757\u901a\u8fc7API\u5411\u6570\u636e\u5e93\u67e5\u8be2\u524d50\u4e2aip \u5730\u5740\u300250\u4e2aip\u5730\u5740\u7684\u9650\u5236\u53ef\u4ee5\u901a\u8fc7\u8d2d\u4e70\u65e0\u9650\u5236API key\u6765\u6269\u5927\u5230\u67e5\u8be210000\u4e2aip\u5730\u5740<\/p>\n<h2>0x04 Shodan\u7684\u7ec4\u4ef6<\/h2>\n<p style=\"color: #333333;\">1.Exploits\uff1aShodan Exploits \u80fd\u591f\u7528\u4e8e\u5728ExploitDB \u6216Metasploit\u5bfb\u627e\u9488\u5bf9\u4e0d\u540c\u7cfb\u7edf\u3001\u670d\u52a1\u5668\u3001\u5e73\u53f0\u3001\u5e94\u7528\u7684\u7684exploits\u3002<\/p>\n<p style=\"color: #333333;\">2.Maps\uff1a\u8fd9\u662f\u4e2a\u4ed8\u8d39\u529f\u80fd\uff0c\u6211\u4eec\u80fd\u5728\u5730\u56fe\u4e0a\u76f4\u89c2\u5730\u770b\u5230Shodan\u63d0\u4f9b\u7684\u7ed3\u679c\u3002\u63d0\u4f9b\u4e09\u79cd\u89c6\u56fe\uff1a\u536b\u661f\uff0c\u8857\u666f\uff08\u6d45\uff09\uff0c\u8857\u666f\uff08\u6df1\uff09\u3002\u53ef\u4ee5\u540c\u65f6\u5728\u5c4f\u5e55\u5c55\u793a\u8d85\u8fc71000\u4e2a\u7ed3\u679c\u3002<\/p>\n<p style=\"color: #333333;\">3.Scanhub\uff1aShodan Scanhubs\u53ef\u4ee5\u7528\u4e8e\u521b\u5efa\u964c\u751f\u7f51\u7edc\u7684\u641c\u7d22\uff0c\u5b83\u652f\u6301Nmap \u548c Masscan\u7c7b\u4f3c\u7684\u5de5\u5177\u3002\u8981\u4f7f\u7528Scanhub\uff0c\u6211\u4eec\u9996\u5148\u8981\u8bbe\u7f6e\u597d\u5de5\u5177\uff0c\u8f93\u51fa\u4e00\u4e2aXML\u683c\u5f0f\u7684\u6587\u4ef6\u5e76\u4e0a\u4f20\u5230Scanhub\u7684\u5e93\u91cc\u4ee5\u83b7\u5f97\u7ed3\u679c\u3002\u4e0d\u5e78\u7684\u662f\u8fd9\u4e5f\u662f\u4e00\u4e2a\u4ed8\u8d39\u529f\u80fd\u3002<\/p>\n<h2>0x05 \u4e00\u4e9b\u6d4b\u8bd5\u7684\u4f8b\u5b50<\/h2>\n<h4>1. Netgear\u8bbe\u5907<\/h4>\n<p><code>netgear port:80<\/code><\/p>\n<h4>2. \u7f51\u7edc\u6444\u50cf\u5934<\/h4>\n<p><code>Android Webcam Server-Authenticate<\/code><\/p>\n<h4>3. \u6bd4\u7279\u5e01\u670d\u52a1\u5668<\/h4>\n<p><code>port:8333<\/code><\/p>\n<h4>4. Ruby on Rails Vulnerable Server(CVE-2013-0156 and CVE-2013-0155)<\/h4>\n<p><code>Server:Thin -3.2.11 -3.1.10 -3.0 -2.3.15<\/code><\/p>\n<h4>5. Windfarms<\/h4>\n<p><code>Jetty 3.1.8 (Windows 2000 5.0 x86) \"200 OK\"<\/code><\/p>\n<h4>6. DNS \u670d\u52a1<\/h4>\n<p><code>port:5353<\/code><\/p>\n<h2>0x06 \u4e00\u4e9b\u53e6\u5916\u7684cheat sheet \u94fe\u63a5<\/h2>\n<ul>\n<li>http:\/\/www.Shodanhq.com\/?q=bitcoin-mining-proxy (Bitcoin proxy mining)<\/li>\n<li>http:\/\/www.Shodanhq.com\/search?q=port%3A11 (Systat)<\/li>\n<li>http:\/\/www.Shodanhq.com\/search?q=port%3A8089+splunkd (Splunk servers on tcp\/8089)<\/li>\n<li>http:\/\/www.Shodanhq.com\/search?q=port%3A17(Search for quote of the day)<\/li>\n<li>http:\/\/www.Shodanhq.com\/search?q=port%3A123(Ntp monlist)<\/li>\n<li>http:\/\/www.Shodanhq.com\/search?q=port%3A5632 (Vnc)<\/li>\n<li>http:\/\/www.Shodanhq.com\/search?q=port%3A1434 ((MS-SQL (1434))<\/li>\n<li>http:\/\/www.Shodanhq.com\/search?q=OpenSSL%2F1.0.1 (Servers running OpenSSL\/1.0.1)<\/li>\n<li>http:\/\/www.Shodanhq.com\/search?q=port%3A79 (Finger protocol)<\/li>\n<li>http:\/\/www.Shodanhq.com\/search?q=port%3A15 (Netstat)<\/li>\n<li>http:\/\/www.Shodanhq.com\/?q=telemetry+gateway (Telemetry gateway)<\/li>\n<li>http:\/\/www.Shodanhq.com\/?q=port:161+country:US+simatic (Simatic automation system o 161 running in US)<\/li>\n<\/ul>\n<p>\u4e4b\u524d\u7528\u8fc7Shodan\u641c\u7d22\u548c\u8def\u7531\u5668\u76f8\u5173\u7684\u6f0f\u6d1e\uff0c\u6548\u679c\u8fd8\u4e0d\u9519\u3002<\/p>\n<hr \/>\n<p>\u8fd8\u6709\u4e00\u4e2a\u4ece\u56ed\u957fMM\u90a3\u91cc\u5b66\u6765\u7684\u6280\u5de7{<a href=\"http:\/\/p2j.cn\/?p=1348\" target=\"_blank\">http:\/\/p2j.cn\/?p=1348<\/a>}\uff1a<\/p>\n<p>\u5728\u767b\u5f55\u72b6\u6001\u4e0b\uff0c\u5207\u6362\u5230Chrome\u63a7\u5236\u53f0\uff1a<\/p>\n<pre class=\"lang:js decode:true \">var url = \"http:\/\/www.shodanhq.com\/search?q=\u5173\u952e\u5b57&amp;page=\";\nfor(var i=1;i&lt;101;i++){\n    var request = null;\n    if (window.ActiveXObject) {\n        request = new ActiveXObject(\"Microsoft.XMLHTTP\");\n    }else {\n        request = new XMLHttpRequest();\n    }\n    request.open(\"GET\",url+i, false);\n    request.setRequestHeader('If-Modified-Since', '0');\n    request.send(null);\n    var str = request.responseText;\n    str = str.replace(\/r\/g,\"\");\n    str = str.replace(\/n\/g,\"\");\n    var urls = [];\n    str.replace(\/&lt;div class='ip'&gt;.*?&lt;a href=\".*?\"&gt;(.*?)&lt;\/a&gt;.*?&lt;\/div&gt;\/ig, function(a,b) {\n        urls.push(b);\n    });\n    console.info(urls.join('n'));\n}<\/pre>\n<p>\u4e3b\u8981\u662f\u4e3a\u4e86\u6279\u91cf\u83b7\u53d6URL\uff0c\u4f46\u662f\u5176\u5b9e\u5faa\u73af\u4e2d\u7684101\u6709\u4e9b\u591a\u4e86\uff0c\u9ed8\u8ba4\u4e5f\u5c31\u8fd4\u56de\u4e2a\u524d50\u7684\u7ed3\u679c\uff0c\u5982\u679c\u60f3\u8981\u66f4\u591a\u641c\u7d22\u7ed3\u679c\u7684\u8bdd\uff0c\u5c31\u9700\u8981money\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u6587\u5730\u5740\uff1ahttp:\/\/drops.wooyun.org\/tips\/2469 https:\/\/www.expl [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25,12],"tags":[145,146],"class_list":["post-306","post","type-post","status-publish","format-standard","hentry","category-security","category-tools","tag-search","tag-shodan"],"views":9473,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=306"}],"version-history":[{"count":0,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/306\/revisions"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}