Skip to content

Instantly share code, notes, and snippets.

@nazarmak
nazarmak / Decrypt the WordPress password
Created October 19, 2015 08:55
Decrypt the WordPress password
$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('wp-includes/class-phpass.php');