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


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

declare(strict_types=1);

namespace 
Vonage\SMS\Webhook;

use 
DateTimeImmutable;
use 
Exception;
use 
InvalidArgumentException;

use function 
array_key_exists;

class 
InboundSMS
{
    public static 
$requiredFields = [
        
'msisdn',
        
'to',
        
'messageId',
        
'text',
        
'type',
        
'message-timestamp'
    
];

    
/**
     * @var string
     */
    
protected $apiKey;

    
/**
     * @var bool
     */
    
protected $concat false;

    
/**
     * @var ?int
     */
    
protected $concatPart;

    
/**
     * @var ?string
     */
    
protected $concatRef;

    
/**
     * @var ?int
     */
    
protected $concatTotal;

    
/**
     * @var ?string
     */
    
protected $data;

    
/**
     * @var ?string
     */
    
protected $keyword;

    
/**
     * @var string
     */
    
protected $messageId;

    
/**
     * @var DateTimeImmutable
     */
    
protected $messageTimestamp;

    
/**
     * @var string
     */
    
protected $msisdn;

    
/**
     * @var ?string
     */
    
protected $nonce;

    
/**
     * @var string
     */
    
protected $signature;

    
/**
     * @var string
     */
    
protected $text;

    
/**
     * @var ?int
     */
    
protected $timestamp;

    
/**
     * @var string
     */
    
protected $to;

    
/**
     * @var string
     */
    
protected $type;

    
/**
     * @var ?string
     */
    
protected $udh;

    
/**
     * @throws Exception
     */
    
public function __construct(array $data)
    {
        foreach (static::
$requiredFields as $key) {
            if (!
array_key_exists($key$data)) {
                throw new 
InvalidArgumentException('Incoming SMS missing required data `' $key '`');
            }
        }

        
$this->apiKey $data['api-key'] ?? null;
        
$this->messageId $data['messageId'];
        
$this->messageTimestamp = new DateTimeImmutable($data['message-timestamp']);
        
$this->msisdn $data['msisdn'];
        
$this->nonce $data['nonce'] ?? null;
        
$this->signature $data['sig'] ?? null;
        
$this->text $data['text'];
        
$this->to $data['to'];
        
$this->type $data['type'];

        if (
array_key_exists('concat'$data)) {
            
$this->concat true;
            
$this->concatPart = (int)$data['concat-part'];
            
$this->concatRef $data['concat-ref'];
            
$this->concatTotal = (int)$data['concat-total'];
        }

        if (
$this->type === 'binary' && array_key_exists('data'$data)) {
            
$this->data $data['data'];
            
$this->udh $data['udh'];
        }

        if (
array_key_exists('keyword'$data)) {
            
$this->keyword $data['keyword'];
        }

        if (
array_key_exists('timestamp'$data)) {
            
$this->timestamp = (int)$data['timestamp'];
        }
    }

    public function 
getApiKey(): ?string
    
{
        return 
$this->apiKey;
    }

    public function 
getConcat(): bool
    
{
        return 
$this->concat;
    }

    public function 
getConcatPart(): ?int
    
{
        return 
$this->concatPart;
    }

    public function 
getConcatRef(): ?string
    
{
        return 
$this->concatRef;
    }

    public function 
getConcatTotal(): ?int
    
{
        return 
$this->concatTotal;
    }

    public function 
getData(): ?string
    
{
        return 
$this->data;
    }

    public function 
getKeyword(): ?string
    
{
        return 
$this->keyword;
    }

    public function 
getMessageId(): string
    
{
        return 
$this->messageId;
    }

    
/**
     * Time the message was accepted and delivery receipt was generated
     */
    
public function getMessageTimestamp(): DateTimeImmutable
    
{
        return 
$this->messageTimestamp;
    }

    public function 
getMsisdn(): string
    
{
        return 
$this->msisdn;
    }

    public function 
getFrom(): string
    
{
        return 
$this->msisdn;
    }

    public function 
getNonce(): string
    
{
        return 
$this->nonce;
    }

    public function 
getText(): string
    
{
        return 
$this->text;
    }

    
/**
     * Return the timestamp used for signature verification
     * If you are looking for the time of message creation, please use
     * `getMessageTimestamp()`
     */
    
public function getTimestamp(): ?int
    
{
        return 
$this->timestamp;
    }

    public function 
getTo(): string
    
{
        return 
$this->to;
    }

    public function 
getType(): string
    
{
        return 
$this->type;
    }

    public function 
getUdh(): ?string
    
{
        return 
$this->udh;
    }

    public function 
getSignature(): string
    
{
        return 
$this->signature;
    }
}

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