Created
June 26, 2013 19:53
-
-
Save zirosas/5871021 to your computer and use it in GitHub Desktop.
Decrypt the WordPress password. include('classhash.php')
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$username = ''; | |
$password = ''; | |
$strSql = "SELECT user_pass FROM wp_users WHERE user_login = '$username'"; | |
$result = mysql_query($strSql); | |
$row = mysql_fetch_array($result); | |
$encpass = $row['user_pass']; | |
if(!is_null($encpass)) { | |
include('classhash.php'); | |
$wp_hasher = new PasswordHash(8, TRUE); | |
$password_hashed = $encpass; | |
$plain_password = $password; | |
if($wp_hasher->CheckPassword($plain_password, $password_hashed)) { | |
echo "Success"; | |
} | |
else { | |
echo "Failed"; | |
} | |
} | |
else { | |
echo "Not found."; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
where is classhash.php ? cant find it in main directory.