phpcms 2008管理密码找回

新建一个文本文件,另存为mima.php。
<?php
include ‘./include/common.inc.php’;
$password = ‘yangkun123456’;
$username = ‘yangkun’;
$password = md5(PASSWORD_KEY.$password);
$db->query(“UPDATE “.DB_PRE.”member SET password = ‘$password’ WHERE username = ‘$username'”);
$db->query(“UPDATE “.DB_PRE.”member_cache SET password = ‘$password’ WHERE username = ‘$username'”);
echo ‘ok’;
?>
username 改成管理员的用户名
密码可以随便输,把这段代码写在mima.php文件内,放在根目录下。
访问这个文件。显示OK就破解成功了。




打赏

Comments are closed.