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


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

declare(strict_types=1);

namespace 
smpp;

use 
InvalidArgumentException;
use 
smpp\exceptions\SmppException;

/**
 * An extension of a SMS, with data embedded into the message part of the SMS.
 * @author hd@onlinecity.dk
 */
class DeliveryReceipt extends Sms
{
    public 
int $id;
    public 
int $sub;
    public 
int $dlvrd;
    public 
int $submitDate;
    public 
int $doneDate;
    public 
string $stat;
    public 
int $err;
    public 
string $text;

    
/**
     * Parse a delivery receipt formatted as specified in SMPP v3.4 - Appendix B
     * It accepts all chars except space as the message id
     *
     * @throws InvalidArgumentException
     */
    
public function parseDeliveryReceipt(): void
    
{
        
$numMatches preg_match(
            
'/^id:([^ ]+) sub:(\d{1,3}) dlvrd:(\d{3}) submit date:(\d{10,12}) done date:(\d{10,12}) stat:([A-Z ]{7}) err:(\d{2,3}) text:(.*)$/si',
            
$this->message,
            
$matches
        
);
        if (
$numMatches === 0) {
            throw new 
InvalidArgumentException(
                
'Could not parse delivery receipt: '
                
$this->message
                
"\n"
                
bin2hex($this->body)
            );
        }
        [
            
$matched,
            
$this->id,
            
$this->sub,
            
$this->dlvrd,
            
$submitDate,
            
$doneDate,
            
$this->stat,
            
$this->err,
            
$this->text
        
] = $matches;

        
$this->submitDate $this->convertDate($submitDate);
        
$this->doneDate $this->convertDate($doneDate);
    }

    private function 
convertDate(string $date): int
    
{
        
$dateParts str_split($date2);
        
$timestamp gmmktime(
            (int)
$dateParts[3],
            (int)
$dateParts[4],
            (int)
$dateParts[5],
            (int)
$dateParts[1],
            (int)
$dateParts[2],
            (int)
$dateParts[0]
        );

        if (
$timestamp === false) {
            throw new 
SmppException('Invalid date provided');
        }
        return 
$timestamp;
    }
}

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