!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/vonage/client-core/src/Conversion/   drwxr-xr-x
Free 28.64 GB of 117.98 GB (24.27%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

declare(strict_types=1);

namespace 
Vonage\Conversion;

use 
Psr\Http\Client\ClientExceptionInterface;
use 
Psr\Http\Message\ResponseInterface;
use 
Vonage\Client\APIClient;
use 
Vonage\Client\APIResource;
use 
Vonage\Client\ClientAwareInterface;
use 
Vonage\Client\ClientAwareTrait;
use 
Vonage\Client\Exception as ClientException;

use function 
http_build_query;
use function 
json_decode;

class 
Client implements ClientAwareInterfaceAPIClient
{
    use 
ClientAwareTrait;

    public function 
__construct(protected ?APIResource $api null)
    {
    }

    public function 
getAPIResource(): APIResource
    
{
        return 
$this->api;
    }

    
/**
     * @param $message_id
     * @param $delivered
     * @param $timestamp
     *
     * @throws ClientExceptionInterface
     * @throws ClientException\Exception
     * @throws ClientException\Request
     * @throws ClientException\Server
     */
    
public function sms($message_id$delivered$timestamp null): void
    
{
        
$this->sendConversion('sms'$message_id$delivered$timestamp);
    }

    
/**
     * @param $message_id
     * @param $delivered
     * @param $timestamp
     *
     * @throws ClientExceptionInterface
     * @throws ClientException\Exception
     * @throws ClientException\Request
     * @throws ClientException\Server
     */
    
public function voice($message_id$delivered$timestamp null): void
    
{
        
$this->sendConversion('voice'$message_id$delivered$timestamp);
    }

    
/**
     * @param $type
     * @param $message_id
     * @param $delivered
     * @param $timestamp
     *
     * @throws ClientException\Exception
     * @throws ClientException\Request
     * @throws ClientException\Server
     * @throws ClientExceptionInterface
     */
    
protected function sendConversion($type$message_id$delivered$timestamp null): void
    
{
        
$params = [
            
'message-id' => $message_id,
            
'delivered' => $delivered
        
];

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

        
$uri $type '?' http_build_query($params);

        
$this->getAPIResource()->create([], $uri);
        
$response $this->getAPIResource()->getLastResponse();

        if (
null === $response || (int)$response->getStatusCode() !== 200) {
            throw 
$this->getException($response);
        }
    }

    protected function 
getException(ResponseInterface $response): ClientException\Exception|ClientException\Request|ClientException\Server
    
{
        
$body json_decode($response->getBody()->getContents(), true);
        
$status $response->getStatusCode();

        if (
$status === 402) {
            
$e = new ClientException\Request('This endpoint may need activating on your account. ' .
                
'Please email support@Vonage.com for more information'$status);
        } elseif (
$status >= 400 && $status 500) {
            
$e = new ClientException\Request($body['error_title'], $status);
        } elseif (
$status >= 500 && $status 600) {
            
$e = new ClientException\Server($body['error_title'], $status);
        } else {
            
$e = new ClientException\Exception('Unexpected HTTP Status Code (' $status ')');
        }

        return 
$e;
    }
}

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