2014年2月10日 星期一

2014 / 02 / 11 For Discuz X3 忘記管理員(創始人)密碼


利用工具 Tools管家來解決

我的dz是繁中,這插件是簡中,可以相容~
基本上只是改個SQL 字串中又沒中文 什麼文都不重要

本作法為免安裝作法,源於DZ官方論壇的crx349會員


先打開Tools.php,修改password。

$tpassword = 'XXXxxx123';
大於6的大小寫英文+數字。

然後上傳到/source/plugin/裡

執行 domainname.com/source/plugin/tools/tools.php

就看圖說故事就結束了





後記


從Tools工具找到這段code

if($_GET['password'] != NULL) {
$sql = "SELECT salt FROM ".$t->ucdbconfig['tablepre']."members WHERE `uid`='$uid'";
$salt = mysql_result(mysql_query($sql, $t->db), 0);
$newpassword = md5(md5(trim($_GET['password'])).$salt);
$sql = "UPDATE ".$t->ucdbconfig['tablepre']."members SET `password`='$newpassword' WHERE `uid`='$uid'";
mysql_query($sql, $t->db);
}

DZ密碼形成的公式,繼續研究 .. (埋頭

沒有留言:

張貼留言