!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.05 GB of 117.98 GB (24.62%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

declare(strict_types=1);

namespace 
Pest;

use 
NunoMaduro\Collision\Writer;
use 
Pest\Contracts\Bootstrapper;
use 
Pest\Exceptions\FatalException;
use 
Pest\Exceptions\NoDirtyTestsFound;
use 
Pest\Plugins\Actions\CallsAddsOutput;
use 
Pest\Plugins\Actions\CallsBoot;
use 
Pest\Plugins\Actions\CallsHandleArguments;
use 
Pest\Plugins\Actions\CallsHandleOriginalArguments;
use 
Pest\Plugins\Actions\CallsTerminable;
use 
Pest\Support\Container;
use 
Pest\Support\Reflection;
use 
Pest\Support\View;
use 
PHPUnit\TestRunner\TestResult\Facade;
use 
PHPUnit\TextUI\Application;
use 
PHPUnit\TextUI\Configuration\Registry;
use 
Symfony\Component\Console\Input\InputInterface;
use 
Symfony\Component\Console\Output\OutputInterface;
use 
Throwable;
use 
Whoops\Exception\Inspector;

/**
 * @internal
 */
final class Kernel
{
    
/**
     * The Kernel bootstrappers.
     *
     * @var array<int, class-string>
     */
    
private const BOOTSTRAPPERS = [
        
Bootstrappers\BootOverrides::class,
        
Bootstrappers\BootSubscribers::class,
        
Bootstrappers\BootFiles::class,
        
Bootstrappers\BootView::class,
        
Bootstrappers\BootKernelDump::class,
        
Bootstrappers\BootExcludeList::class,
    ];

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

    
/**
     * Boots the Kernel.
     */
    
public static function boot(TestSuite $testSuiteInputInterface $inputOutputInterface $output): self
    
{
        
$container Container::getInstance();

        
$container
            
->add(TestSuite::class, $testSuite)
            ->
add(InputInterface::class, $input)
            ->
add(OutputInterface::class, $output)
            ->
add(Container::class, $container);

        
$kernel = new self(
            new 
Application,
            
$output,
        );

        
register_shutdown_function(fn () => $kernel->shutdown());

        foreach (
self::BOOTSTRAPPERS as $bootstrapper) {
            
$bootstrapper Container::getInstance()->get($bootstrapper);
            
assert($bootstrapper instanceof Bootstrapper);

            
$bootstrapper->boot();
        }

        
CallsBoot::execute();

        
Container::getInstance()->add(self::class, $kernel);

        return 
$kernel;
    }

    
/**
     * Runs the application, and returns the exit code.
     *
     * @param  array<int, string>  $originalArguments
     * @param  array<int, string>  $arguments
     */
    
public function handle(array $originalArguments, array $arguments): int
    
{
        
CallsHandleOriginalArguments::execute($originalArguments);

        
$arguments CallsHandleArguments::execute($arguments);

        try {
            
$this->application->run($arguments);
        } catch (
NoDirtyTestsFound) {
            
$this->output->writeln([
                
'',
                
'  <fg=white;options=bold;bg=blue> INFO </> No tests found.',
                
'',
            ]);
        }

        
$configuration Registry::get();
        
$result Facade::result();

        return 
CallsAddsOutput::execute(
            
Result::exitCode($configuration$result),
        );
    }

    
/**
     * Terminate the Kernel.
     */
    
public function terminate(): void
    
{
        
$preBufferOutput Container::getInstance()->get(KernelDump::class);

        
assert($preBufferOutput instanceof KernelDump);

        
$preBufferOutput->terminate();

        
CallsTerminable::execute();
    }

    
/**
     * Shutdowns unexpectedly the Kernel.
     */
    
public function shutdown(): void
    
{
        
$this->terminate();

        if (
is_array($error error_get_last())) {
            if (! 
in_array($error['type'], [E_ERRORE_CORE_ERROR], true)) {
                return;
            }

            
$message $error['message'];
            
$file $error['file'];
            
$line $error['line'];

            try {
                
$writer = new Writer(null$this->output);

                
$throwable = new FatalException($message);

                
Reflection::setPropertyValue($throwable'line'$line);
                
Reflection::setPropertyValue($throwable'file'$file);

                
$inspector = new Inspector($throwable);

                
$writer->write($inspector);
            } catch (
Throwable) { // @phpstan-ignore-line
                
View::render('components.badge', [
                    
'type' => 'ERROR',
                    
'content' => sprintf('%s in %s:%d'$message$file$line),
                ]);
            }

            exit(
1);
        }
    }
}

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