DEDECMS Zhimeng resetting the password of the background administrator

Source: Internet
Author: User
Tags php script


Method 1


The simplest way is to directly modify the database and execute

The code is as follows: Copy code

UPDATE 'dede _ admin' SET 'pwd' = 'c3949ba59abbe56e057f'. After execution, the password is "123456"


Method 2

Another way is to write a password reset file according to the above tool.

Resetpwd. php

After downloading this file and placing it in the root directory of your site, you only need to run it, and the admin password will be reset to 000000.

The file content of this method is as follows:

The code is as follows: Copy code

<? Php
/*
* @ Desc: DEDECMS resets the admin password to 000000, which is applicable to DedeCms V5.6.
* @ Auth: ityizhan.com
*/
$ Password = '000000'; // the password to be reset, which can be customized.
Require_once (dirname (_ FILE _). "/include/common. inc. php ");
$ Dsql = new DedeSql (false );
$ Dsql-> ExecuteNoneQuery ("update' #@__ admin 'set pwd = '". substr (md5 ($ password), 5, 20 ). "'Where userid = 'admin '");
$ Dsql-> Close ();
Echo 'password reset successful! The new password is '. $ password;
?>

Method 3
Radminpass. php

1. Download the script file radminpass. php for resetting the password of the administrator account. Decompress the file and download the two encoding versions, gbk and utf8, and obtain the script that is consistent with your system code.

Dedecmsreset password file .rar

Here, we use www.daermay.com as an example. The dedechina system code is gbk. Here we take radminpass. php under the gbk directory and upload it to the root directory of the dedechina website.

2. Execute the radminpass. php script file, that is, open it in the browser.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.