Wednesday, January 20, 2010

Recover / Reset WordPress Admin Password

For some reason, people have trouble with this, I don't know why - I never have.
They either don't get the e-mails, or the password doesn't seem to reset, or it resets and because they don't get the e-mail they can't get the activation link, or they don't have access to the database, or so on and so on and so on.
Tired of all of those posts I decided there had to be a simpler way. Enter this totally insecure script, emergency.php
screenshot of emergency.php
emergency.php does 2 things: It allows you to change your WordPress blog administrator password and it sends off an e-mail to the blog administrator, letting them know, once it's been changed, what's happened.
It does not require that you be logged in. It only requires that you have the ability to upload the file to your server, and that you know the current WordPress administrator's username. Hint: That's usually admin.
I've made an alternative version available for users of WordPress 2.0 that have trouble with the other regular version.
Specific Instructions:
  1. Unpack the zip.
  2. Upload emergency.php to the root of your WordPress install (the same directory that contains wp-config.php)
  3. Open http://www.yourdomain.com/emergency.php in your favorite browser.
  4. Follow the simple instructions.
  5. When you are done, delete emergency.php off your server. Do not leave it up for someone else to come along and use.
Download emergency.php for WordPress 2.2.x and 2.3.x
Emergency for WordPress
MD5 Checksum: 5a0c13f563484bd0364ee0f62ae2d4cb
Download the alternative emergency.php for WordPress 2.0.x users that have trouble with the above version!
Emergency for WordPress.
MD5 Check

No comments:

Popular Posts