{"id":97,"date":"2026-11-06T13:58:47","date_gmt":"2026-11-06T05:58:47","guid":{"rendered":"http:\/\/pro369.com\/blog\/?p=97"},"modified":"2026-11-06T13:58:47","modified_gmt":"2026-11-06T05:58:47","slug":"wordpress-%e9%83%a8%e8%90%bd%e6%a0%bc%ef%bc%88%e4%bd%bf%e7%94%a8%e8%80%85%e5%af%86%e7%a2%bc%e7%ae%97%e6%b3%95%e8%a6%8f%e5%89%87%e8%a7%a3%e6%9e%90%ef%bc%89","status":"publish","type":"post","link":"https:\/\/por.tw\/blog\/2026\/11\/06\/wordpress-%e9%83%a8%e8%90%bd%e6%a0%bc%ef%bc%88%e4%bd%bf%e7%94%a8%e8%80%85%e5%af%86%e7%a2%bc%e7%ae%97%e6%b3%95%e8%a6%8f%e5%89%87%e8%a7%a3%e6%9e%90%ef%bc%89\/","title":{"rendered":"WordPress \u90e8\u843d\u683c\uff08\u4f7f\u7528\u8005\u5bc6\u78bc\u7b97\u6cd5\u898f\u5247\u89e3\u6790\uff09"},"content":{"rendered":"<p><strong><span style=\"font-size: small\"><br \/>WordPress\u7cfb\u7d71\u7684\u4f7f\u7528\u8005\u5bc6\u78bc\u662f\u5132\u5b58\u5728wp_users\u8cc7\u6599\u8868\u7684user_pass\u6b04\u4f4d\uff0c\u5bc6\u78bc\u662f\u901a\u904ePortable PHP password hashing framework\u985e\u7522\u751f\u7684<br \/>\u5bc6\u78bc\u7684\u5f62\u5f0f\u662f\u96a8\u6a5f\u4e14\u4e0d\u53ef\u9006\uff0c\u540c\u4e00\u500b\u660e\u6587\u7684\u5bc6\u78bc\u5728\u4e0d\u540c\u6642\u9593\uff0c\u7522\u751f\u7684\u5bc6\u6587\u4e5f\u4e0d\u4e00\u6a23\uff0c\u76f8\u5c0d\u4f86\u8aaa\u8f03\u70ba\u5b89\u5168\u3002<\/p>\n<p>WordPress\u4f7f\u7528\u8005\u5bc6\u78bc\u7522\u751f\u7684\u904e\u7a0b\u662f\uff0c\u7576\u9700\u8981\u751f\u6210\u4f7f\u7528\u8005\u5bc6\u78bc\u7684\u6642\u5019\uff0c\u96a8\u6a5f\u7522\u751f\u4e86\u4e00\u500bsalt<br \/>\u7136\u5f8c\u5c07salt\u548cpassword\u76f8\u52a0\uff0c\u53c8\u9032\u884c\u4e86count\u6b21md5\uff0c\u6700\u5f8c\u548cencode64\u7684hash\u6578\u503c\u7d2f\u52a0\uff0c\u5c31\u5f97\u5230\u4e86\u4e00\u500b\u4ee5$P$\u958b\u982d\u7684\u5bc6\u78bc<br \/>\u9019\u500b\u5bc6\u78bc\u6bcf\u6b21\u7522\u751f\u7684\u7d50\u679c\u90fd\u4e0d\u4e00\u6a23\uff0c\u4e0b\u9762\u5c31\u662f\u7522\u751fWordPress\u5bc6\u78bc\u7684\u4ee3\u78bc\uff0c\u5c07\u5176\u653e\u5728WordPress\u6839\u76ee\u9304\u4e0b\uff0c\u5c31\u53ef\u4ee5\u751f\u6210\u4e00\u500b\u52a0\u5bc6\u7684password<br \/>\u7528\u9019\u500b\u5bc6\u78bc\u53d6\u4ee3\u6389wp_users\u8cc7\u6599\u8868\u7684user_pass\u6b04\u4f4d\u5373\u53ef\u4fee\u6539\u5bc6\u78bc\u3002<\/p>\n<p>&lt;?php<br \/>&nbsp;$password = &#39;abc&#39;;<br \/>&nbsp;global $wp_hasher;<br \/>&nbsp;if ( empty($wp_hasher) ) {<br \/>&nbsp; require_once( &#39;.\/wp-includes\/class-phpass.php&#39;);<br \/>&nbsp; $wp_hasher = new PasswordHash(8, TRUE);<br \/>&nbsp;}<br \/>&nbsp;echo $wp_hasher-&gt;HashPassword($password);<br \/>?&gt;<br \/><\/span><\/strong><br \/><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/por.tw\/blog\/wp-content\/uploads\/2013\/04\/6805510782.png\"  width=\"256\" height=\"256\" \/><strong><span style=\"font-size: small\"><\/p>\n<p>\u4e0d\u904e\uff0c\u4fee\u6539WordPress\u4f7f\u7528\u8005\u5bc6\u78bc\u9084\u6709\u66f4\u7c21\u55ae\u7684\u65b9\u6cd5\uff0c\u5c31\u662f\u76f4\u63a5\u5c07wp_users\u8cc7\u6599\u8868\u7684user_pass\u6b04\u4f4d\u4fee\u6539\u70ba32\u4f4d\u7684md5(passowrd)\u5373\u53ef\u4fee\u6539\u5bc6\u78bc\u70bapassword<br \/>\u9019\u6a23\u7684\u5bc6\u78bc\u5f62\u5f0f\u7576\u7136\u4e0d\u662f\u5f88\u5b89\u5168\uff0c\u6240\u4ee5\uff0c\u7576\u9019\u500b\u4f7f\u7528\u8005\u5728WordPress\u767b\u5165\u5f8c\uff0c\u7cfb\u7d71\u6703\u81ea\u52d5\u5c07MD5\u5bc6\u78bc\u4fee\u6539\u70ba\u4ee5$P$\u958b\u982d\u7684\u5bc6\u78bc\u3002<\/p>\n<p>WordPress\u7684\u9019\u7a2e\u652f\u63f4\u7c21\u55aemd5\u683c\u5f0f\u7684\u5bc6\u78bc\u4f7f\u5f97\u5176\u4ed6\u7cfb\u7d71\uff08\u4f8b\u5982Ucenter\u7cfb\u7d71\uff09\u7684\u4f7f\u7528\u8005\u6574\u5408WordPress\u66f4\u70ba\u7c21\u55ae\u3002<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/><span style=\"font-size: x-small; color: #333300\">\u4f60\u5728\u6478\u7d22\u5982\u4f55\u67b6\u7ad9\u90e8\u843d\u683c\uff1f\u5982\u4f55\u5c55\u958b\u884c\u92b7\u90e8\u843d\u683c\u3001\u751a\u81f3\u8cfa\u9322\u55ce\uff1f\u6709\u3010\u6280\u8853\u9867\u554f\u670d\u52d9\u3011\u53ef\u8aee\u8a62\u55ce\uff1f<br \/>\u7576\u554f\u984c\u7121\u6cd5\u89e3\u6c7a\u4f60\u8981\u767c\u5f88\u591a\u6642\u9593\u8655\u7406\uff08\u6216\u8a31\u6c38\u9060\u627e\u51fa\u7b54\u6848\uff09\u662f\u7368\u81ea\u6478\u7d22\u90e8\u843d\u683c\u67b6\u7ad9\u3001\u884c\u92b7\u3001\u8cfa\u9322\u75db\u82e6\u7684\u958b\u59cb\uff01<br \/>\u8cfc\u8cb7\u3010\u90e8\u843d\u683c\u67b6\u7ad9\u3001\u884c\u92b7\u3001\u8cfa\u9322\u8853\u3011DVD\u8ab2\u7a0b\uff0c\u5c31\u53ef\u7372\u5f97\u3010\u90e8\u843d\u683c\u67b6\u7ad9\u884c\u92b7\u8cfa\u9322\u3011\u6280\u8853\u3010\u9867\u554f\u8aee\u8a62\u670d\u52d9\u3011\uff01<\/span><\/span><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"post-excerpt\"><p>WordPress\u7cfb\u7d71\u7684\u4f7f\u7528\u8005\u5bc6\u78bc\u662f\u5132\u5b58\u5728wp_users\u8cc7\u6599\u8868\u7684user_pass\u6b04\u4f4d\uff0c\u5bc6\u78bc\u662f\u901a\u904ePorta<\/p>\n<\/div>","protected":false},"author":1,"featured_media":495,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[34],"class_list":["post-97","post","type-post","status-publish","format-standard","has-post-thumbnail","category-wordpress-","tag-wordpress-"],"_links":{"self":[{"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/posts\/97","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/comments?post=97"}],"version-history":[{"count":0,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/posts\/97\/revisions"}],"wp:attachment":[{"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/media?parent=97"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/categories?post=97"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/tags?post=97"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}