Last active
April 19, 2021 12:59
-
-
Save ferdisahin/cc501e8f2c03adccb2b9d4468aa5907e to your computer and use it in GitHub Desktop.
Wordpress Admin Şifresini Kolayca Değiştirme!
This file contains 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
Wordpress panelinde unutulan şifre için bu küçük dosyayı kullanabilirsiniz. | |
İlk olarak wordpress'in kurulu olduğu klasörde wp-pass.php oluşturun. | |
Oluşturduğunuz wp-pass.php dosyasının içine aşağıdaki içeriği kopyalayın. | |
Daha sonra siteadresi.com/wp-pass.php?pass=şifreburada şeklinde girin. (şifre burada yazan yere kendi şifrenizi yazın) | |
Bu işlemi yaptıktan sonra şifreniz değişecek ve ekrana uyarı basacaktır. Yeni şifreniz ile admin hesabınıza giriş yapabilirsiniz. |
This file contains 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
<?php | |
require_once 'wp-load.php'; | |
$pass = isset($_GET['pass']) ? $_GET['pass'] : null; | |
if($pass){ | |
global $wpdb; | |
$pass = wp_hash_password($pass); | |
$id = 1; | |
$table_name = $wpdb->prefix."users"; | |
$ok = $wpdb->query( $wpdb->prepare("UPDATE $table_name | |
SET user_pass = %s | |
WHERE ID = %s",$pass, $id) | |
); | |
if($ok){ | |
echo 'Şifre değişti!'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment