{"id":60702,"date":"2025-04-26T10:41:13","date_gmt":"2025-04-26T02:41:13","guid":{"rendered":"https:\/\/fwq.ai\/blog\/60702\/"},"modified":"2025-04-26T10:41:13","modified_gmt":"2025-04-26T02:41:13","slug":"%e8%a7%a3%e5%86%b3zencartv1-39-%e5%90%8e%e5%8f%b0admin%e4%b8%8d%e8%83%bd%e7%99%bb%e5%bd%95%e7%9a%84%e5%8a%9e%e6%b3%95","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/60702\/","title":{"rendered":"\u89e3\u51b3zencartv1.39 \u540e\u53f0admin\u4e0d\u80fd\u767b\u5f55\u7684\u529e\u6cd5"},"content":{"rendered":"<p>zencart v1.39\u52a0\u5f3a\u4e86\u5b89\u5168\u6027\u63aa\u65bd\uff0c\u5982\u679c\u4e0d\u91cd\u547d\u540dadmin\u6587\u4ef6\u5939\uff0c\u5c31\u4e0d\u80fd\u767b\u5f55\u7f51\u7ad9\u7ba1\u7406\u5458\u540e\u53f0\u3002\u4ec5\u4ec5\u91cd\u547d\u540dadmin\u6587\u4ef6\u5939\uff0c\u4e5f\u662f\u4e0d\u80fd\u767b\u5f55\u7684\uff0c\u8fd8\u8981\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u505a\u76f8\u5e94\u7684\u6539\u52a8\u3002<\/p>\n<p>  &nbsp;   \u5047\u8bbe\u8981\u628a&#8221;admin&#8221;\u6539\u4e3a&#8221;master&#8221;\uff0c\u4e0b\u9762\u662f\u6574\u4e2a\u91cd\u547d\u540d\u6b65\u9aa4\uff1a   &nbsp;   1. \u5148\u628azen cart\u6839\u76ee\u5f55\u4e0b\u7684admin\u91cd\u547d\u540d\u4e3amaster\u3002Linux\u4e0b\u7684\u547d\u4ee4\u4e3a\uff1a   &nbsp;   1 mv admin master&nbsp;   &nbsp;   2. \u7f16\u8f91zen cart\/master\/includes\/configure.php\u914d\u7f6e\u6587\u4ef6\uff0c\u628a&#8221;\/admin\/&#8221;\u5168\u90e8\u66ff\u6362\u4e3a&#8221;\/master\/&#8221;\uff0c\u4e00\u5171\u6709\u4e09\u5904\u66ff\u6362\u3002\u9ed8\u8ba4configure.php\u662f\u53ea\u8bfb\u6587\u4ef6\uff0cLinux\u4e0b\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u547d\u4ee4\u4fee\u6539\u6587\u4ef6\u5c5e\u6027\uff1a   &nbsp;   1 chmod u+w configure.php #\u4f7f\u6587\u4ef6\u53ef\u5199&nbsp;   &nbsp;   2 chmod u-w configure.php #\u4f7f\u6587\u4ef6\u53ea\u8bfb&nbsp;   &nbsp;   &nbsp;   3. \u901a\u8fc7http:\/\/www.***\/master\/\u767b\u5f55\u7ba1\u7406\u5458\u540e\u53f0\u3002   &nbsp;   \u6700\u540e\uff0c\u5982\u679c\u89c9\u5f97\u8fd9\u6837\u592a\u9ebb\u70e6\uff0c\u6216\u8005\u662f\u5bf9admin\u6709\u7740\u7279\u6b8a\u7684\u611f\u60c5\uff0c\u5219\u53ef\u4ee5\u7f16\u8f91\u6587\u4ef6\uff1a   &nbsp;   1 zen cart\/admin\/includes\/init_includes\/init_admin_auth.php&nbsp;   &nbsp;   \u5728\u7b2c\u4e00\u6761PHP\u8bed\u53e5\u4e0b\u9762\uff0c\u52a0\u4e0a\u4e00\u4e2adefine\u5e38\u91cf\uff0c\u5982\u4e0b\uff1a   &nbsp;   1 if (!defined(&#8216;IS_ADMIN_FLAG&#8217;)) die(&#8216;Illegal Access&#8217;);&nbsp;   &nbsp;   2 # added by pcwl&nbsp;   &nbsp;   3 define(&#8216;ADMIN_BLOCK_WARNING_OVERRIDE&#8217;, true);&nbsp;   &nbsp;   &nbsp;   \u8fd9\u6837\u5c31\u53ef\u4ee5\u4e0d\u7528\u91cd\u547d\u540dadmin\uff0c\u800c\u76f4\u63a5\u901a\u8fc7https:\/\/www.ldhost.cn\/help\/admin\u6765\u8fdb\u5165\u540e\u53f0\u4e86 <\/p>\n","protected":false},"excerpt":{"rendered":"<p>zencart v1.39\u52a0\u5f3a\u4e86\u5b89\u5168\u6027\u63aa\u65bd\uff0c\u5982\u679c\u4e0d\u91cd\u547d\u540dadmin\u6587\u4ef6\u5939\uff0c\u5c31\u4e0d\u80fd\u767b\u5f55\u7f51\u7ad9\u7ba1\u7406\u5458\u540e\u53f0\u3002\u4ec5\u4ec5\u91cd\u547d\u540dadmin\u6587\u4ef6\u5939\uff0c\u4e5f\u662f\u4e0d\u80fd\u767b\u5f55\u7684\uff0c\u8fd8\u8981\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u505a\u76f8\u5e94\u7684\u6539\u52a8\u3002 &nbsp; \u5047\u8bbe\u8981\u628a&#8221;admin&#8221;\u6539\u4e3a&#8221;master&#8221;\uff0c\u4e0b\u9762\u662f\u6574\u4e2a\u91cd\u547d\u540d\u6b65\u9aa4\uff1a &nbsp; 1. \u5148\u628azen cart\u6839\u76ee\u5f55\u4e0b\u7684admin\u91cd\u547d\u540d\u4e3amaster\u3002Linux\u4e0b\u7684\u547d\u4ee4\u4e3a\uff1a &nbsp; 1 mv admin master&nbsp; &nbsp; 2. \u7f16\u8f91zen cart\/master\/includes\/configure.php\u914d\u7f6e\u6587\u4ef6\uff0c\u628a&#8221;\/admin\/&#8221;\u5168\u90e8\u66ff\u6362\u4e3a&#8221;\/master\/&#8221;\uff0c\u4e00\u5171\u6709\u4e09\u5904\u66ff\u6362\u3002\u9ed8\u8ba4configure.php\u662f\u53ea\u8bfb\u6587\u4ef6\uff0cLinux\u4e0b\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u547d\u4ee4\u4fee\u6539\u6587\u4ef6\u5c5e\u6027\uff1a &nbsp; 1 chmod u+w configure.php #\u4f7f\u6587\u4ef6\u53ef\u5199&nbsp; &nbsp; 2 chmod u-w configure.php #\u4f7f\u6587\u4ef6\u53ea\u8bfb&nbsp; &nbsp; &nbsp; 3. \u901a\u8fc7http:\/\/www.***\/master\/\u767b\u5f55\u7ba1\u7406\u5458\u540e\u53f0\u3002 &nbsp; \u6700\u540e\uff0c\u5982\u679c\u89c9\u5f97\u8fd9\u6837\u592a\u9ebb\u70e6\uff0c\u6216\u8005\u662f\u5bf9admin\u6709\u7740\u7279\u6b8a\u7684\u611f\u60c5\uff0c\u5219\u53ef\u4ee5\u7f16\u8f91\u6587\u4ef6\uff1a &nbsp; 1 zen cart\/admin\/includes\/init_includes\/init_admin_auth.php&nbsp; &nbsp; \u5728\u7b2c\u4e00\u6761PHP\u8bed\u53e5\u4e0b\u9762\uff0c\u52a0\u4e0a\u4e00\u4e2adefine\u5e38\u91cf\uff0c\u5982\u4e0b\uff1a &nbsp; 1 if (!defined(&#8216;IS_ADMIN_FLAG&#8217;)) die(&#8216;Illegal Access&#8217;);&nbsp; &nbsp; 2 # added by pcwl&nbsp; &nbsp; 3 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-60702","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=60702"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60702\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=60702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=60702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=60702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}