!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_tdfonline/php/3ros/guzzle/guzzle/guzzle/src/Guzzle/Http/Curl/   drwxr-xr-x
Free 15.58 GB of 61.93 GB (25.16%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

namespace Guzzle\Http\Curl;

use 
Guzzle\Http\Message\RequestInterface;
use 
Guzzle\Http\EntityBody;
use 
Guzzle\Http\Message\Response;

/**
 * Mediator between curl handles and request objects
 */
class RequestMediator
{
    
/** @var RequestInterface */
    
protected $request;

    
/** @var bool Whether or not to emit read/write events */
    
protected $emitIo;

    
/**
     * @param RequestInterface $request Request to mediate
     * @param bool             $emitIo  Set to true to dispatch events on input and output
     */
    
public function __construct(RequestInterface $request$emitIo false)
    {
        
$this->request $request;
        
$this->emitIo $emitIo;
    }

    
/**
     * Receive a response header from curl
     *
     * @param resource $curl   Curl handle
     * @param string   $header Received header
     *
     * @return int
     */
    
public function receiveResponseHeader($curl$header)
    {
        static 
$normalize = array("\r""\n");
        
$length strlen($header);
        
$header str_replace($normalize''$header);

        if (
strpos($header'HTTP/') === 0) {

            
$startLine explode(' '$header3);
            
$code $startLine[1];
            
$status = isset($startLine[2]) ? $startLine[2] : '';

            
// Only download the body of the response to the specified response
            // body when a successful response is received.
            
if ($code >= 200 && $code 300) {
                
$body $this->request->getResponseBody();
            } else {
                
$body EntityBody::factory();
            }

            
$response = new Response($codenull$body);
            
$response->setStatus($code$status);
            
$this->request->startResponse($response);

            
$this->request->dispatch('request.receive.status_line', array(
                
'request'       => $this,
                
'line'          => $header,
                
'status_code'   => $code,
                
'reason_phrase' => $status
            
));

        } elseif (
$pos strpos($header':')) {
            
$this->request->getResponse()->addHeader(
                
trim(substr($header0$pos)),
                
trim(substr($header$pos 1))
            );
        }

        return 
$length;
    }

    
/**
     * Received a progress notification
     *
     * @param int        $downloadSize Total download size
     * @param int        $downloaded   Amount of bytes downloaded
     * @param int        $uploadSize   Total upload size
     * @param int        $uploaded     Amount of bytes uploaded
     * @param resource   $handle       CurlHandle object
     */
    
public function progress($downloadSize$downloaded$uploadSize$uploaded$handle null)
    {
        
$this->request->dispatch('curl.callback.progress', array(
            
'request'       => $this->request,
            
'handle'        => $handle,
            
'download_size' => $downloadSize,
            
'downloaded'    => $downloaded,
            
'upload_size'   => $uploadSize,
            
'uploaded'      => $uploaded
        
));
    }

    
/**
     * Write data to the response body of a request
     *
     * @param resource $curl  Curl handle
     * @param string   $write Data that was received
     *
     * @return int
     */
    
public function writeResponseBody($curl$write)
    {
        if (
$this->emitIo) {
            
$this->request->dispatch('curl.callback.write', array(
                
'request' => $this->request,
                
'write'   => $write
            
));
        }

        if (
$response $this->request->getResponse()) {
            return 
$response->getBody()->write($write);
        } else {
            
// Unexpected data received before response headers - abort transfer
            
return 0;
        }
    }

    
/**
     * Read data from the request body and send it to curl
     *
     * @param resource $ch     Curl handle
     * @param resource $fd     File descriptor
     * @param int      $length Amount of data to read
     *
     * @return string
     */
    
public function readRequestBody($ch$fd$length)
    {
        if (!(
$body $this->request->getBody())) {
            return 
'';
        }

        
$read = (string) $body->read($length);
        if (
$this->emitIo) {
            
$this->request->dispatch('curl.callback.read', array('request' => $this->request'read' => $read));
        }

        return 
$read;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.2836 ]--