Three methods for ZblogPHP to retrieve the administrator password

Source: Internet
Author: User
Tags md5 php file reset administrator password wordpress database

Method 1: quick retrieval using tools

1. Download and reset the password file
The code is as follows: Copy code

Download Address: http://soft.itbulu.com/zblog/zbp-passwd.zip

 

2. Install and open
Download the file and put it in the root directory of the website. Then open the file at our address.
Here we can see the page above, and click "login" to log on to the background directly. We can go to the background user management to change a new password.
To sum up, we can quickly and securely reset the new ZBLOGPHP password.


Method 3: write your own program for retrieval

Save the following code as the find. Php file and upload it to the root directory of the website:

PHP
<? Php
Include ("wp-config.php ");
If (empty ($ _ POST ['resetpwd']) {?>
<Form method = "post">
Enter the new password:
<Input name = "resetpwd" type = "password"/>
<Input type = "submit" value = "submit"/>
</Form> <? Php
} Else {
$ SQL = "UPDATE ". $ wpdb-> users. "SET user_pass = '". md5 ($ _ POST ['resetpwd']). "'Where User_login = 'admin '";
$ Link = $ wpdb-> query ($ SQL );
Wp_redirect ('WP-login. Php ');
Exit ();
}?

Open http: // domain name/find. php in the browser, enter the new password, and click submit to go to the blog logon page, indicating that the password is successfully reset.

Note: after the password is reset, delete the file to prevent others from using this method.

Method 3: modify a database

Log on to phpmyadmin, find the USER table of our current WORDPRESS database file, and change the password to "this can be encrypted using md5" (Red part). Then, when we log on to the background, use the password to log on and change it to the complex password you need.

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.