{"id":39841,"date":"2025-05-26T08:51:32","date_gmt":"2025-05-26T00:51:32","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/39841.html"},"modified":"2025-05-26T08:51:32","modified_gmt":"2025-05-26T00:51:32","slug":"%e3%80%9025%e8%af%a6%e7%bb%86%e7%89%88%e3%80%91%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%92%88%e5%af%b9%e6%96%87%e4%bb%b6%e7%9a%84%e8%a7%a3%e6%9e%90%e6%bc%8f%e6%b4%9e%e6%b1%87%e6%80%bb%ef%bc%8c%e4%bb%8e%e9%9b%b6","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/39841.html","title":{"rendered":"\u301025\u8be6\u7ec6\u7248\u3011\u670d\u52a1\u5668\u9488\u5bf9\u6587\u4ef6\u7684\u89e3\u6790\u6f0f\u6d1e\u6c47\u603b\uff0c\u4ece\u96f6\u57fa\u7840\u5230\u7cbe\u901a\uff0c\u6536\u85cf\u8fd9\u7bc7\u5c31\u591f\u4e86\uff01"},"content":{"rendered":"<h5>\u7b80\u4ecb<\/h5>\n<p>\u6587\u4ef6\u89e3\u6790\u6f0f\u6d1e,\u662f\u6307 Web \u5bb9\u5668&#xff08;Apache\u3001nginx\u3001iis \u7b49&#xff09;\u5728\u89e3\u6790\u6587\u4ef6\u65f6\u51fa\u73b0\u4e86\u6f0f\u6d1e,\u4ee5\u5176\u4ed6\u683c\u5f0f\u6267\u884c\u51fa\u811a\u672c\u683c\u5f0f\u7684\u6548\u679c\u3002\u4ece\u800c,\u9ed1\u5ba2\u53ef\u4ee5\u5229\u7528\u8be5\u6f0f\u6d1e\u5b9e\u73b0\u975e\u6cd5\u6587\u4ef6\u7684\u89e3\u6790\u3002<\/p>\n<p>\u603b\u7ed3\u4e00\u4e9b\u5e38\u89c1\u670d\u52a1\u5668&#xff08;WEB server&#xff09;\u7684\u89e3\u6790\u6f0f\u6d1e<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250526005126-6833bb0ee4214.jpg\" alt=\"\" \/><\/p>\n<h5>Apache\u89e3\u6790\u6f0f\u6d1e<\/h5>\n<h6>\u591a\u540e\u7f00<\/h6>\n<p>\u5728 Apache1.x&#xff0c;2.x \u4e2d Apache \u89e3\u6790\u6587\u4ef6\u7684\u89c4\u5219\u662f\u4ece\u53f3\u5230\u5de6\u5f00\u59cb\u5224\u65ad\u89e3\u6790, \u5982\u679c\u540e\u7f00\u540d\u4e3a\u4e0d\u53ef\u8bc6\u522b\u6587\u4ef6\u89e3\u6790, \u5c31\u518d\u5f80\u5de6\u5224\u65ad\u3002<\/p>\n<p>\u56e0\u6b64\u6211\u53ef\u4ee5\u4e0a\u4f20\u4e00\u4e2a test.php.qwea \u6587\u4ef6\u7ed5\u8fc7\u9a8c\u8bc1\u4e14\u670d\u52a1\u5668\u4f9d\u7136\u4f1a\u5c06\u5176\u89e3\u6790\u4e3a php\u3002Apache \u80fd\u591f\u8ba4\u8bc6\u7684\u6587\u4ef6\u5728 mime.types \u6587\u4ef6\u91cc:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250526005127-6833bb0f137cb.jpg\" alt=\"\" \/><\/p>\n<h6>\u4fee\u590d\u65b9\u6848&#xff1a;<\/h6>\n<p>\u540e\u7f00\u9a8c\u8bc1\u5c3d\u91cf\u4f7f\u7528\u767d\u540d\u5355\u7684\u65b9\u5f0f&#xff0c;\u8fd9\u6837\u5373\u4f7f\u4f7f\u7528\u4e0d\u5b58\u5728\u7684\u540e\u7f00\u540d&#xff0c;\u4e5f\u65e0\u6cd5\u7ed5\u8fc7\u3002<\/p>\n<h6>\u914d\u7f6e\u95ee\u9898\u5bfc\u81f4\u6f0f\u6d1e<\/h6>\n<p>1\u3001\u5982\u679c\u5728 Apache \u7684 conf \u91cc\u6709\u8fd9\u6837\u4e00\u884c\u914d\u7f6e AddHandler php5-script .php \u8fd9\u65f6\u53ea\u8981\u6587\u4ef6\u540d\u91cc\u5305\u542b .php \u5373\u4f7f\u6587\u4ef6\u540d\u662f test2.php.jpg \u4e5f\u4f1a\u4ee5 php \u6765\u6267\u884c\u3002<\/p>\n<p>2\u3001\u5982\u679c\u5728 Apache \u7684 conf \u91cc\u6709\u8fd9\u6837\u4e00\u884c\u914d\u7f6e AddType application\/x-httpd-php .jpg\u5373\u4f7f\u6269\u5c55\u540d\u662f jpg&#xff0c;\u4e00\u6837\u80fd\u4ee5 php \u65b9\u5f0f\u6267\u884c\u3002<\/p>\n<h6>\u4fee\u590d\u65b9\u6848<\/h6>\n<p>1\u3001apache \u914d\u7f6e\u6587\u4ef6&#xff0c;\u7981\u6b62 .php. \u8fd9\u6837\u7684\u6587\u4ef6\u6267\u884c&#xff0c;\u914d\u7f6e\u6587\u4ef6\u91cc\u9762\u52a0\u5165<\/p>\n<p>&lt;Files~\u201c.(php.|php3.)\u201d\\\\&gt;<br \/>\n      Order Allow,Deny<br \/>\n      Deny from all<br \/>\n&lt;\/Files\\\\&gt;<\/p>\n<p>2\u3001\u7528\u4f2a\u9759\u6001\u80fd\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898&#xff0c;\u91cd\u5199\u7c7b\u4f3c.php.*\u8fd9\u7c7b\u6587\u4ef6&#xff0c;\u6253\u5f00 apache \u7684 httpd.conf \u627e\u5230<\/p>\n<p>LoadModule rewrite_module modules\/mod_rewrite.so<\/p>\n<p>\u628a # \u53f7\u53bb\u6389&#xff0c;\u91cd\u542f apache, \u5728\u7f51\u7ad9\u6839\u76ee\u5f55\u4e0b\u5efa\u7acb .htaccess \u6587\u4ef6,\u4ee3\u7801\u5982\u4e0b:<\/p>\n<p>&lt;IfModulemod\\\\_rewrite.c\\\\&gt;<br \/>\nRewriteEngine On<br \/>\nRewriteRule .(php.|php3.) \/index.php<br \/>\nRewriteRule .(pHp.|pHp3.) \/index.php<br \/>\nRewriteRule .(phP.|phP3.) \/index.php<br \/>\nRewriteRule .(Php.|Php3.) \/index.php<br \/>\nRewriteRule .(PHp.|PHp3.) \/index.php<br \/>\nRewriteRule .(PhP.|PhP3.) \/index.php<br \/>\nRewriteRule .(pHP.|pHP3.) \/index.php<br \/>\nRewriteRule .(PHP.|PHP3.) \/index.php<br \/>\n&lt;\/IfModule\\\\&gt;<\/p>\n<h6>\u7f55\u89c1\u540e\u7f00<\/h6>\n<p>Apache \u914d\u7f6e\u6587\u4ef6\u4e2d\u4f1a\u6709.&#043;.ph(p[345]?|t|tml)\u6b64\u7c7b\u7684\u6b63\u5219\u8868\u8fbe\u5f0f&#xff0c;\u88ab\u5f53 php \u7a0b\u5e8f\u6267\u884c\u7684\u6587\u4ef6\u540d\u8981\u7b26\u5408\u6b63\u5219\u8868\u8fbe\u5f0f&#xff0c;\u5426\u5219\u5c31\u7b97 Apache \u628a\u67d0\u6587\u4ef6\u5f53 php \u7a0b\u5e8f&#xff0c;php \u81ea\u5df1\u4e0d\u8ba4\u5b83&#xff0c;\u4e5f\u662f\u65e0\u7528\u3002<\/p>\n<p>\u4e5f\u5c31\u662f\u8bf4php3&#xff0c;php4&#xff0c;php5&#xff0c;pht&#xff0c;phtml\u4e5f\u662f\u53ef\u4ee5\u88ab\u89e3\u6790\u7684\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250526005127-6833bb0f5c7ba.png\" alt=\"\" \/><\/p>\n<p>\u6211\u5728\u672c\u5730\u6d4b\u8bd5\u53ea\u6709php3\u53ef\u4ee5&#xff0c;\u5e94\u8be5\u662f\u914d\u7f6e\u6587\u4ef6\u7684\u95ee\u9898&#xff0c;\u4e0d\u8fc7\u6211\u5e76\u6ca1\u6709\u627e\u5230\u5bf9\u5e94\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<h6>.htaccess<\/h6>\n<p>\u4e00\u822c\u6765\u8bf4&#xff0c;\u914d\u7f6e\u6587\u4ef6\u7684\u4f5c\u7528\u8303\u56f4\u90fd\u662f\u5168\u5c40\u7684&#xff0c;\u4f46 Apache \u63d0\u4f9b\u4e86\u4e00\u79cd\u5f88\u65b9\u4fbf\u7684\u3001\u53ef\u4f5c\u7528\u4e8e\u5f53\u524d\u76ee\u5f55\u53ca\u5176\u5b50\u76ee\u5f55\u7684\u914d\u7f6e\u6587\u4ef6\u2014\u2014 .htaccess&#xff08;\u5206\u5e03\u5f0f\u914d\u7f6e\u6587\u4ef6&#xff09;<\/p>\n<p>\u8981\u60f3\u4f7f .htaccess \u6587\u4ef6\u751f\u6548&#xff0c;\u9700\u8981\u4e24\u4e2a\u6761\u4ef6:<\/p>\n<p>\u4e00\u662f\u5728 Apache \u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\u5199\u4e0a&#xff1a;<\/p>\n<p>AllowOverrideAll<\/p>\n<p>\u82e5\u8fd9\u6837\u5199\u5219 .htaccess \u4e0d\u4f1a\u751f\u6548&#xff1a;<\/p>\n<p>AllowOverrideNone<\/p>\n<p>\u4e8c\u662f Apache \u8981\u52a0\u8f7d mod_Rewrite \u6a21\u5757\u3002\u52a0\u8f7d\u8be5\u6a21\u5757&#xff0c;\u9700\u8981\u5728 Apache \u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\u5199\u4e0a&#xff1a;<\/p>\n<p>LoadModulerewrite\\\\_module\/usr\/lib\/apache2\/modules\/mod\\\\_rewrite.so<\/p>\n<p>\u82e5\u662f\u5728 Ubuntu \u4e2d&#xff0c;\u53ef\u80fd\u8fd8\u9700\u8981\u6267\u884c\u547d\u4ee4&#xff1a;<\/p>\n<p>sudoa2enmod rewrite<\/p>\n<p>\u914d\u7f6e\u5b8c\u540e\u9700\u8981\u91cd\u542f Apache\u3002<\/p>\n<p>.htaccess \u6587\u4ef6\u53ef\u4ee5\u914d\u7f6e\u5f88\u591a\u4e8b\u60c5&#xff0c;\u5982\u662f\u5426\u5f00\u542f\u7ad9\u70b9\u7684\u56fe\u7247\u7f13\u5b58\u3001\u81ea\u5b9a\u4e49\u9519\u8bef\u9875\u9762\u3001\u81ea\u5b9a\u4e49\u9ed8\u8ba4\u6587\u6863\u3001\u8bbe\u7f6e WWW \u57df\u540d\u91cd\u5b9a\u5411\u3001\u8bbe\u7f6e\u7f51\u9875\u91cd\u5b9a\u5411\u3001\u8bbe\u7f6e\u56fe\u7247\u9632\u76d7\u94fe\u548c\u8bbf\u95ee\u6743\u9650\u63a7\u5236\u3002\u4f46\u6211\u4eec\u8fd9\u91cc\u53ea\u5173\u5fc3 .htaccess \u6587\u4ef6\u7684\u4e00\u4e2a\u4f5c\u7528\u2014\u2014 MIME \u7c7b\u578b\u4fee\u6539\u3002<\/p>\n<p>\u5982\u5728 .htaccess \u6587\u4ef6\u4e2d\u5199\u5165&#xff1a;<\/p>\n<p>AddTypeapplication\/x\\\\-httpd\\\\-phpxxx<\/p>\n<p>\u5c31\u6210\u529f\u5730\u4f7f\u8be5 .htaccess \u6587\u4ef6\u6240\u5728\u76ee\u5f55\u53ca\u5176\u5b50\u76ee\u5f55\u4e2d\u7684\u540e\u7f00\u4e3a .xxx \u7684\u6587\u4ef6\u88ab Apache \u5f53\u505a php \u6587\u4ef6\u3002<\/p>\n<p>\u53e6\u4e00\u79cd\u5199\u6cd5\u662f&#xff1a;<\/p>\n<p>&lt;FilesMatch&#034;shell.jpg&#034;\\\\&gt;<br \/>\n SetHandlerapplication\/x\\\\-httpd\\\\-php<br \/>\n&lt;\/FilesMatch\\\\&gt;<\/p>\n<p>\u8be5\u8bed\u53e5\u4f1a\u8ba9 Apache \u628a shell.jpg \u6587\u4ef6\u5f53\u4f5c php \u6587\u4ef6\u6765\u89e3\u6790\u3002<\/p>\n<p>\u8fd9\u91cc\u62ff 2018 \u5dc5\u5cf0\u6781\u5ba2 CTF BabyWEB \u8fd9\u9053\u9898\u4e3e\u4f8b&#xff1a;<\/p>\n<p>\u524d\u9762\u7684\u8fc7\u7a0b\u4e0d\u518d\u7ec6\u8bf4&#xff0c;\u7f51\u4e0a\u6709\u8be6\u7ec6\u7684 WP &#xff0c;\u8fd9\u91cc\u4e3b\u8981\u8bb2\u5982\u4f55\u5229\u7528 .htaccess \u6587\u4ef6\u6210\u529f getshell\u3002<\/p>\n<p>\u767b\u9646\u540e\u53f0\u540e\u53d1\u73b0\u540e\u53f0\u529f\u80fd\u5341\u5206\u7b80\u5355&#xff0c;\u53ea\u6709\u4e2a\u4e0a\u4f20\u529f\u80fd\u53ef\u4ee5\u4f7f\u7528&#xff0c;\u4e0a\u4f20\u540e\u53ea\u6709\u63d0\u793a\u5bf9\u9519&#xff0c;\u5f97\u4e0d\u5230\u4e0a\u4f20\u8def\u5f84\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250526005127-6833bb0f70e9c.jpg\" alt=\"\" \/><\/p>\n<p>nmap \u626b\u63cf\u53d1\u73b0 3306 \u5f00\u653e<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250526005127-6833bb0fb98a8.jpg\" alt=\"\" \/><\/p>\n<p>\u7528 hydra \u7206\u7834 mysql \u83b7\u5f97\u5bc6\u7801&#xff1a;1q2w3e4r5t6y<\/p>\n<p>\u8fdc\u7a0b\u8fde\u63a5\u6570\u636e\u5e93&#xff0c;\u53d1\u73b0 backinfo \u8868&#xff0c;\u8fd9\u4e2a\u8868\u7684 type \u5b57\u6bb5\u662f\u7528\u6765\u9650\u5236\u4e0a\u4f20\u7684\u6587\u4ef6\u540e\u7f00\u7684\u3002<\/p>\n<p>\u5728 type \u91cc\u9762\u6dfb\u52a0 php php5 \u540e\u7f00\u90fd\u4e0d\u80fd\u6210\u529f\u4e0a\u4f20&#xff0c;\u4f46\u662f\u6dfb\u52a0 .htaccess \u53ef\u4ee5\u4e0a\u4f20 .htaccess \u6587\u4ef6\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250526005127-6833bb0fcdd30.jpg\" alt=\"\" \/><\/p>\n<p>\u6211\u4eec\u5148\u4e0a\u4f20\u4e00\u4e2a .htaccess \u6765\u63a7\u5236\u89e3\u6790&#xff0c;\u7136\u540e\u518d\u4e0a\u4f20\u6211\u4eec\u7684 shell<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250526005127-6833bb0fedf6f.png\" alt=\"\" \/><\/p>\n<p>\u5728\u767d\u540d\u5355\u4e2d\u52a0\u5165 webshell \u540e\u7f00&#xff0c;\u6211\u4eec\u518d\u4e0a\u4f20 .webshell \u540e\u7f00\u7684\u4e00\u53e5\u8bdd\u4fbf\u53ef\u4ee5\u6210\u529f getshell\u3002<\/p>\n<p>shell \u6587\u4ef6\u540d\u5730\u5740\u53ef\u4ee5\u4ece\u6570\u636e\u5e93\u4e2d\u8bfb\u53d6\u51fa\u6765<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250526005128-6833bb101930e.jpg\" alt=\"\" \/><\/p>\n<p>Getshell \u6210\u529f<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250526005128-6833bb102fcad.jpg\" alt=\"\" \/><\/p>\n<h5>Nginx \u89e3\u6790\u6f0f\u6d1e<\/h5>\n<h6>PHP CGI \u89e3\u6790\u6f0f\u6d1e<\/h6>\n<p>Fastcgi \u534f\u8bae\u5206\u6790 &amp;&amp; PHP-FPM \u672a\u6388\u6743\u8bbf\u95ee\u6f0f\u6d1e &amp;&amp; Exp \u7f16\u5199<\/p>\n<p>https:\/\/www.leavesongs.com\/PENETRATION\/fastcgi-and-php-fpm.html<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250526005128-6833bb105d076.jpg\" alt=\"\" \/><\/p>\n<p>\u5f53\u8bbf\u95ee xx.com\/phpinfo.jpg\/1.php \u8fd9\u4e2a URL \u65f6&#xff0c;$fastcgi_script_name \u4f1a\u88ab\u8bbe\u7f6e\u4e3aphpinfo.jpg\/1.php&#xff0c;\u7136\u540e\u6784\u9020\u6210 SCRIPT_FILENAME \u4f20\u9012\u7ed9 PHP CGI\u3002<\/p>\n<p>Nginx \u9ed8\u8ba4\u662f\u4ee5 CGI \u7684\u65b9\u5f0f\u652f\u6301 PHP \u89e3\u6790\u7684&#xff0c;\u666e\u904d\u7684\u505a\u6cd5\u662f\u5728 Nginx \u914d\u7f6e\u6587\u4ef6\u4e2d\u901a\u8fc7\u6b63\u5219\u5339\u914d\u8bbe\u7f6e SCRIPT_FILENAME\u3002<\/p>\n<p>\u5f53\u8bbf\u95ee xx.com\/phpinfo.jpg\/1.php \u8fd9\u4e2a URL \u65f6&#xff0c;$fastcgi_script_name \u4f1a\u88ab\u8bbe\u7f6e\u4e3aphpinfo.jpg\/1.php&#xff0c;\u7136\u540e\u6784\u9020\u6210 SCRIPT_FILENAME \u4f20\u9012\u7ed9 PHP CGI&#xff0c;\u4f46\u662f PHP \u4e3a\u4ec0\u4e48\u4f1a\u63a5\u53d7\u8fd9\u6837\u7684\u53c2\u6570&#xff0c;\u5e76\u5c06 phpinfo.jpg \u4f5c\u4e3a PHP \u6587\u4ef6\u89e3\u6790\u5462?<\/p>\n<p>\u8fd9\u5c31\u8981\u8bf4\u5230 fix_pathinfo \u8fd9\u4e2a\u9009\u9879\u4e86\u3002 \u5982\u679c\u5f00\u542f\u4e86\u8fd9\u4e2a\u9009\u9879&#xff0c;\u90a3\u4e48\u5c31\u4f1a\u89e6\u53d1\u5728 PHP \u4e2d\u7684\u5982\u4e0b\u903b\u8f91&#xff1a;<\/p>\n<p>PHP \u4f1a\u8ba4\u4e3a SCRIPT_FILENAME \u662f phpinfo.jpg&#xff0c;\u800c 1.php \u662f PATH_INFO&#xff0c;\u6240\u4ee5\u5c31\u4f1a\u5c06 phpinfo.jpg \u4f5c\u4e3a PHP \u6587\u4ef6\u6765\u89e3\u6790\u4e86<\/p>\n<p>www.xxxx.com\/UploadFiles\/image\/1.jpg\/1.php<\/p>\n<p>www.xxxx.com\/UploadFiles\/image\/1.jpg\/%20\\\\0.php<\/p>\n<p>\u53e6\u5916\u4e00\u79cd\u624b\u6cd5&#xff1a;\u4e0a\u4f20\u4e00\u4e2a\u540d\u5b57\u4e3a test.jpg&#xff0c;\u4ee5\u4e0b\u5185\u5bb9\u7684\u6587\u4ef6:<\/p>\n<p>&lt;?PHPfputs(fopen(&#039;shell.php&#039;,&#039;w&#039;),&#039;&lt;?php eval($\\\\_POST\\\\[cmd\\\\])?&gt;&#039;);?&gt;<\/p>\n<p>\u7136\u540e\u8bbf\u95ee test.jpg\/.php, \u5728\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u5c31\u4f1a\u751f\u6210\u4e00\u53e5\u8bdd\u6728\u9a6c shell.php<\/p>\n<p>\u8fd9\u4e2a\u89e3\u6790\u6f0f\u6d1e\u5176\u5b9e\u662f PHP CGI \u7684\u6f0f\u6d1e&#xff0c;\u5728 PHP \u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\u6709\u4e00\u4e2a\u5173\u952e\u7684\u9009\u9879 cgi.fix_pathinfo \u9ed8\u8ba4\u662f\u5f00\u542f\u7684&#xff0c;\u5f53 URL \u4e2d\u6709\u4e0d\u5b58\u5728\u7684\u6587\u4ef6&#xff0c;PHP \u5c31\u4f1a\u5411\u524d\u9012\u5f52\u89e3\u6790\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250526005128-6833bb107ae70.jpg\" alt=\"\" \/><\/p>\n<p>\u8fd9\u4e2a\u5f80\u524d\u9012\u5f52\u7684\u529f\u80fd\u539f\u672c\u662f\u60f3\u89e3\u51b3 \/info.php\/test \u8fd9\u79cd URL&#xff0c;\u80fd\u591f\u6b63\u786e\u89e3\u6790\u5230 info.php\u3002<\/p>\n<p>\u5728 Nginx \u914d\u7f6e fastcgi \u4f7f\u7528 php \u65f6&#xff0c;\u4f1a\u5b58\u5728\u6587\u4ef6\u7c7b\u578b\u89e3\u6790\u95ee\u9898\u3002\u5176\u5b9e\u53ef\u4ee5\u8bf4\u5b83\u4e0e Nginx \u672c\u8eab\u5173\u7cfb\u4e0d\u5927&#xff0c;Nginx \u53ea\u662f\u4f5c\u4e3a\u4e00\u4e2a\u4ee3\u7406\u628a\u8bf7\u6c42\u8f6c\u53d1\u7ed9 fastcgi Server&#xff0c;PHP \u5728\u540e\u7aef\u5904\u7406\u8fd9\u4e00\u5207\u3002\u56e0\u6b64\u5728\u5176\u4ed6 fastcgi \u73af\u5883\u4e0b&#xff0c;PHP \u4e5f\u5b58\u5728\u6b64\u95ee\u9898&#xff0c;\u53ea\u662f\u4f7f\u7528 Nginx \u4f5c\u4e3a Web Server \u65f6&#xff0c;\u4e00\u822c\u4f7f\u7528 fastcgi \u7684\u65b9\u5f0f\u8c03\u7528\u811a\u672c\u89e3\u91ca\u5668&#xff0c;\u8fd9\u79cd\u4f7f\u7528\u65b9\u5f0f\u6700\u4e3a\u5e38\u89c1\u3002<\/p>\n<h6>\u9632\u5fa1\u65b9\u6cd5<\/h6>\n<p>1&#xff09;\u4f7f\u7528 Apache\u3001IIS \u7b49\u6210\u719f\u4e45\u7ecf\u8003\u9a8c\u7684\u670d\u52a1\u5668\u8f6f\u4ef6&#xff0c;\u5728\u52a8\u6001\u8bed\u8a00\u7684\u652f\u6301\u4e0a&#xff0c;Nginx \u8fd8\u662f\u592a\u5e74\u7ecf\u4e86\u3002\u4f60\u5e94\u8be5\u4e5f\u5076\u5c14\u4f1a\u89c1\u5230\u6709\u4e9b\u7f51\u7ad9\u6302\u6389\u4e86\u663e\u793a\u4e2a nginx \u9519\u8bef\u51fa\u6765&#xff0c;\u5374\u6781\u5c11\u89c1\u7f51\u7ad9\u6302\u6389\u663e\u793a\u4e0d\u662f nginx \u7684(\u672a\u5907\u6848&#xff0c;\u8fc7\u671f\u6b20\u8d39 \u7b49\u7b49\u9664\u5916)\u3002<\/p>\n<p>2&#xff09;\u4e0a\u4f20\u76ee\u5f55\u3001\u9759\u6001\u8d44\u6e90&#xff08;CSS\/JS\/\u56fe\u7247\u7b49&#xff09;\u76ee\u5f55&#xff0c;\u90fd\u8bbe\u7f6e\u597d\u5c4f\u853d PHP \u6267\u884c\u6743\u9650\u3002\u4f8b\u5982\u4f7f\u7528 Apache \u670d\u52a1\u5668\u7684\u5728\u76f8\u5e94\u76ee\u5f55\u4e0b\u653e\u4e00\u4e2a .htaccess \u6587\u4ef6&#xff0c;\u91cc\u9762\u5199\u4e0a:<\/p>\n<p>&lt;FilesMatch&#034;(?i:\\\\\\\\.php)$&#034;\\\\&gt;<br \/>\n   Denyfromall<br \/>\n&lt;\/FilesMatch\\\\&gt;<\/p>\n<p>3&#xff09;\u53ef\u4ee5\u4e0d\u63d0\u4f9b\u539f\u56fe\u8bbf\u95ee&#xff0c;\u6240\u6709\u56fe\u7247\u8f93\u51fa\u65f6\u90fd\u7ecf\u8fc7\u7a0b\u5e8f\u5904\u7406&#xff0c;\u4e5f\u53ef\u4ee5\u5728\u4e0a\u4f20\u5b58\u50a8\u65f6\u5c31\u5904\u7406\u4e00\u904d\u6839\u672c\u4e0d\u4fdd\u5b58\u539f\u56fe&#xff1b;<\/p>\n<p>4&#xff09;\u56fe\u7247\u4f7f\u7528\u4e0d\u540c\u7684\u670d\u52a1\u5668&#xff0c;\u8fd9\u6837\u53ef\u4ee5\u4e0e\u4e1a\u52a1\u4ee3\u7801\u6570\u636e\u5b8c\u5168\u9694\u79bb&#xff0c;\u5373\u4f7f\u56fe\u7247\u670d\u52a1\u5668\u88ab\u9ed1\u4e86&#xff0c;\u4e5f\u4e0d\u4f1a\u6cc4\u6f0f\u591a\u5c11\u4fe1\u606f&#xff1b;<\/p>\n<li>cgi.fix_pathinfo&#061;0 \u614e\u7528&#xff0c;\u9664\u975e\u4f60\u5341\u5206\u786e\u5b9a\u8be5\u670d\u52a1\u5668\u4e0a\u7684\u6240\u6709\u9879\u76ee\u90fd\u4e0d\u4f1a\u56e0\u6b64\u800c\u65e0\u6cd5\u8fd0\u884c\u3002<\/li>\n<h6>\u7a7a\u5b57\u8282\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e<\/h6>\n<p>\u65e7\u7248\u672c&#xff08;0.5.&#xff0c;**0.6.&#xff0c;0.7&#xff0c;0.8&lt;&#061;0.7.65&lt;&#061;0.8.37&#xff09;\u3002\u901a\u8fc7\u5229\u7528\u6b64\u6f0f\u6d1e&#xff0c;\u653b\u51fb\u8005\u53ef\u4ee5\u5bfc\u81f4\u670d\u52a1\u5668\u4f7f\u7528 PHP \u7684 FastCGI \u4f5c\u4e3a PHP \u7684\u670d\u52a1\u5668\u4e0a\u6267\u884c\u4efb\u4f55\u516c\u5f00\u8bbf\u95ee\u7684\u6587\u4ef6\u3002<\/p>\n<p>\u6076\u610f\u7528\u6237\u53d1\u51fa\u8bf7\u6c42http:\/\/example.com\/file.ext&#xff05;00.php\u5c31\u4f1a\u5c06 file.ext \u4f5c\u4e3a PHP \u6587\u4ef6\u89e3\u6790\u3002<\/p>\n<p>\u5982\u679c\u4e00\u4e2a\u653b\u51fb\u8005\u53ef\u4ee5\u63a7\u5236\u6587\u4ef6\u7684\u5185\u5bb9&#xff08;\u5373&#xff1a;\u4f7f\u7528\u5934\u50cf\u4e0a\u4f20\u5f62\u5f0f&#xff09;\u5176\u7ed3\u679c\u662f\u6267\u884c\u4efb\u610f\u4ee3\u7801\u3002Ngnix \u5728\u9047\u5230 %00 \u7a7a\u5b57\u8282\u65f6\u4e0e\u540e\u7aef FastCGI \u5904\u7406\u4e0d\u4e00\u81f4&#xff0c;\u5bfc\u81f4\u53ef\u4ee5\u5728\u56fe\u7247\u4e2d\u5d4c\u5165 PHP \u4ee3\u7801\u7136\u540e\u901a\u8fc7\u8bbf\u95ee xxx.jpg%00.php \u6765\u6267\u884c\u5176\u4e2d\u7684\u4ee3\u7801\u3002<\/p>\n<h6>\u4fee\u590d<\/h6>\n<p>1\u3001\u7981\u6b62\u5728\u4e0a\u4f20\u6587\u4ef6\u76ee\u5f55\u4e0b\u6267\u884c php&#xff0c;\u5728 nginx \u865a\u62df\u673a\u914d\u7f6e\u6216\u8005 fcgi.conf \u914d\u7f6e\u52a0\u5982\u4e0b\u4ee3\u7801:<\/p>\n<p>if($request\\\\_filename~\\\\*(.\\\\*)\\\\\\\\.php) {<br \/>\n   set$php\\\\_url$1;<br \/>\n}<br \/>\nif(!-e$php\\\\_url.php) {<br \/>\n   return403;<br \/>\n}<\/p>\n<p>2\u3001\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u7684 nginx<\/p>\n<h5>IIS5.x-6.x \u89e3\u6790\u6f0f\u6d1e<\/h5>\n<p>\u4f7f\u7528 iis5.x-6.x \u7248\u672c\u7684\u670d\u52a1\u5668&#xff0c;\u5927\u591a\u4e3a windows server 2003&#xff0c;\u7f51\u7ad9\u6bd4\u8f83\u53e4\u8001&#xff0c;\u5f00\u53d1\u8bed\u8a00\u4e00\u822c\u4e3a asp&#xff1b;\u8be5\u89e3\u6790\u6f0f\u6d1e\u4e5f\u53ea\u80fd\u89e3\u6790 asp \u6587\u4ef6&#xff0c;\u800c\u4e0d\u80fd\u89e3\u6790 aspx \u6587\u4ef6\u3002<\/p>\n<h5>\u76ee\u5f55\u89e3\u6790(6.0)<\/h5>\n<p>\u5f62\u5f0f&#xff1a;<\/p>\n<p>www.xxx.com\/xx.asp\/xx.jpg<\/p>\n<p>\u539f\u7406:<\/p>\n<p>\u670d\u52a1\u5668\u9ed8\u8ba4\u4f1a\u628a .asp&#xff0c;.asa \u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u90fd\u89e3\u6790\u6210 asp \u6587\u4ef6<\/p>\n<h6>\u6587\u4ef6\u89e3\u6790&#xff08;6.0&#xff09;<\/h6>\n<p>\u5f62\u5f0f&#xff1a;<\/p>\n<p>www.xxx.com\/xx.asp;.jpg<\/p>\n<p>\u539f\u7406&#xff1a;<\/p>\n<p>\u670d\u52a1\u5668\u9ed8\u8ba4\u4e0d\u89e3\u6790;\u53f7\u540e\u9762\u7684\u5185\u5bb9&#xff0c;\u56e0\u6b64 xx.asp;.jpg \u4fbf\u88ab\u89e3\u6790\u6210 asp \u6587\u4ef6\u4e86\u3002<\/p>\n<h6>\u89e3\u6790\u6587\u4ef6\u7c7b\u578b<\/h6>\n<p>\u6709\u7684\u7f51\u7ad9\u5728\u4e0a\u4f20\u68c0\u6d4b\u4e2d\u4f1a\u7528&#034;\u9ed1\u540d\u5355&#034;\u65b9\u6cd5 ,\u4f46\u662f IIS6.0 \u9ed8\u8ba4\u7684\u53ef\u6267\u884c\u6587\u4ef6\u9664\u4e86 asp \u8fd8\u5305\u542b\u8fd9\u4e09\u79cd :<\/p>\n<p>\/test.asa<br \/>\n\/test.cer<br \/>\n\/test.cdx<\/p>\n<p>iis \u4e3a\u4ec0\u4e48\u4f1a\u628a asa&#xff0c;cdx&#xff0c;cer \u89e3\u6790\u6210 asp \u6587\u4ef6?<\/p>\n<p>\u539f\u56e0\u662f\u8fd9\u56db\u79cd\u6269\u5c55\u540d\u90fd\u662f\u7528\u7684\u540c\u4e00\u4e2a asp.dll \u6587\u4ef6\u6765\u6267\u884c\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250526005128-6833bb10a93ee.jpg\" alt=\"\" \/><\/p>\n<h6>\u4fee\u590d<\/h6>\n<p>1\u3001\u76ee\u524d\u5c1a\u65e0\u5fae\u8f6f\u5b98\u65b9\u7684\u8865\u4e01&#xff0c;\u53ef\u4ee5\u901a\u8fc7\u81ea\u5df1\u7f16\u5199\u6b63\u5219&#xff0c;\u963b\u6b62\u4e0a\u4f20xx.asp;.jpg\u7c7b\u578b\u7684\u6587\u4ef6\u540d\u3002<\/p>\n<p>2\u3001\u505a\u597d\u6743\u9650\u8bbe\u7f6e&#xff0c;\u9650\u5236\u7528\u6237\u521b\u5efa\u6587\u4ef6\u5939\u3002<\/p>\n<h5>IIS7.5\u89e3\u6790\u6f0f\u6d1e<\/h5>\n<p>IIS7.5 \u7684\u6f0f\u6d1e\u4e0e nginx \u7684\u7c7b\u4f3c&#xff0c;\u90fd\u662f\u7531\u4e8e php \u914d\u7f6e\u6587\u4ef6\u4e2d&#xff0c;\u5f00\u542f\u4e86 cgi.fix_pathinfo&#xff0c;\u800c\u8fd9\u5e76\u4e0d\u662f nginx \u6216\u8005 iis7.5 \u672c\u8eab\u7684\u6f0f\u6d1e\u3002<\/p>\n<p>\u8ddf nginx \u89e3\u6790\u6f0f\u6d1e\u4e00\u6837&#xff0c;\u8981\u5728 php.ini &#061;&gt; cgi.fix_pathinfo&#061;1 \u5f00\u542f\u7684\u60c5\u51b5\u624d\u4f1a\u4ea7\u751f\u3002<\/p>\n<p>\u53ef\u4ee5\u914d\u5408\u64cd\u4f5c\u7cfb\u7edf\u6587\u4ef6\u547d\u540d\u89c4\u5219&#xff0c;\u4e0a\u4f20\u4e0d\u7b26\u5408 windows \u6587\u4ef6\u547d\u540d\u89c4\u5219\u7684\u6587\u4ef6\u540d<\/p>\n<p>test.asp.<br \/>\ntest.asp(\u7a7a\u683c)<br \/>\ntest.php:1.jpg<br \/>\ntest.php:: $DATA<\/p>\n<p>\u4f1a\u88ab windows \u7cfb\u7edf\u81ea\u52a8\u53bb\u6389\u4e0d\u7b26\u5408\u89c4\u5219\u7b26\u53f7\u540e\u9762\u7684\u5185&#xff0c;\u7136\u540e\u518d\u914d\u5408\u8fd9\u4e2a\u89e3\u6790\u6f0f\u6d1e\u6765\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<h5>%00\u622a\u65ad<\/h5>\n<p>\u6761\u4ef6&#xff1a;php \u7248\u672c &lt; 5.3.4<\/p>\n<p>filename&#061;test.php%00.txt<\/p>\n<p>1\u3001\u4e0a\u4f20\u65f6\u8def\u5f84\u53ef\u63a7&#xff0c;\u4f7f\u7528 00 \u622a\u65ad<\/p>\n<p>2\u3001\u6587\u4ef6\u4e0b\u8f7d\u65f6&#xff0c;00 \u622a\u65ad\u7ed5\u8fc7\u767d\u540d\u5355\u68c0\u67e5<\/p>\n<p>3\u3001\u6587\u4ef6\u5305\u542b\u65f6&#xff0c;00 \u622a\u65ad\u540e\u9762\u9650\u5236(\u4e3b\u8981\u662f\u672c\u5730\u5305\u542b\u65f6)<\/p>\n<p>4\u3001\u5176\u5b83\u4e0e\u6587\u4ef6\u64cd\u4f5c\u6709\u5173\u7684\u5730\u65b9\u90fd\u53ef\u80fd\u4f7f\u7528 00 \u622a\u65ad\u3002<\/p>\n<h5>\u5176\u4ed6<\/h5>\n<p>\u5728 windows \u73af\u5883\u4e0b&#xff0c;xx.jpg[\u7a7a\u683c] \u6216 xx.jpg. \u8fd9\u4e24\u7c7b\u6587\u4ef6\u90fd\u662f\u4e0d\u5141\u8bb8\u5b58\u5728\u7684&#xff0c;\u82e5\u8fd9\u6837\u547d\u540d&#xff0c;windows \u4f1a\u9ed8\u8ba4\u9664\u53bb\u7a7a\u683c\u6216\u70b9,\u9ed1\u5ba2\u53ef\u4ee5\u901a\u8fc7\u6293\u5305&#xff0c;\u5728\u6587\u4ef6\u540d\u540e\u52a0\u4e00\u4e2a\u7a7a\u683c\u6216\u8005\u70b9\u7ed5\u8fc7\u9ed1\u540d\u5355.\u82e5\u4e0a\u4f20\u6210\u529f&#xff0c;\u7a7a\u683c\u548c\u70b9\u90fd\u4f1a\u88ab windows \u81ea\u52a8\u6d88\u9664,\u8fd9\u6837\u4e5f\u53ef\u4ee5 getshell\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u914d\u5408\u6587\u4ef6\u89e3\u6790\u6f0f\u6d1e\u4ece\u800c\u4ea7\u751f\u66f4\u5927\u7684\u6740\u4f24\u529b\u3002<\/p>\n<p>&#096;\u9ed1\u5ba2&amp;\u7f51\u7edc\u5b89\u5168\u5982\u4f55\u5b66\u4e60<\/p>\n<p>\u4eca\u5929\u53ea\u8981\u4f60\u7ed9\u6211\u7684\u6587\u7ae0\u70b9\u8d5e&#xff0c;\u6211\u79c1\u85cf\u7684\u7f51\u5b89\u5b66\u4e60\u8d44\u6599\u4e00\u6837\u514d\u8d39\u5171\u4eab\u7ed9\u4f60\u4eec&#xff0c;\u6765\u770b\u770b\u6709\u54ea\u4e9b\u4e1c\u897f\u3002<\/p>\n<h6>1.\u5b66\u4e60\u8def\u7ebf\u56fe<\/h6>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250526005128-6833bb10c1733.png\" alt=\"\" \/><\/p>\n<p>\u653b\u51fb\u548c\u9632\u5b88\u8981\u5b66\u7684\u4e1c\u897f\u4e5f\u4e0d\u5c11&#xff0c;\u5177\u4f53\u8981\u5b66\u7684\u4e1c\u897f\u6211\u90fd\u5199\u5728\u4e86\u4e0a\u9762\u7684\u8def\u7ebf\u56fe&#xff0c;\u5982\u679c\u4f60\u80fd\u5b66\u5b8c\u5b83\u4eec&#xff0c;\u4f60\u53bb\u5c31\u4e1a\u548c\u63a5\u79c1\u6d3b\u5b8c\u5168\u6ca1\u6709\u95ee\u9898\u3002<\/p>\n<h6>2.\u89c6\u9891\u6559\u7a0b<\/h6>\n<p>\u7f51\u4e0a\u867d\u7136\u4e5f\u6709\u5f88\u591a\u7684\u5b66\u4e60\u8d44\u6e90&#xff0c;\u4f46\u57fa\u672c\u4e0a\u90fd\u6b8b\u7f3a\u4e0d\u5168\u7684&#xff0c;\u8fd9\u662f\u6211\u81ea\u5df1\u5f55\u7684\u7f51\u5b89\u89c6\u9891\u6559\u7a0b&#xff0c;\u4e0a\u9762\u8def\u7ebf\u56fe\u7684\u6bcf\u4e00\u4e2a\u77e5\u8bc6\u70b9&#xff0c;\u6211\u90fd\u6709\u914d\u5957\u7684\u89c6\u9891\u8bb2\u89e3\u3002<\/p>\n<p>\u5185\u5bb9\u6db5\u76d6\u4e86\u7f51\u7edc\u5b89\u5168\u6cd5\u5b66\u4e60\u3001\u7f51\u7edc\u5b89\u5168\u8fd0\u8425\u7b49\u4fdd\u6d4b\u8bc4\u3001\u6e17\u900f\u6d4b\u8bd5\u57fa\u7840\u3001\u6f0f\u6d1e\u8be6\u89e3\u3001\u8ba1\u7b97\u673a\u57fa\u7840\u77e5\u8bc6\u7b49&#xff0c;\u90fd\u662f\u7f51\u7edc\u5b89\u5168\u5165\u95e8\u5fc5\u77e5\u5fc5\u4f1a\u7684\u5b66\u4e60\u5185\u5bb9\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250526005129-6833bb114201b.jpg\" alt=\"\" \/><\/p>\n<p>&#xff08;\u90fd\u6253\u5305\u6210\u4e00\u5757\u7684\u4e86&#xff0c;\u4e0d\u80fd\u4e00\u4e00\u5c55\u5f00&#xff0c;\u603b\u5171300\u591a\u96c6&#xff09;<\/p>\n<p>\u56e0\u7bc7\u5e45\u6709\u9650&#xff0c;\u4ec5\u5c55\u793a\u90e8\u5206\u8d44\u6599&#xff0c;\u9700\u8981\u70b9\u51fb\u4e0b\u65b9\u94fe\u63a5\u5373\u53ef\u524d\u5f80\u83b7\u53d6<\/p>\n<p>\u3010\u70b9\u51fb\u8fd9\u91cc&#xff0c;\u5148\u9886\u8d44\u6599\u518d\u9605\u8bfb\u54e6~\u3011<\/p>\n<h6>3.\u6280\u672f\u6587\u6863\u548c\u7535\u5b50\u4e66<\/h6>\n<p>\u6280\u672f\u6587\u6863\u4e5f\u662f\u6211\u81ea\u5df1\u6574\u7406\u7684&#xff0c;\u5305\u62ec\u6211\u53c2\u52a0\u5927\u578b\u7f51\u5b89\u884c\u52a8\u3001CTF\u548c\u6316SRC\u6f0f\u6d1e\u7684\u7ecf\u9a8c\u548c\u6280\u672f\u8981\u70b9&#xff0c;\u7535\u5b50\u4e66\u4e5f\u6709200\u591a\u672c&#xff0c;\u7531\u4e8e\u5185\u5bb9\u7684\u654f\u611f\u6027&#xff0c;\u6211\u5c31\u4e0d\u4e00\u4e00\u5c55\u793a\u4e86\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250526005129-6833bb11a68c4.jpg\" alt=\"\" \/><\/p>\n<p>\u56e0\u7bc7\u5e45\u6709\u9650&#xff0c;\u4ec5\u5c55\u793a\u90e8\u5206\u8d44\u6599&#xff0c;\u9700\u8981\u70b9\u51fb\u4e0b\u65b9\u94fe\u63a5\u5373\u53ef\u524d\u5f80\u83b7\u53d6<\/p>\n<p>\u3010\u70b9\u51fb\u8fd9\u91cc&#xff0c;\u5148\u9886\u8d44\u6599\u518d\u9605\u8bfb\u54e6~\u3011<\/p>\n<h6>4.\u5de5\u5177\u5305\u3001\u9762\u8bd5\u9898\u548c\u6e90\u7801<\/h6>\n<p>\u201c\u5de5\u6b32\u5584\u5176\u4e8b\u5fc5\u5148\u5229\u5176\u5668\u201d\u6211\u4e3a\u5927\u5bb6\u603b\u7ed3\u51fa\u4e86\u6700\u53d7\u6b22\u8fce\u7684\u51e0\u5341\u6b3e\u6b3e\u9ed1\u5ba2\u5de5\u5177\u3002\u6d89\u53ca\u8303\u56f4\u4e3b\u8981\u96c6\u4e2d\u5728 \u4fe1\u606f\u6536\u96c6\u3001Android\u9ed1\u5ba2\u5de5\u5177\u3001\u81ea\u52a8\u5316\u5de5\u5177\u3001\u7f51\u7edc\u9493\u9c7c\u7b49&#xff0c;\u611f\u5174\u8da3\u7684\u540c\u5b66\u4e0d\u5bb9\u9519\u8fc7\u3002<\/p>\n<p>\u8fd8\u6709\u6211\u89c6\u9891\u91cc\u8bb2\u7684\u6848\u4f8b\u6e90\u7801\u548c\u5bf9\u5e94\u7684\u5de5\u5177\u5305&#xff0c;\u9700\u8981\u7684\u8bdd\u4e5f\u53ef\u4ee5\u62ff\u8d70\u3002<\/p>\n<p>\u56e0\u7bc7\u5e45\u6709\u9650&#xff0c;\u4ec5\u5c55\u793a\u90e8\u5206\u8d44\u6599&#xff0c;\u9700\u8981\u70b9\u51fb\u4e0b\u65b9\u94fe\u63a5\u5373\u53ef\u524d\u5f80\u83b7\u53d6<\/p>\n<p>\u3010\u70b9\u51fb\u8fd9\u91cc&#xff0c;\u5148\u9886\u8d44\u6599\u518d\u9605\u8bfb\u54e6~\u3011<\/p>\n<p>\u6700\u540e\u5c31\u662f\u6211\u8fd9\u51e0\u5e74\u6574\u7406\u7684\u7f51\u5b89\u65b9\u9762\u7684\u9762\u8bd5\u9898&#xff0c;\u5982\u679c\u4f60\u662f\u8981\u627e\u7f51\u5b89\u65b9\u9762\u7684\u5de5\u4f5c&#xff0c;\u5b83\u4eec\u7edd\u5bf9\u80fd\u5e2e\u4f60\u5927\u5fd9\u3002<\/p>\n<p>\u8fd9\u4e9b\u9898\u76ee\u90fd\u662f\u5927\u5bb6\u5728\u9762\u8bd5\u6df1\u4fe1\u670d\u3001\u5947\u5b89\u4fe1\u3001\u817e\u8baf\u6216\u8005\u5176\u5b83\u5927\u5382\u9762\u8bd5\u65f6\u7ecf\u5e38\u9047\u5230\u7684&#xff0c;\u5982\u679c\u5927\u5bb6\u6709\u597d\u7684\u9898\u76ee\u6216\u8005\u597d\u7684\u89c1\u89e3\u6b22\u8fce\u5206\u4eab\u3002<\/p>\n<p>\u53c2\u8003\u89e3\u6790&#xff1a;\u6df1\u4fe1\u670d\u5b98\u7f51\u3001\u5947\u5b89\u4fe1\u5b98\u7f51\u3001Freebuf\u3001csdn\u7b49<\/p>\n<p>\u5185\u5bb9\u7279\u70b9&#xff1a;\u6761\u7406\u6e05\u6670&#xff0c;\u542b\u56fe\u50cf\u5316\u8868\u793a\u66f4\u52a0\u6613\u61c2\u3002<\/p>\n<p>\u5185\u5bb9\u6982\u8981&#xff1a;\u5305\u62ec \u5185\u7f51\u3001\u64cd\u4f5c\u7cfb\u7edf\u3001\u534f\u8bae\u3001\u6e17\u900f\u6d4b\u8bd5\u3001\u5b89\u670d\u3001\u6f0f\u6d1e\u3001\u6ce8\u5165\u3001XSS\u3001CSRF\u3001SSRF\u3001\u6587\u4ef6\u4e0a\u4f20\u3001\u6587\u4ef6\u4e0b\u8f7d\u3001\u6587\u4ef6\u5305\u542b\u3001XXE\u3001\u903b\u8f91\u6f0f\u6d1e\u3001\u5de5\u5177\u3001SQLmap\u3001NMAP\u3001BP\u3001MSF\u2026<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250526005129-6833bb11de447.png\" alt=\"\" \/><\/p>\n<p>\u56e0\u7bc7\u5e45\u6709\u9650&#xff0c;\u4ec5\u5c55\u793a\u90e8\u5206\u8d44\u6599&#xff0c;\u9700\u8981\u70b9\u51fb\u4e0b\u65b9\u94fe\u63a5\u5373\u53ef\u524d\u5f80\u83b7\u53d6<\/p>\n<p>\u3010\u70b9\u51fb\u8fd9\u91cc&#xff0c;\u5148\u9886\u8d44\u6599\u518d\u9605\u8bfb\u54e6~\u3011<\/p>\n<h2>\u7279\u522b\u58f0\u660e&#xff1a;<\/h2>\n<p>\u6b64\u6559\u7a0b\u4e3a\u7eaf\u6280\u672f\u5206\u4eab&#xff01;\u672c\u4e66\u7684\u76ee\u7684\u51b3\u4e0d\u662f\u4e3a\u90a3\u4e9b\u6000\u6709\u4e0d\u826f\u52a8\u673a\u7684\u4eba\u63d0\u4f9b\u53ca\u6280\u672f\u652f\u6301&#xff01;\u4e5f\u4e0d\u627f\u62c5\u56e0\u4e3a\u6280\u672f\u88ab\u6ee5\u7528\u6240\u4ea7\u751f\u7684\u8fde\u5e26\u8d23\u4efb&#xff01;\u672c\u4e66\u7684\u76ee\u7684\u5728\u4e8e\u6700\u5927\u9650\u5ea6\u5730\u5524\u9192\u5927\u5bb6\u5bf9\u7f51\u7edc\u5b89\u5168\u7684\u91cd\u89c6&#xff0c;\u5e76\u91c7\u53d6\u76f8\u5e94\u7684\u5b89\u5168\u63aa\u65bd&#xff0c;\u4ece\u800c\u51cf\u5c11\u7531\u7f51\u7edc\u5b89\u5168\u800c\u5e26\u6765\u7684\u7ecf\u6d4e\u635f\u5931&#xff01;&#xff01;&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb880\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf19\u6b21\u3002\u603b\u7ed3\u4e00\u4e9b\u5e38\u89c1\u670d\u52a1\u5668\uff08WEB server\uff09\u7684\u89e3\u6790\u6f0f\u6d1e\u3002<\/p>\n","protected":false},"author":2,"featured_media":39825,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[275,61,43,78,44],"topic":[],"class_list":["post-39841","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-web","tag-61","tag-43","tag-78","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u301025\u8be6\u7ec6\u7248\u3011\u670d\u52a1\u5668\u9488\u5bf9\u6587\u4ef6\u7684\u89e3\u6790\u6f0f\u6d1e\u6c47\u603b\uff0c\u4ece\u96f6\u57fa\u7840\u5230\u7cbe\u901a\uff0c\u6536\u85cf\u8fd9\u7bc7\u5c31\u591f\u4e86\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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:\/\/www.wsisp.com\/helps\/39841.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u301025\u8be6\u7ec6\u7248\u3011\u670d\u52a1\u5668\u9488\u5bf9\u6587\u4ef6\u7684\u89e3\u6790\u6f0f\u6d1e\u6c47\u603b\uff0c\u4ece\u96f6\u57fa\u7840\u5230\u7cbe\u901a\uff0c\u6536\u85cf\u8fd9\u7bc7\u5c31\u591f\u4e86\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb880\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf19\u6b21\u3002\u603b\u7ed3\u4e00\u4e9b\u5e38\u89c1\u670d\u52a1\u5668\uff08WEB server\uff09\u7684\u89e3\u6790\u6f0f\u6d1e\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/39841.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-26T00:51:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250526005126-6833bb0ee4214.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/39841.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/39841.html\",\"name\":\"\u301025\u8be6\u7ec6\u7248\u3011\u670d\u52a1\u5668\u9488\u5bf9\u6587\u4ef6\u7684\u89e3\u6790\u6f0f\u6d1e\u6c47\u603b\uff0c\u4ece\u96f6\u57fa\u7840\u5230\u7cbe\u901a\uff0c\u6536\u85cf\u8fd9\u7bc7\u5c31\u591f\u4e86\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-26T00:51:32+00:00\",\"dateModified\":\"2025-05-26T00:51:32+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/39841.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/39841.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/39841.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u301025\u8be6\u7ec6\u7248\u3011\u670d\u52a1\u5668\u9488\u5bf9\u6587\u4ef6\u7684\u89e3\u6790\u6f0f\u6d1e\u6c47\u603b\uff0c\u4ece\u96f6\u57fa\u7840\u5230\u7cbe\u901a\uff0c\u6536\u85cf\u8fd9\u7bc7\u5c31\u591f\u4e86\uff01\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u301025\u8be6\u7ec6\u7248\u3011\u670d\u52a1\u5668\u9488\u5bf9\u6587\u4ef6\u7684\u89e3\u6790\u6f0f\u6d1e\u6c47\u603b\uff0c\u4ece\u96f6\u57fa\u7840\u5230\u7cbe\u901a\uff0c\u6536\u85cf\u8fd9\u7bc7\u5c31\u591f\u4e86\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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:\/\/www.wsisp.com\/helps\/39841.html","og_locale":"zh_CN","og_type":"article","og_title":"\u301025\u8be6\u7ec6\u7248\u3011\u670d\u52a1\u5668\u9488\u5bf9\u6587\u4ef6\u7684\u89e3\u6790\u6f0f\u6d1e\u6c47\u603b\uff0c\u4ece\u96f6\u57fa\u7840\u5230\u7cbe\u901a\uff0c\u6536\u85cf\u8fd9\u7bc7\u5c31\u591f\u4e86\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb880\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf19\u6b21\u3002\u603b\u7ed3\u4e00\u4e9b\u5e38\u89c1\u670d\u52a1\u5668\uff08WEB server\uff09\u7684\u89e3\u6790\u6f0f\u6d1e\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/39841.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-26T00:51:32+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250526005126-6833bb0ee4214.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/39841.html","url":"https:\/\/www.wsisp.com\/helps\/39841.html","name":"\u301025\u8be6\u7ec6\u7248\u3011\u670d\u52a1\u5668\u9488\u5bf9\u6587\u4ef6\u7684\u89e3\u6790\u6f0f\u6d1e\u6c47\u603b\uff0c\u4ece\u96f6\u57fa\u7840\u5230\u7cbe\u901a\uff0c\u6536\u85cf\u8fd9\u7bc7\u5c31\u591f\u4e86\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-26T00:51:32+00:00","dateModified":"2025-05-26T00:51:32+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/39841.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/39841.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/39841.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u301025\u8be6\u7ec6\u7248\u3011\u670d\u52a1\u5668\u9488\u5bf9\u6587\u4ef6\u7684\u89e3\u6790\u6f0f\u6d1e\u6c47\u603b\uff0c\u4ece\u96f6\u57fa\u7840\u5230\u7cbe\u901a\uff0c\u6536\u85cf\u8fd9\u7bc7\u5c31\u591f\u4e86\uff01"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/39841","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=39841"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/39841\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/39825"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=39841"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=39841"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=39841"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=39841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}