!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/sms.picotech.app/public_html/vendor/laravel/octane/src/FrankenPhp/   drwxr-xr-x
Free 28.48 GB of 117.98 GB (24.14%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Laravel\Octane\FrankenPhp;

use 
Illuminate\Http\Client\ConnectionException;
use 
Illuminate\Support\Facades\Http;
use 
Laravel\Octane\Contracts\ServerProcessInspector as ServerProcessInspectorContract;
use 
Symfony\Component\Process\Process;

class 
ServerProcessInspector implements ServerProcessInspectorContract
{
    
/**
     * Create a new server process inspector instance.
     */
    
public function __construct(
        protected 
ServerStateFile $serverStateFile,
    ) {
    }

    
/**
     * Determine if the FrankenPHP server process is running.
     */
    
public function serverIsRunning(): bool
    
{
        if (
is_null($this->serverStateFile->read()['masterProcessId'] ?? null)) {
            return 
false;
        }

        try {
            return 
Http::get($this->adminConfigUrl())->successful();
        } catch (
ConnectionException $_) {
            return 
false;
        }
    }

    
/**
     * Reload the FrankenPHP workers.
     */
    
public function reloadServer(): void
    
{
        try {
            
Http::withBody(Http::get($this->adminConfigUrl())->body(), 'application/json')
                ->
withHeaders(['Cache-Control' => 'must-revalidate'])
                ->
patch($this->adminConfigUrl());
        } catch (
ConnectionException $_) {
            
//
        
}
    }

    
/**
     * Stop the FrankenPHP server.
     */
    
public function stopServer(): bool
    
{
        try {
            return 
Http::post($this->adminUrl().'/stop')->successful();
        } catch (
ConnectionException $_) {
            return 
false;
        }
    }

    
/**
     * Get the URL to the FrankenPHP admin panel.
     */
    
protected function adminUrl(): string
    
{
        
$serverStateFile $this->serverStateFile->read();

        
$adminHost $serverStateFile['state']['adminHost'] ?? 'localhost';
        
$adminPort $serverStateFile['state']['adminPort'] ?? 2019;

        return 
"http://{$adminHost}:{$adminPort}";
    }

    
/**
     * Get the URL to the FrankenPHP admin panel's configuration endpoint.
     */
    
protected function adminConfigUrl(): string
    
{
        return 
"{$this->adminUrl()}/config/apps/frankenphp";
    }
}

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