!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/vendor/enlightn/enlightn/src/Inspection/   drwxr-xr-x
Free 13.21 GB of 57.97 GB (22.79%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Enlightn\Enlightn\Inspection;

use 
Enlightn\Enlightn\Analyzers\Trace;
use 
Illuminate\Filesystem\Filesystem;
use 
PhpParser\Error;
use 
PhpParser\ErrorHandler\Collecting;
use 
PhpParser\ParserFactory;

class 
Inspector
{
    protected 
$files;

    public 
$nodes = [];

    public 
$errors = [];

    public 
$passed true;

    
/**
     * @var array
     */
    
protected $traces = [];

    public function 
__construct()
    {
        
$this->files = new Filesystem;
    }

    
/**
     * @param  array  $filePaths
     * @return $this
     */
    
public function start(array $filePaths)
    {
        
$parser = (new ParserFactory)->create(ParserFactory::ONLY_PHP7);

        
collect($filePaths)->each(function ($path) use ($parser) {
            if (! isset(
$this->nodes[$path])) {
                
$this->nodes[$path] = $parser->parse($this->files->get($path), $handler = new Collecting);

                if (
$handler->hasErrors()) {
                    
// Partial ASTs are ignored.
                    
unset($this->nodes[$path]);

                    
$this->errors[$path] = collect($handler->getErrors())->map(function (Error $error) {
                        return 
$error->getStartLine();
                    })->
toArray();
                }
            }
        });

        return 
$this;
    }

    
/**
     * @param QueryBuilder $builder
     * @return array
     */
    
public function inspect(QueryBuilder $builder)
    {
        
$this->traces = [];
        
$this->passed true;

        foreach (
$this->nodes as $path => $nodes) {
            if (! empty(
$errors $builder->getErrors($nodes))) {
                
collect($errors)->each(function (InspectionLine $line) use ($path) {
                    
$this->traces[] = new Trace($path$line->lineNumber$line->details);
                });
            }

            
$this->passed $this->passed && $builder->passed();
        }

        return 
$this->traces;
    }

    
/**
     * Determine whether the inspector passed the last inspection.
     *
     * @return bool
     */
    
public function passed()
    {
        return 
$this->passed;
    }

    
/**
     * @return array
     */
    
public function getLastErrors()
    {
        return 
$this->traces;
    }

    public function 
flush()
    {
        
$this->nodes = [];

        
$this->errors = [];

        return 
$this;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0058 ]--