【问题标题】:Accessing admin Account in Joomla在 Joomla 中访问管理员帐户
【发布时间】:2012-05-30 23:46:36
【问题描述】:

如果我没有管理员帐户的密码,我有什么方法可以访问在 Joomla 中构建的网站的管理员帐户。我确实拥有服务器上的所有权限。请让我知道您的建议和意见。

【问题讨论】:

标签: joomla


【解决方案1】:

密码存储在 MySQL 数据库 jos_users 表密码字段中。 (如果不同,请将其更改为您的表前缀)

使用 MySQL 实用程序(例如 phpMyAdmin 或 MySQL 查询浏览器)来编辑此字段。 打开表格,找到您的管理员用户名,然后选择该行进行编辑。 密码必须经过哈希处理(MD5),您不能简单地在此字段中输入文本。

将密码设置为已知值,例如: - 管理员 = 21232f297a57a5a743894a0e4a801fc3

来源:http://forum.joomla.org/viewtopic.php?t=10985

【讨论】:

    【解决方案2】:

    管理员密码可以在 {DB_PREFIX}_users 中找到,密码经过哈希处理(MD5)...

    嗯,比这复杂一点,hash 的组成类似于 {hashedpassword}:{hashedsalt},hashedpassword 由 md5(password.hashedsalt) 组成 ...

    这样您就可以编写一个小脚本来回显新密码...

    <?php
       $psw = 'hashedpassword:hashedsalt';    // you copy the entry from the db here
       $newpassword = 'newpassword';   // your new password
       list($hashedpassword, $hashedsalt) = explode(":", $psw);
       $newpsw = md5($newpassword.$hashedsalt);
       $output = $newpsw.":".$hashedsalt;
       echo $output; // this is what you put in the db
    ?>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-10-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多