!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)

/var/www/html/main_file/vendor/laravel/framework/src/Illuminate/Foundation/Console/   drwxr-xr-x
Free 12.95 GB of 57.97 GB (22.33%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Foundation\Console;

use 
Illuminate\Foundation\Concerns\ResolvesDumpSource;
use 
Symfony\Component\Console\Output\ConsoleOutput;
use 
Symfony\Component\VarDumper\Caster\ReflectionCaster;
use 
Symfony\Component\VarDumper\Cloner\Data;
use 
Symfony\Component\VarDumper\Cloner\VarCloner;
use 
Symfony\Component\VarDumper\Dumper\CliDumper as BaseCliDumper;
use 
Symfony\Component\VarDumper\VarDumper;

class 
CliDumper extends BaseCliDumper
{
    use 
ResolvesDumpSource;

    
/**
     * The base path of the application.
     *
     * @var string
     */
    
protected $basePath;

    
/**
     * The output instance.
     *
     * @var \Symfony\Component\Console\Output\OutputInterface
     */
    
protected $output;

    
/**
     * The compiled view path for the application.
     *
     * @var string
     */
    
protected $compiledViewPath;

    
/**
     * If the dumper is currently dumping.
     *
     * @var bool
     */
    
protected $dumping false;

    
/**
     * Create a new CLI dumper instance.
     *
     * @param  \Symfony\Component\Console\Output\OutputInterface  $output
     * @param  string  $basePath
     * @param  string  $compiledViewPath
     * @return void
     */
    
public function __construct($output$basePath$compiledViewPath)
    {
        
parent::__construct();

        
$this->basePath $basePath;
        
$this->output $output;
        
$this->compiledViewPath $compiledViewPath;
    }

    
/**
     * Create a new CLI dumper instance and register it as the default dumper.
     *
     * @param  string  $basePath
     * @param  string  $compiledViewPath
     * @return void
     */
    
public static function register($basePath$compiledViewPath)
    {
        
$cloner tap(new VarCloner())->addCasters(ReflectionCaster::UNSET_CLOSURE_FILE_INFO);

        
$dumper = new static(new ConsoleOutput(), $basePath$compiledViewPath);

        
VarDumper::setHandler(fn ($value) => $dumper->dumpWithSource($cloner->cloneVar($value)));
    }

    
/**
     * Dump a variable with its source file / line.
     *
     * @param  \Symfony\Component\VarDumper\Cloner\Data  $data
     * @return void
     */
    
public function dumpWithSource(Data $data)
    {
        if (
$this->dumping) {
            
$this->dump($data);

            return;
        }

        
$this->dumping true;

        
$output = (string) $this->dump($datatrue);
        
$lines explode("\n"$output);

        
$lines[0] .= $this->getDumpSourceContent();

        
$this->output->write(implode("\n"$lines));

        
$this->dumping false;
    }

    
/**
     * Get the dump's source console content.
     *
     * @return string
     */
    
protected function getDumpSourceContent()
    {
        if (
is_null($dumpSource $this->resolveDumpSource())) {
            return 
'';
        }

        [
$file$relativeFile$line] = $dumpSource;

        
$href $this->resolveSourceHref($file$line);

        return 
sprintf(
            
' <fg=gray>// <fg=gray%s>%s%s</></>',
            
is_null($href) ? '' ";href=$href",
            
$relativeFile,
            
is_null($line) ? '' ":$line"
        
);
    }

    
/**
     * {@inheritDoc}
     */
    
protected function supportsColors(): bool
    
{
        return 
$this->output->isDecorated();
    }
}

:: 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.008 ]--