Article written

  • on 02.20.2009
  • at 05:36 AM
  • by Robert Banh

Stupid Wordpress Hack 0

Feb20

So you have lost your admin password? Well then let’s just hack the system.


Step 1: Open up your /wp-includes/pluggable.php

Step 2: Go to the function wp_authenticate (line 438)

Step 3: Add this to line 439: return WP_User(1);

So the code should look like this:

function wp_authenticate($username, $password) {
	return WP_User(1);

Step 4: Go to your login page and input any username/passwd. Make sure you have checked the “Remember Me” checkbox.

Step 5: Once you’re logged on, remove that line from Step 3.

Now you’re back in business.

I do not recommend this because your system is left wide open for any user to log on, but if you’re a little pee-on like me, and nobody cares to hack your system then do it ;)

Enjoy!

subscribe to comments RSS

There are no comments for this post

Please, feel free to post your own comment

* these are required fields

All works are licensed under the
Creative Commons Attribution-Share Alike 3.0 Unported License.