{"id":26789,"date":"2024-05-27T15:40:56","date_gmt":"2024-05-27T07:40:56","guid":{"rendered":"https:\/\/www.zhidianwl.net\/zhidianwl\/?p=26789"},"modified":"2024-05-27T15:40:56","modified_gmt":"2024-05-27T07:40:56","slug":"wordpress%e7%94%9f%e6%88%90winexe%e6%80%8e%e4%b9%88%e5%ae%9e%e7%8e%b0%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.zhidianwl.net\/zhidianwl\/2024\/05\/27\/wordpress%e7%94%9f%e6%88%90winexe%e6%80%8e%e4%b9%88%e5%ae%9e%e7%8e%b0%ef%bc%9f\/","title":{"rendered":"wordpress\u751f\u6210winexe\u600e\u4e48\u5b9e\u73b0\uff1f"},"content":{"rendered":"

WordPress\u662f\u4e00\u6b3e\u975e\u5e38\u6d41\u884c\u7684\u5f00\u6e90\u535a\u5ba2\u53d1\u5e03\u5e73\u53f0\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u4e30\u5bcc\u7684\u63d2\u4ef6\u548c\u4e3b\u9898\u5e93\uff0c\u53ef\u4ee5\u8ba9\u7528\u6237\u81ea\u7531\u5730\u6269\u5c55\u548c\u5b9a\u5236\u5176\u535a\u5ba2\u7f51\u7ad9\u3002\u5176\u4e2d\uff0cWinexe\u662f\u4e00\u6b3e\u53ef\u4ee5\u5c06Windows\u7684\u53ef\u6267\u884c\u7a0b\u5e8f\u6253\u5305\u6210WordPress\u63d2\u4ef6\u7684\u5de5\u5177\u3002\u5728\u672c\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecdWinexe\u7684\u539f\u7406\u548c\u8be6\u7ec6\u4f7f\u7528\u65b9\u6cd5\u3002<\/p>\n

\u4e00\u3001Winexe\u7684\u539f\u7406<\/p>\n

Winexe\u662f\u4e00\u6b3e\u57fa\u4e8ePHP\u7684WordPress\u63d2\u4ef6\uff0c\u5b83\u53ef\u4ee5\u5c06Windows\u7684\u53ef\u6267\u884c\u7a0b\u5e8f\u6253\u5305\u6210WordPress\u63d2\u4ef6\u3002\u5177\u4f53\u5b9e\u73b0\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n

1. Winexe\u5c06Windows\u53ef\u6267\u884c\u7a0b\u5e8f\u8f6c\u6362\u6210base64\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n

2. \u5728WordPress\u63d2\u4ef6\u4e2d\u521b\u5efa\u4e00\u4e2aPHP\u6587\u4ef6\uff0c\u5c06base64\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\u4f5c\u4e3a\u53d8\u91cf\u5d4c\u5165\u5230PHP\u4ee3\u7801\u4e2d\u3002<\/p>\n

3. \u5728\u63d2\u4ef6\u7684PHP\u6587\u4ef6\u4e2d\uff0c\u4f7f\u7528base64_decode()\u51fd\u6570\u5c06base64\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\u89e3\u7801\u6210\u539f\u59cb\u7684\u53ef\u6267\u884c\u7a0b\u5e8f\u3002<\/p>\n

4. \u5c06\u89e3\u7801\u540e\u7684\u53ef\u6267\u884c\u7a0b\u5e8f\u4fdd\u5b58\u5728\u670d\u52a1\u5668\u4e0a\uff0c\u5e76\u5728\u9700\u8981\u65f6\u6267\u884c\u3002<\/p>\n

\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0cWinexe\u5c06Windows\u7684\u53ef\u6267\u884c\u7a0b\u5e8f\u8f6c\u6362\u6210\u4e86WordPress\u63d2\u4ef6\uff0c\u5e76\u53ef\u4ee5\u5728WordPress\u4e2d\u76f4\u63a5\u8c03\u7528\u548c\u4f7f\u7528\u3002<\/p>\n

\u4e8c\u3001Winexe\u7684\u4f7f\u7528\u65b9\u6cd5<\/p>\n

\u4e0b\u9762\u6211\u4eec\u5c06\u4ecb\u7ecdWinexe\u7684\u8be6\u7ec6\u4f7f\u7528\u65b9\u6cd5\u3002<\/p>\n

1. \u4e0b\u8f7dWinexe<\/p>\n

Winexe\u53ef\u4ee5\u4eceGitHub\u4e0a\u4e0b\u8f7d\uff0c\u4e0b\u8f7d\u5730\u5740\u4e3ahttps:\/\/github.com\/rabitt\/winexe\u3002<\/p>\n

2. \u5b89\u88c5Winexe<\/p>\n

Winexe\u662f\u4e00\u4e2aWordPress\u63d2\u4ef6\uff0c\u56e0\u6b64\u9700\u8981\u5c06\u5176\u5b89\u88c5\u5230WordPress\u4e2d\u3002\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n

\uff081\uff09\u5c06\u4e0b\u8f7d\u7684Winexe\u6587\u4ef6\u5939\u89e3\u538b\u7f29\u5230WordPress\u7684wp-content\/plugins\u76ee\u5f55\u4e0b\u3002<\/p>\n

\uff082\uff09\u767b\u5f55WordPress\u540e\u53f0\uff0c\u8fdb\u5165\u63d2\u4ef6\u7ba1\u7406\u9875\u9762\uff0c\u627e\u5230Winexe\u63d2\u4ef6\u5e76\u6fc0\u6d3b\u3002<\/p>\n

3. \u6253\u5305Windows\u53ef\u6267\u884c\u7a0b\u5e8f<\/p>\n

\u5c06\u9700\u8981\u6253\u5305\u7684Windows\u53ef\u6267\u884c\u7a0b\u5e8f\u590d\u5236\u5230Winexe\u63d2\u4ef6\u7684\u76ee\u5f55\u4e0b\u3002<\/p>\n

\u6253\u5f00\u547d\u4ee4\u884c\u7a97\u53e3\uff0c\u8fdb\u5165Winexe\u63d2\u4ef6\u76ee\u5f55\uff0c\u5e76\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

“`<\/p>\n

php winexe.php<\/p>\n

“`<\/p>\n

\u6267\u884c\u6210\u529f\u540e\uff0c\u53ef\u6267\u884c\u7a0b\u5e8f\u5c06\u88ab\u8f6c\u6362\u4e3abase64\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\uff0c\u5e76\u4fdd\u5b58\u5728Winexe\u63d2\u4ef6\u76ee\u5f55\u4e0b\u7684winexe.txt\u6587\u4ef6\u4e2d\u3002<\/p>\n

4. \u521b\u5efaWordPress\u63d2\u4ef6<\/p>\n

\u5728WordPress\u63d2\u4ef6\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u76ee\u5f55\uff0c\u4f8b\u5982winexe-plugin\u3002<\/p>\n

\u5728\u8be5\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u65b0\u7684PHP\u6587\u4ef6\uff0c\u4f8b\u5982winexe-plugin.php\u3002<\/p>\n

\u5728winexe-plugin.php\u6587\u4ef6\u4e2d\uff0c\u5c06base64\u683c\u5f0f\u5730\u5740\u5728\u7ebf\u751f\u6210exe<\/a>\u7684\u5b57\u7b26\u4e32\u4f5c\u4e3a\u53d8\u91cf\u5d4c\u5165\u5230PHP\u4ee3\u7801\u4e2d\uff0c\u5177\u4f53\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n

“`php<\/p>\n<\/p>\n

$exe = base64_decode(‘\u5728winexe.txt\u6587\u4ef6\u4e2d\u627e\u5230\u7684base64\u5b57\u7b26\u4e32’);<\/p>\n

file_put_contents(‘C:\\path\\to\\executable.exe’, $exe);<\/p>\n

exec(‘C:\\path\\to\\executable.exe’);<\/p>\n

?><\/p>\n

“`<\/p>\n

\u5176\u4e2d\uff0c$exe\u53d8\u91cf\u4e3a\u89e3\u7801\u540e\u7684\u53ef\u6267\u884c\u7a0b\u5e8f\uff0cfile_put_contents()\u51fd\u6570\u5c06\u53ef\u6267\u884c\u7a0b\u5e8f\u4fdd\u5b58\u5728\u670d\u52a1\u5668\u4e0a\uff0cexec()\u51fd\u6570\u5c06\u6267\u884c\u53ef\u6267\u884c\u7a0b\u5e8f\u3002<\/p>\n

5. \u5b89\u88c5WordPress\u63d2\u4ef6<\/p>\n

\u5c06winegret\u5f15\u64ce\u6253\u5305exe<\/a>exe-plugin\u76ee\u5f55\u590d\u5236\u5230WordPress\u7684wp-content\/plugins\u76ee\u5f55\u4e0b\u3002<\/p>\n

\u767b\u5f55WordPress\u540e\u53f0\uff0c\u8fdb\u5165\u63d2\u4ef6\u7ba1\u7406\u9875\u9762\uff0c\u627e\u5230winexe-plugin\u63d2\u4ef6\u5e76\u6fc0\u6d3b\u3002<\/p>\n

6. \u4f7f\u7528Winexe\u63d2\u4ef6<\/p>\n

\u5728WordPress\u4e2d\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u9875\u9762\u6216\u6587\u7ae0\u3002<\/p>\n

\u5728\u7f16\u8f91\u5668\u4e2d\u63d2\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n

“`php<\/p>\n<\/p>\n

wp_winexe_exec(‘winexe-plugin.php’);<\/p>\n

?><\/p>\n

“`<\/p>\n

\u5176\u4e2d\uff0cwp_winexe_exec()\u51fd\u6570\u53ef\u4ee5\u6267\u884c\u6307\u5b9a\u7684Winexe\u63d2\u4ef6\u3002<\/p>\n

\u4fdd\u5b58\u9875\u9762\u6216\u6587\u7ae0\uff0c\u6253\u5f00\u8be5\u9875\u9762\u6216\u6587\u7ae0\uff0c\u5373\u53ef\u6267\u884cWinexe\u63d2\u4ef6\u4e2d\u7684\u53ef\u6267\u884c\u7a0b\u5e8f\u3002<\/p>\n

\u603b\u7ed3<\/p>\n

\u672c\u6587\u4ecb\u7ecd\u4e86Winexe\u7684\u539f\u7406\u548c\u8be6\u7ec6\u4f7f\u7528\u65b9\u6cd5\u3002Winexe\u53ef\u4ee5\u5c06Windows\u7684\u53ef\u6267\u884c\u7a0b\u5e8f\u6253\u5305\u6210WordPress\u63d2\u4ef6\uff0c\u5e76\u53ef\u4ee5\u5728W<\/p>\n

<\/figure>\n<\/p>\n

ordPress\u4e2d\u76f4\u63a5\u8c03\u7528\u548c\u4f7f\u7528\u3002Winexe\u4e3a\u7528\u6237\u63d0\u4f9b\u4e86\u4e00\u79cd\u65b9\u4fbf\u3001\u5feb\u6377\u7684\u65b9\u5f0f\uff0c\u5c06Windows\u5e94\u7528\u7a0b\u5e8f\u96c6\u6210\u5230WordPress\u7f51\u7ad9\u4e2d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

WordPress\u662f\u4e00\u6b3e\u975e\u5e38\u6d41\u884c\u7684\u5f00\u6e90\u535a\u5ba2\u53d1\u5e03\u5e73\u53f0\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u4e30\u5bcc\u7684\u63d2\u4ef6\u548c\u4e3b\u9898\u5e93\uff0c\u53ef\u4ee5\u8ba9\u7528\u6237\u81ea\u7531\u5730\u6269\u5c55\u548c\u5b9a\u5236\u5176\u535a\u5ba2\u7f51\u7ad9\u3002\u5176\u4e2d\uff0cWinexe\u662f\u4e00\u6b3e\u53ef\u4ee5\u5c06Windows\u7684\u53ef\u6267\u884c\u7a0b\u5e8f\u6253\u5305\u6210WordPre<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[14841,1053,581,10432,34],"topic":[],"class_list":["post-26789","post","type-post","status-publish","format-standard","hentry","category-zhuomianruanjian","tag-exe","tag-1053","tag-581","tag-10432","tag-34"],"_links":{"self":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/26789","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/comments?post=26789"}],"version-history":[{"count":1,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/26789\/revisions"}],"predecessor-version":[{"id":26846,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/26789\/revisions\/26846"}],"wp:attachment":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/media?parent=26789"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/categories?post=26789"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/tags?post=26789"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/topic?post=26789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}