{"id":293630,"date":"2022-05-20T06:02:30","date_gmt":"2022-05-19T22:02:30","guid":{"rendered":"https:\/\/www.idc.net\/help\/293630\/"},"modified":"2022-05-20T06:02:30","modified_gmt":"2022-05-19T22:02:30","slug":"hacking-team%e5%ae%89%e5%8d%93%e6%b5%8f%e8%a7%88%e5%99%a8%e6%94%bb%e5%87%bb%e8%bf%87%e7%a8%8b%e4%b8%ad%e7%9a%84%e6%bc%8f%e6%b4%9e%e5%88%86%e6%9e%90stage0","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/293630\/","title":{"rendered":"Hacking Team\u5b89\u5353\u6d4f\u89c8\u5668\u653b\u51fb\u8fc7\u7a0b\u4e2d\u7684\u6f0f\u6d1e\u5206\u6790Stage0"},"content":{"rendered":"<p><strong>\u4e00\u3001\u6f0f\u6d1e\u7b80\u4ecb<\/strong><\/p>\n<p>Hacking team\u4eca\u5e74\u7206\u51fa\u4e86\u9488\u5bf9android4.0.x-4.3.x android\u6d4f\u89c8\u5668\u7684\u6f0f\u6d1e\u653b\u51fb\u5229\u7528\u4ee3\u7801\u3002\u8be5\u6f0f\u6d1e\u653b\u51fb\u4ee3\u7801\uff0c\u901a\u8fc7\u8fde\u7eed\u5229\u7528\u591a\u4e2a\u6d4f\u89c8\u5668\u4e0e\u5185\u6838\u6f0f\u6d1e\uff0c\u5b8c\u6210\u901a\u8fc7javascript\u5411\u865a\u62df\u5185\u5b58\u5199\u6570\u636e\uff0c\u6267\u884c\u4ee3\u7801\uff0c\u63d0\u5347\u81f3root\u6743\u9650\uff0c\u5e76\u6700\u7ec8\u8fbe\u5230\u5411\u76ee\u6807\u624b\u673a\u4e2d\u690d\u5165\u6076\u610f\u7a0b\u5e8f\u7684\u76ee\u7684\u3002<\/p>\n<p>\u8be5\u5229\u7528\u8fc7\u7a0b\u5206\u4e3a5\u4e2a\u590d\u6742\u7684Stage\uff0c\u672c\u6587\u9996\u5148\u5206\u6790\u4e86\u7b2c1\u4e2aStage\uff0c\u5373Stage0\u3002 \u653b\u51fb\u4ee3\u7801\u7684Stage0\u9636\u6bb5\u901a\u8fc7\u4e00\u4e2a0Day\u5730\u5740\u6cc4\u9732\u6f0f\u6d1e\uff0c\u4e3a\u540e\u7eed\u6570\u636e\u586b\u5145\u64cd\u4f5c\u5b8c\u6210\u5b9a\u4f4d\u5730\u5740\u5b9a\u4f4d\u7684\u4efb\u52a1\u3002\u6b64\u6f0f\u6d1e\u4f4d\u4e8eandroid-src\\external\\libxslt\u6a21\u5757\u4e2d\u3002<\/p>\n<p><strong>\u4e8c\u3001\u6f0f\u6d1e\u8be6\u7ec6\u4fe1\u606f<\/strong><\/p>\n<p>\u6982\u8ff0<\/p>\n<p>Stage0\u5229\u7528\u76840Day\u6f0f\u6d1e\u539f\u7406\u5982\u4e0b\uff1a<\/p>\n<p>\u8be5\u6f0f\u6d1e\u5c5e\u4e8e\u672a\u7ecf\u6b63\u786e\u6027\u68c0\u67e5\uff0c\u5c31\u76f4\u63a5\u9519\u8bef\u5730\u8fdb\u884c\u5f3a\u5236\u7c7b\u578b\u8f6c\u6362\uff0c\u4ece\u800c\u5bfc\u81f4\u4e00\u4e2a\u7528\u4e8e\u5185\u5b58\u8bfb(\u5b9e\u9645\u7528\u4e8e\u5b57\u7b26\u4e32\u6bd4\u8f83)\u7684\u6307\u9488\u53ef\u4ee5\u88ab\u64cd\u63a7\u3002\u6f0f\u6d1e\u5229\u7528\u7684\u601d\u8def\u662f\uff1a\u901a\u8fc7\u5728JS\u5206\u914d\u7684\u5927\u7247\u5185\u5b58\u7a7a\u95f4\u4e2d\uff0c\u586b\u5145\u5b57\u7b26\u4e32\uff1ahttp:\/\/www\/w3.org\/1999\/XSL\/Transform\uff0c\u7a0b\u5e8f\u7684\u540e\u7eed\u903b\u8f91\u4f1a\u5c06\u8be5\u5b57\u7b26\u4e32\u4f1a\u4e0e\u90a3\u4e2a\u53ef\u63a7\u5185\u5b58\u6307\u9488\u6240\u6307\u5411\u7684\u5b57\u7b26\u4e32\u8fdb\u884c\u6bd4\u8f83\uff0c\u4e00\u65e6\u5b57\u7b26\u4e32\u5bf9\u6bd4\u4e0d\u6210\u529f\uff0c\u5219javascript\u7684\u4e00\u4e2a\u5bf9\u8c61\u4f1a\u8bb0\u5f55\u4e0b\u201cError\u201d,\u7531\u4e8e\u6307\u9488\u6240\u6307\u5411\u7684\u5730\u5740\u662f\u53ef\u63a7\u5236\u7684\uff0c\u4e00\u65e6\u53d1\u73b0 \u201cError\u201d\uff0c\u5c31\u91cd\u65b0\u8c03\u6574\u5730\u5740\uff0c\u76f4\u5230\u6ca1\u6709\u53d1\u751fError\uff0c\u8fd9\u6837\u5c31\u5f97\u5230\u4e86javascript\u5f00\u8f9f\u7684\u53ef\u63a7\u7a7a\u95f4\u7684\u5185\u5b58\u5730\u5740\u4fe1\u606f\u3002<\/p>\n<p>1. \u6570\u636e\u7ed3\u6784\u80cc\u666f<\/p>\n<p>\u56fe1\u5c55\u793a\u4e86hacking team\u6240\u4f7f\u7528\u7684\u89e6\u53d1\u6f0f\u6d1e\u4ee3\u7801\uff1a&nbsp;<\/p>\n<p> &nbsp; <\/p>\n<p style=\"text-align: center\">\u56fe1 \u6f0f\u6d1e\u89e6\u53d1\u4ee3\u7801\u4e0e\u5176\u5185\u5b58\u7ed3\u6784<\/p>\n<p>\u5728\u6d4f\u89c8\u5668\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528javascript\u5f15\u7528\u5982\u56fe1\u6240\u793a\u7684xsl\u6587\u4ef6\uff0c\u901a\u8fc7\u6b64\u6587\u4ef6\uff0c\u5373\u53ef\u5f15\u53d1stage0\u6240\u4f7f\u7528\u7684\u6f0f\u6d1e\u3002\u56fe1\u4e2d\u7684xsl\u8bed\u53e5\uff0c\u5728libxml2\u89e3\u6790\u540e\uff0c\u4f1a\u5f62\u6210\u5982\u56fe1\u4e2d\u53f3\u56fe\u6240\u793a\u7ed3\u6784\u3002\u5176\u4e2d\uff0cxsl\u63cf\u8ff0\u7684cdent\u8282\u70b9\uff0c\u5373\u4e3a\u89e6\u53d1\u6f0f\u6d1e\u7684ENTITY\u7c7b\u578b\u8282\u70b9\u3002<\/p>\n<p>\u6b64\u6f0f\u6d1e\u53d1\u751f\u5728\u6d4f\u89c8\u5668\u5f15\u64ce\u5bf9xsl\u6587\u4ef6\u7684\u89e3\u6790\u8fc7\u7a0b\u4e2d\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u5148\u7b80\u8ff0\u4e00\u4e0b\u56fe1\u4e2d\u4ee3\u7801\uff0c\u4e0e\u53f3\u56fe\u8282\u70b9\u7684\u5bf9\u5e94\u5173\u7cfb\u3002\u53f3\u56fe\u7684myDoc\u8282\u70b9\u4e3a\u865a\u7684\u6839\u8282\u70b9\uff0c\u5728\u5de6\u56fexsl\u63cf\u8ff0\u4e2d\u5e76\u6ca1\u6709\u5bf9\u5e94\u3002xsl\u63cf\u8ff0\u7684\u6700\u5916\u5c42adoc\u548cata\u8282\u70b9\uff0c\u540c\u4e3a\u6839\u8282\u70b9\u7684\u4e0b\u7684\u4e00\u7ea7\u5b50\u8282\u70b9\uff0c\u7531\u4e8eadoc\u662f\u7b2c\u4e00\u4e2a\u5b50\u8282\u70b9\uff0c\u88abmyDoc\u7684\u6570\u636e\u7ed3\u6784\u4e2d\u5f97children\u6307\u9488\u6307\u5411\uff0cata\u5219\u88abadoc\u7684next\u6307\u9488\u6307\u5411\u3002\u540c\u7406\uff0cx\u8282\u70b9\uff0ccdent\u8282\u70b9\u548cy\u8282\u70b9\uff0c\u540c\u4e3aadoc\u7684\u5b50\u8282\u70b9\u4e00\u7ea7\uff0c\u5f62\u6210\u5982\u4e0a\u56fe\u6240\u793a\u7ed3\u6784\u3002#p#<\/p>\n<p><strong>2. \u6f0f\u6d1e\u6210\u56e0<\/strong><\/p>\n<p>\u7a0b\u5e8f\u51fa\u73b0\u5f02\u5e38\u7684\u6839\u672c\u539f\u56e0\u662f\u7531\u4e8elibxslt\u5728\u5bf9\u56fe1\u4e2d\u7684cdent(xmlEntity\u7c7b\u578b)\u8282\u70b9\u8fdb\u884c\u64cd\u4f5c\u65f6\uff0c\u5e76\u672a\u5bf9\u6b64\u8282\u70b9\u7684\u7c7b\u578b\u8fdb\u884c\u6bd4\u8f83\uff0c\u5bfc\u81f4\u5bf9cdent\u8282\u70b9\u8fdb\u884c\u4e86\u4e0d\u6b63\u786e\u7684\u7c7b\u578b\u8f6c\u6362(\u8f6c\u6362\u4e3axmlNode\u7c7b\u578b)\uff0c\u5e76\u5bf9\u8f6c\u6362\u540e\u7684\u8282\u70b9\u8fdb\u884c\u4e86\u975e\u6cd5\u64cd\u4f5c\u3002libxslt(android\u6d4f\u89c8\u5668\u5728\u5bf9xsl\u8fdb\u884c\u89e3\u6790\u65f6\u6240\u4f7f\u7528\u7684\u6a21\u5757)\u5728\u5bf9xsl\u64cd\u4f5c\u7684\u8fc7\u7a0b\u4e2d\uff0c\u4f1a\u5bf9\u5927\u90e8\u5206\u8282\u70b9\u7684namespace\u8fdb\u884c\u6bd4\u8f83\uff0c\u5224\u65ad\u8282\u70b9\u662f\u5426\u4e3a\u4e00\u4e2a\u5408\u6cd5\u7684xsl\u8282\u70b9\u3002<\/p>\n<p>\u4f46\u5f53\u8282\u70b9\u7c7b\u578b\u4e3axmlEntity\u7c7b\u578b\u65f6\uff0c\u7531\u4e8exmlEntity\u6ca1\u6709ns(\u7528\u6765\u6bd4\u8f83namespace\u4fe1\u606f\u7684\u6570\u636e\u7ed3\u6784)\u5b57\u6bb5\uff0c\u6240\u4ee5\u4e0d\u5bf9xmlEntity\u7c7b\u578b\u8fdb\u884c\u6bd4\u8f83namespace\u64cd\u4f5c(xmlEntity\u7c7b\u578b\u3001xmlNode\u7c7b\u578b\u7684\u8be6\u7ec6\u4fe1\u606f\u8bf7\u770b\u56fe5)\u3002\u800clibxslt\u5728\u5224\u65ad\u8282\u70b9\u7c7b\u578b\u662f\u5426\u4e3axmlEntity\u65f6\uff0clibxslt\u7684\u5224\u65ad\u5e76\u4e0d\u5b8c\u5168\uff0c\u6700\u7ec8\u5bfc\u81f4xmlEntity\u53ef\u88ab\u8f6c\u6362\u4e3axmlNode\u8fdb\u884c\u64cd\u4f5c\u3002\u4ece\u800c\u5f15\u53d1\u7a0b\u5e8f\u5d29\u6e83\u3002&nbsp;<\/p>\n<p> &nbsp; <\/p>\n<p style=\"text-align: center\">\u56fe2 \u672a\u5bf9\u6240\u6709\u8282\u70b9\u7684\u7c7b\u578b\u8fdb\u884c\u5224\u65ad<\/p>\n<p>\u89e6\u53d1\u5d29\u6e83\u7684\u7b2c\u4e00\u6b65\uff0c\u662f\u7531\u4e8e\u5bf9\u8282\u70b9\u7c7b\u578b\u7684\u6bd4\u8f83\u4e0d\u5b8c\u5168\u5bfc\u81f4\u7684\u3002libxslt\u5728\u6210\u529f\u6784\u5efa\u8282\u70b9\u6811(\u5982\u56fe2\u4e2d\u53f3\u56fe)\u540e\uff0c\u4f1a\u5faa\u73af\u5bf9myDoc\u7684\u5b50\u8282\u70b9\u8fdb\u884cnamespace\u6bd4\u8f83\u64cd\u4f5c\uff0c\u56fe2\u4e2d\u5de6\u4fa7\u4ee3\u7801\uff0c\u662f\u5728\u5faa\u73af\u4e2d\u5f53\u5bf9\u5f53\u524d\u8282\u70b9\u7684\u6240\u6709\u64cd\u4f5c\u5b8c\u6210\u65f6\uff0c\u5c06\u5faa\u73af\u64cd\u4f5c\u4e2d\u7684\u8282\u70b9\u6307\u9488\u6307\u5411\u4e0b\u4e00\u4e2a\u9700\u8981\u64cd\u4f5c\u7684\u8282\u70b9\u7684\u4ee3\u7801\u3002\u6839\u636e\u56fe2\u4e2d\u7b2c4967\u884c\u7684\u4ee3\u7801\uff0c\u6211\u4eec\u53ef\u4ee5\u53d1\u73b0\uff0clibxslt\u662f\u5e0c\u671b\u5f53\u76ee\u6807\u8282\u70b9\u5b50\u8282\u70b9\u6216next\u8282\u70b9\u7684\u7c7b\u578b\u4e0d\u4e3axmlEntity\u7c7b\u578b\u65f6\uff0c\u5c06\u76ee\u6807\u8282\u70b9\u5b50\u8282\u70b9\u6216next\u8282\u70b9\u8d4b\u503c\u7ed9cur\u6307\u9488\uff0c\u518d\u7531cur\u6307\u9488\u8fdb\u5165\u4e0b\u4e00\u6b21\u5faa\u73af\u3002\u4f46\u662f\uff0clibxslt\u53ea\u5bf9cur\u6307\u9488\u7684\u7b2c\u4e00\u4e2a\u5b50\u8282\u70b9\u8fdb\u884c\u4e86\u6570\u636e\u7c7b\u578b\u7684\u6bd4\u8f83\u64cd\u4f5c\uff0c\u5e76\u6ca1\u6709\u5bf9cur\u6307\u9488\u7684next\u8282\u70b9\u8fdb\u884c\u6570\u636e\u7c7b\u578b\u7684\u6bd4\u8f83\u3002\u800c\u5728\u6211\u4eec\u6784\u5efa\u7684\u8282\u70b9\u7ed3\u6784\u4e2d\uff0ccdent(xmlEntity\u7c7b\u578b)\u8282\u70b9\uff0c\u6b63\u662f\u88abx\u7684next\u6307\u9488\u6307\u5411\u7684\uff0c\u5bfc\u81f4cdent\u8282\u70b9\u4e0d\u6b63\u786e\u7684\u8fdb\u5165\u4e86\u5faa\u73af\u3002&nbsp;<\/p>\n<p style=\"text-align: center\">\u56fe3 \u5bf9namespace\u8fdb\u884c\u6bd4\u8f83\u7684\u51fd\u6570<\/p>\n<p>\u89e6\u53d1\u5d29\u6e83\u7684\u7b2c\u4e8c\u6b65\uff0c\u662fxmlEntity\u8282\u70b9\u88ab\u8f6c\u6362\u4e3axmlNode\u8282\u70b9\u3002\u56fe3\u4e3a\u7b2c\u4e00\u6b65\u4e2d\u6240\u8bf4\u7684\u5faa\u73af\u7684\u5f00\u59cb\u4f4d\u7f6e(\u56fe3\u4ee3\u7801\u76844893\u884c)\uff0c\u6211\u4eec\u53ef\u4ee5\u6e05\u6670\u7684\u770b\u5230\u7b2c\u4e00\u6b65\u6240\u7528\u7684cur\u6307\u9488\u7684\u6570\u636e\u7c7b\u578b\u4e3axmlNode\u7c7b\u578b\u3002\u800c\u7b2c\u4e00\u6b65\u7684xmlEntity\u7c7b\u578b\u88ab\u8d4b\u503c\u7ed9\u4e86xmlNode\u7c7b\u578b\u7684\u6307\u9488\uff0c\u8fd9\u5c31\u5bfc\u81f4\u4e86\u7c7b\u578b\u8f6c\u6362\u7684\u9519\u8bef\u3002&nbsp;<\/p>\n<p> &nbsp; <\/p>\n<p style=\"text-align: center\">\u56fe4 IS_XSLT_ELEM\u5b8f\u7684\u5b9a\u4e49<\/p>\n<p>\u89e6\u53d1\u5d29\u6e83\u7684\u7b2c\u4e09\u6b65\uff0c\u662f\u5bf9\u4e0d\u6b63\u786e\u7684\u6570\u636e\u7c7b\u578b\u8fdb\u884c\u4e86\u975e\u6cd5\u64cd\u4f5c\u3002\u56fe4\u4e3a\u56fe3\u4e2dIS_XSLT_ELEM\u5b8f\u7684\u5c55\u5f00\u3002IS_XSLT_ELEM\u5b8f\u7684\u64cd\u4f5c\u662f\u6bd4\u8f83\u8282\u70b9\u7684namespace\uff0c\u5224\u65adxmlNode\u7ed3\u6784\u4f53\u4e2d\u7684ns\u5b57\u6bb5(\u6b64\u5b57\u6bb5\u6307\u5411\u4e00\u4e2axmlNs\u7684\u6570\u636e\u7c7b\u578b)\u4e2d\u7684href\u5b57\u6bb5\u6240\u6307\u5411\u7684\u5730\u5740\u662f\u5426\u5b58\u50a8\u4e86\u5b57\u7b26\u4e32\u201chttp:\/\/www.w3.org\/1999\/XSL\/Transform\u201d\u3002&nbsp;<\/p>\n<p> &nbsp; <\/p>\n<p style=\"text-align: center\">\u56fe5 \u76f8\u4e92\u8f6c\u6362\u7684\u4e24\u79cd\u6570\u636e\u7c7b\u578b<\/p>\n<p>\u5f53IS_XSLT_ELEM\u5b8f\u7684\u8f93\u5165\u53c2\u6570\u4e3a\u4e00\u4e2axmlEntity\u7c7b\u578b\u65f6\uff0c\u5b8f\u5c31\u4f1a\u5c06orig\u5b57\u7b26\u4e32\u5f53\u4f5cxmlNs\u7c7b\u578b\u7684\u6570\u636e\u7ed3\u6784\u6765\u64cd\u4f5c\u3002\u7531\u4e8e\u7a0b\u5e8f\u4e2d\u7684orig\u5b57\u7b26\u4e32\u5b58\u50a8\u7684\u662fxmlEntity\u8282\u70b9\u5185\u7684\u5b57\u7b26\u4e32\u4fe1\u606f\uff0c\u6240\u4ee5\u5728\u89e6\u53d1\u6f0f\u6d1e\u7684\u4ee3\u7801\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6b64\u5904\u5b58\u50a8\u7684\u5b57\u7b26\u4e32\u4e3a\uff1a<\/p>\n<p>'XX';<\/p>\n<p>toascii(addr); \/\/ ns-&gt;href<\/p>\n<p>toascii(addr); \/\/ ns-&gt;prefix<\/p>\n<p>'XXXX' \/\/ ns-&gt;_private<\/p>\n<p>'XXXX' \/\/ ns-&gt;context<\/p>\n<p>' xmlns:xsl=\\'http:\/\/www.w3.org\/1999\/XSL\/Transform\\' terminate=\\'yes\\'\/&gt;<\/p>\n<p>\u800c\u5728\u5b8f\u4e2d\uff0c\u4f1a\u628a\u8fd9\u4e32\u5b57\u7b26\u4e32\u5f53\u4f5cxmlNs\u7c7b\u578b\u6765\u64cd\u4f5c\u3002&nbsp;<\/p>\n<p> &nbsp; <\/p>\n<p style=\"text-align: center\">\u56fe6 xmlNs\u7684\u6570\u636e\u7ed3\u6784<\/p>\n<p>\u56e0\u6b64\u53ef\u4ee5\u901a\u8fc7\u6b64\u6f0f\u6d1e\u8fbe\u5230\u5730\u5740\u6cc4\u6f0f\u7684\u76ee\u7684\u3002\u53ef\u4ee5\u6ce8\u610f\u5230\uff0c\u5f53\u5b8f\u5c06\u5b57\u7b26\u4e32\u5f53\u4f5cxmlNs\u8282\u70b9\u6765\u5904\u7406\u65f6\uff0c\u4ee3\u7801\u4e2d\u8f6c\u6362\u4e3aascii\u7801\u7684addr\u5c31\u53ef\u4ee5\u88ab\u5f53\u4f5c\u6bd4\u8f83\u7684\u5b57\u7b26\u4e32\u6307\u9488(href)\u6765\u5904\u7406(\u8be6\u7ec6\u4fe1\u606f\u89c1\u56fe4)\u6240\u4ee5\u6211\u4eec\u53ef\u4ee5\u5c06\u4efb\u4f55\u53ef\u4ee5\u8f6c\u5316\u4e3aascii\u7801\u7684\u5730\u5740\u5199\u5165href\u6307\u9488\uff0c\u4ece\u800c\u8ba9\u8fd9\u4e9b\u6307\u9488\u6240\u6307\u5411\u7684\u5b57\u7b26\u4e32\u4e0e\u201chttp:\/\/www.w3.org\/1999\/XSL\/Transform\u201d\u8fdb\u884c\u6bd4\u8f83\u3002<\/p>\n<p>\u5982\u679c\u6bd4\u8f83\u7ed3\u679c\u4e3a\u771f\uff0c\u5219\u7ee7\u7eed\u540e\u7eed\u64cd\u4f5c\uff0c\u5426\u5219\uff0clibxslt\u5c06\u8fd4\u56de\u4e00\u4e2a\u53ef\u88abjavascript\u63a5\u6536\u7684error\u4fe1\u606f\u3002\u653b\u51fb\u8005\u901a\u8fc7\u63a5\u53d7\u7684error\u4fe1\u606f\uff0c\u5c31\u53ef\u5224\u5b9a\u8f93\u5165\u7684\u5730\u5740\u662f\u5426\u6709\u6307\u5b9a\u7684\u5b57\u7b26\u4e32\uff0c\u518d\u7ed3\u5408\u5927\u91cf\u7684\u6570\u636e\u586b\u5145\uff0c\u5c31\u53ef\u4ee5\u6253\u5230\u5730\u5740\u6cc4\u6f0f\u7684\u76ee\u7684\u3002(\u8be6\u89c1\u201c\u4e09\u3001\u5229\u7528\u65b9\u5f0f\u201d)#p#<\/p>\n<p><strong>3. \u8c03\u8bd5\u8fc7\u7a0b<\/strong><\/p>\n<p>\u8c03\u8bd5\u8fc7\u7a0b\u5728nexus 7+android4.3\u4e0a\u8fdb\u884c\u3002<\/p>\n<p>\u7531\u4e8e\u5728webkit\u89e3\u6790xsl\u6587\u4ef6\u65f6\uff0c\u5982\u679c\u6807\u7b7e\u4e3a&nbsp;<\/p>\n<p> &nbsp; <\/p>\n<p style=\"text-align: center\">\u56fe7 \u7a0b\u5e8f\u5728xmlParseEntityDecl\u505c\u4e0b\u65f6\u7684\u72b6\u6001<\/p>\n<p>myDoc\u8282\u70b9\uff1a0x400d9768\u6700\u7ec8\u7a0b\u5e8f\u5d29\u6e83\u65f6\uff0c\u8c03\u7528\u6808\u4e2d\u4f1a\u663e\u793a\u662f\u7531\u4e8e\u5904\u7406\u8fd9\u4e2a\u5bf9\u8c61\u800c\u5bfc\u81f4\u5d29\u6e83\u3002<\/p>\n<p>Input\uff1a0x59988c18\u901a\u8fc7\u67e5\u770binput\u4fe1\u606f\uff0c\u53ef\u77e5\u5bf9xsl\u5bf9\u8c61\u6240\u89e3\u6790\u5230\u90a3\u4e2a\u8282\u70b9\u3002<\/p>\n<p>\u67e5\u770binput\u4fe1\u606f\uff1a&nbsp;<\/p>\n<p> &nbsp; <\/p>\n<p style=\"text-align: center\">\u56fe8 Input\u4e2d\u7684\u4fe1\u606f&nbsp;<\/p>\n<p> &nbsp; <\/p>\n<p style=\"text-align: center\">\u56fe9 \u7a0b\u5e8f\u7684\u89e3\u6790\u72b6\u6001<\/p>\n<p>\u5982\u56fe9\u663e\u793a\uff0c\u6b63\u5728\u89e3\u6790!ENTITY\u8282\u70b9\u3002(base\u8868\u793a\u6240\u89e3\u6790\u7684\u5b57\u7b26\u4e32\uff0ccur\u8868\u793a\u5f53\u524d\u89e3\u6790\u5230\u7684\u4f4d\u7f6e\u3002)<\/p>\n<p>\u51fd\u6570entityDecl\u4f1a\u521b\u5efa\u5f15\u53d1\u9519\u8bef\u7684ENTITY\u5bf9\u8c61\uff1a&nbsp;<\/p>\n<p> &nbsp; <\/p>\n<p style=\"text-align: center\">\u56fe10 xmlEntity\u8282\u70b9\u7684\u521b\u5efa(\u6b64\u65f6\u8282\u70b9\u7684\u6570\u636e\u7c7b\u578b\u4e3axmlNode)<\/p>\n<p>\u5982\u56fe10\u4e2d\u6240\u793a\uff0c\u65b0\u751f\u6210\u7684next\u8282\u70b9\uff0c\u4e3a\u901a\u8fc7entityDecl\u51fd\u6570\u6240\u5f97\u5230\u7684entity\u8282\u70b9(type=0\u00d711\uff0c0\u00d711\u8868\u793a\u4e3aentity\u8282\u70b9\uff0c\u4e3a\u56fe2\u4e2dXML_ENTITY_DECL\u7684\u5b9e\u9645\u503c)\u3002\u6b64\u65f6\u6b64\u8282\u70b9\u7684compression\u5b57\u6bb5(\u5728xmlEntity\u4e2d\u6b64\u5b57\u6bb5\u4e3aorig\u5b57\u6bb5)\u4e3a0\u3002<\/p>\n<p>\u51fd\u6570xmlParseEntityValue\u4f1a\u5c06\u8282\u70b9\u4e2d\u7684\u5b57\u7b26\u4e32\u5b58\u50a8\u4e8eorig\u5b57\u7b26\u4e32\u6307\u9488\u4e2d\u3002&nbsp;<\/p>\n<p> &nbsp; <\/p>\n<p style=\"text-align: center\">\u56fe11 \u83b7\u53d6xmlEntity\u8282\u70b9\u4e2d\u7684\u5b57\u7b26\u4e32\u4fe1\u606f<\/p>\n<p>\u5982\u56fe11\u6240\u793a\uff0c\u7a0b\u5e8f\u5c06\u4ece!ENTITY\u8282\u70b9\u4e2d\u89e3\u6790\u51fa\u7684\u5b57\u7b26\u4e32\u4f20\u7ed9\u4e86orig\u3002(input\u4e2d\u7684cur(\u5f53\u524d\u503c)\u5df2\u5411\u540e\u79fb\u52a8\uff0c\u800c\u4e4b\u524d\u7684\u90e8\u5206\u5b58\u5165\u4e86orig\u4e2d)<\/p>\n<p>\u4e4b\u540e\uff0c\u51fd\u6570\u4f1a\u5c06orig\u8d4b\u503c\u7ed9xmlEntity\u5bf9\u8c61\u7684orig\u3002&nbsp;<\/p>\n<p> &nbsp; <\/p>\n<p style=\"text-align: center\">\u56fe12 \u5c06\u5b57\u7b26\u4e32\u5b58\u5165xmlEntity\u7684orig\u5b57\u6bb5\u4e2d<\/p>\n<p>\u51fd\u6570\u901a\u8fc7cur\u5bf9\u76ee\u6807xmlEntity\u8282\u70b9\u7684orig\u5b57\u6bb5\u8fdb\u884c\u8d4b\u503c\u3002&nbsp;<\/p>\n<p> &nbsp; <\/p>\n<p style=\"text-align: center\">\u56fe13 \u5c06\u4e4b\u524d\u51fa\u95ee\u9898\u7684\u8282\u70b9\u8f6c\u6362\u4e3axmlEntity\u7c7b\u578b<\/p>\n<p>\u5982\u56fe13\u6240\u793a\uff0c\u88ab\u8d4b\u503c\u7684cur\u6b63\u662f\u4e4b\u524d\u521b\u5efa\u7684xmlEntity\u8282\u70b9\u3002<\/p>\n<p>\u800c\u5f53\u7a0b\u5e8f\u8fd0\u884c\u5230cur-&gt;orig=orig\u65f6\uff0c\u76ee\u6807\u4f4d\u7f6e\u6307\u9488\u88ab\u91cd\u7f6e\uff1a&nbsp;<\/p>\n<p> &nbsp; <\/p>\n<p style=\"text-align: center\">\u56fe14 \u5b57\u7b26\u4e32\u7684\u4f20\u5165<\/p>\n<p>\u5982\u56fe14\u6240\u793a\uff0c\u6b64\u65f6\u7684compission\u5b57\u6bb5\u88ab\u7f6e\u4e3aorig\u6307\u9488\uff0c\u5b58\u50a8\u7740\u53ef\u63a7\u7684\u5bf9\u8c61\u3002\u800c\u5f53\u5bf9\u6b64\u8282\u70b9\u8fdb\u884cnamespace\u6bd4\u8f83\u65f6\uff0c\u8282\u70b9\u4f1a\u7c7b\u578b\u8f6c\u6362\u4e3axmlNode\u7c7b\u578b\uff0c\u800cxmlEntity-&gt;orig\u5b57\u7b26\u4e32\u5b57\u6bb5\u5219\u4f1a\u88ab\u5f53\u6210xmlNs\u7c7b\u578b\u6765\u89e3\u91ca\uff0c\u6700\u7ec8\u8fbe\u5230\u4efb\u610f\u5730\u5740\u6bd4\u8f83\u7684\u64cd\u4f5c\u3002&nbsp;<\/p>\n<p> &nbsp; <\/p>\n<p style=\"text-align: center\">\u56fe15 \u7a0b\u5e8f\u5d29\u6e83\u65f6\u7684\u72b6\u6001<\/p>\n<p>\u5982\u56fe15\u6240\u793a\uff0c\u7a0b\u5e8f\u6700\u7ec8\u5728\u5b57\u7b26\u4e32\u6bd4\u8f83\u65f6\u53d1\u751f\u6bb5\u9519\u8bef\uff0c\u6b64\u65f6\u7684\u6808\u4e2dxsltParseTemplateContext\u7684\u7b2c\u4e8c\u4e2a\u53c2\u6570\uff0c\u6b63\u662f\u4e3a\u6211\u4eec\u5728xmlParseEntityDecl\u505c\u4e0b\u65f6\uff0cmyDoc\u6240\u6307\u5411\u7684\u5730\u5740\u3002#p#<\/p>\n<p><strong>\u4e09\u3001\u5229\u7528\u65b9\u5f0f<\/strong><\/p>\n<p>1.\u5411\u5185\u5b58\u4e2d\u586b\u5145330\u9875\u7684\u5199\u6709namespace\u4fe1\u606f\u7684\u9875\u3002\u901a\u8fc7\u5927\u91cf\u7684\u6570\u636e\u586b\u5145\uff0c\u5728\u89e6\u53d1\u6f0f\u6d1e\u65f6\u5c31\u6709\u66f4\u5927\u7684\u53ef\u80fd\u5339\u914d\u6210\u529f\uff0c\u53ea\u6709\u5339\u914d\u6210\u529f\uff0c\u624d\u80fd\u8fdb\u4e00\u6b65\u7684\u5730\u5740\u6cc4\u6f0f\u3002\u5982\u679c\u89e6\u53d1\u6f0f\u6d1e\u65f6\u7684addr\u503c\u6307\u5411\u672a\u88ab\u5206\u914d\u7684\u9875\uff0c\u5219\u4f1a\u51fa\u73b0\u6bb5\u9519\u8bef\u5bfc\u81f4\u7a0b\u5e8f\u5d29\u6e83\u3002&nbsp;<\/p>\n<p> &nbsp; <\/p>\n<p style=\"text-align: center\">\u56fe16 \u5185\u5b58\u586b\u5145&nbsp;<\/p>\n<p> &nbsp; <\/p>\n<p style=\"text-align: center\">\u56fe17 \u586b\u5145namespace\u4fe1\u606f<\/p>\n<p>2.\u901a\u8fc7\u6f0f\u6d1e\uff0c\u53ef\u4ee5\u5728xsl\u5bf9\u8c61\u751f\u6210\u65f6\uff0c\u4fee\u6539href\u6307\u9488\u7684\u503c(\u8be6\u89c1\u56fe6)\uff0c\u5c06\u5730\u5740\u6539\u4e3a\u4e00\u4e2a\u5728\u586b\u5145\u8fc7\u7a0b\u4e2d\uff0c\u6709\u5f88\u5927\u51e0\u7387\u4f1a\u88ab\u586b\u5145\u5230\u7684\u5730\u5740\u3002&nbsp;<\/p>\n<p> &nbsp; <\/p>\n<p style=\"text-align: center\">\u56fe18 \u6f0f\u6d1e\u5229\u7528\u4ee3\u78011&nbsp;<\/p>\n<p> &nbsp; <\/p>\n<p style=\"text-align: center\">\u56fe19 \u6f0f\u6d1e\u5229\u7528\u4ee3\u78012<\/p>\n<p>3.\u51fd\u6570\u5185\u90e8\u4f1a\u81ea\u52a8\u5bf9xsl\u5bf9\u8c61\u7684namespace\u6307\u9488\u8fdb\u884c\u5339\u914d\uff0c\u4ee5\u786e\u5b9axsl\u5bf9\u8c61\u662f\u5426\u4e3a\u4e00\u4e2a\u5408\u6cd5\u7684xsl\u5143\u7d20\u3002\u5982\u679c\u4e3a\u975e\u6cd5\u5143\u7d20\uff0c\u5219\u4f1a\u88abjavascript\u6355\u83b7\u5230\u5f02\u5e38\u3002&nbsp;<\/p>\n<p> &nbsp; <\/p>\n<p style=\"text-align: center\">\u56fe20 javascript\u53ef\u83b7\u53d6\u7684\u5f02\u5e38\u72b6\u6001<\/p>\n<p>4.\u82e5\u8fdb\u5165if\uff0c\u5219\u5b57\u7b26\u4e32\u5339\u914d\u6210\u529f\uff0c\u4e4b\u540e\u8fdb\u5165\u4e8c\u5206\u6cd5\u67e5\u627e\u5177\u4f53\u9875\u7684\u8fc7\u7a0b\uff0caddr\u4e3a\u89e6\u53d1\u6f0f\u6d1e\u65f6\u6240\u5199\u5165\u7684\u5730\u5740\u3002\u82e5\u8fdb\u5165else\uff0c\u5c06\u731c\u6d4b\u7684\u5730\u5740addr\u8fdb\u884c\u53d8\u5316\uff0c\u518d\u6b21\u8fdb\u884c\u6bd4\u8f83\u8fc7\u7a0b(\u6b64\u51fd\u6570\u540d\u5373\u4e3afind_spray_addr\u8fdb\u5165else\u540e\uff0c\u5219\u4f1a\u8fed\u4ee3\u67e5\u627e\u5730\u5740)\u3002<\/p>\n<p>5.\u4e8c\u5206\u6cd5\u67e5\u627e\uff1a<\/p>\n<p>a.\u5c06\u586b\u5145\u7684330\u9875\u6570\u636e\u7684\u524d\u4e00\u534a(165\u9875)\u6570\u636e\u8fdb\u884c\u6e05\u7a7a\u3002<\/p>\n<p>b.\u518d\u6b21\u8c03\u7528\u6f0f\u6d1e\uff0c\u5224\u65ad\u662f\u5426\u53d1\u751f\u5f02\u5e38\uff0c\u82e5\u5f02\u5e38\uff0c\u5219addr\u6240\u6307\u5411\u7684\u5730\u5740\u5728\u524d\u4e00\u534a\u586b\u5145\u7684\u9875\u4e2d\u3002\u5426\u5219\uff0caddr\u6240\u6307\u5411\u7684\u5730\u5740\u5728\u540e\u4e00\u534a\u586b\u5145\u7684\u9875\u4e2d\u3002<\/p>\n<p>c.\u7ee7\u7eed\u5bf9\u524d\u4e00\u534a\u6216\u540e\u4e00\u534a\u8fdb\u884ca\u3001b\u4e24\u6b65\uff0c\u76f4\u5230\u4ec5\u5269\u4e00\u9875\u65f6\uff0c\u5219\u53ef\u5224\u5b9aaddr\u6307\u5411\u7684\u662f\u6b64\u9875\u4e2d\u7684\u5730\u5740\u3002&nbsp;<\/p>\n<p> &nbsp; <\/p>\n<p style=\"text-align: center\">\u56fe21 \u4e8c\u5206\u6cd5\u67e5\u627eaddr\u6240\u5728\u9875\u7684\u4ee3\u78011<\/p>\n<p>&nbsp;<\/p>\n<p> &nbsp; <\/p>\n<p style=\"text-align: center\">\u56fe22 \u4e8c\u5206\u6cd5\u67e5\u627eaddr\u6240\u5728\u9875\u7684\u4ee3\u78012<\/p>\n<p>6.\u901a\u8fc7\u83b7\u53d6\u9875\u4fe1\u606f\uff0c\u5373\u53ef\u5f97\u5230\u4e00\u4e2a\u6cc4\u9732\u7684\u5185\u5b58\u5730\u5740addr\u4ee5\u53ca\u5468\u56f44mb\u7684\u53ef\u63a7\u5185\u5b58\uff0c\u8fbe\u5230\u672c\u9636\u6bb5\u7684\u6f0f\u6d1e\u5229\u7528\u76ee\u7684\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u6f0f\u6d1e\u7b80\u4ecb Hacking team\u4eca\u5e74\u7206\u51fa\u4e86\u9488\u5bf9android4.0.x-4.3.x android\u6d4f\u89c8\u5668 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":293631,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[202645],"tags":[],"class_list":["post-293630","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-202645"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/293630","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=293630"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/293630\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media\/293631"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=293630"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=293630"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=293630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}