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


Viewing file:     Webhook.php (3.02 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Telnyx;

abstract class 
Webhook
{
    const 
DEFAULT_TOLERANCE 300;

    
/**
     * Alias for constructEvent().
     * Returns an Event instance using the current HTTPS request. Throws an
     * Exception\UnexpectedValueException if the payload is not valid JSON, and
     * an Exception\SignatureVerificationException if the signature
     * verification fails for any reason.
     *
     * @param string $public_key secret used to generate the signature
     * @param int $tolerance maximum difference allowed between the header's
     *  timestamp and the current time
     *
     * @throws Exception\UnexpectedValueException if the payload is not valid JSON,
     * @throws Exception\SignatureVerificationException if the verification fails
     *
     * @return Event the Event instance
     */
    
public static function constructFromRequest($public_key ''$tolerance self::DEFAULT_TOLERANCE)
    {
        if (!isset(
$_SERVER['HTTP_TELNYX_SIGNATURE_ED25519']) || !isset($_SERVER['HTTP_TELNYX_TIMESTAMP'])) {
            throw 
Exception\SignatureVerificationException::factory(
                
'Unable to extract timestamp and signatures from header'
            
);
        }

        
$payload = @file_get_contents('php://input');
        
$sig_header $_SERVER['HTTP_TELNYX_SIGNATURE_ED25519'];
        
$timestamp_header $_SERVER['HTTP_TELNYX_TIMESTAMP'];

        return 
\Telnyx\Webhook::constructEvent(
            
$payload$sig_header$timestamp_header$public_key$tolerance
        
);
    }

    
/**
     * Returns an Event instance using the provided JSON payload. Throws an
     * Exception\UnexpectedValueException if the payload is not valid JSON, and
     * an Exception\SignatureVerificationException if the signature
     * verification fails for any reason.
     *
     * @param string $payload the payload sent by Telnyx
     * @param string $signature_header the contents of the signature header sent by Telnyx
     * @param string $timestamp the timestamp from the header sent by Telnyx
     * @param string $public_key secret used to generate the signature
     * @param int $tolerance maximum difference allowed between the header's
     *  timestamp and the current time
     *
     * @throws Exception\UnexpectedValueException if the payload is not valid JSON,
     * @throws Exception\SignatureVerificationException if the verification fails
     *
     * @return Event the Event instance
     */
    
public static function constructEvent($payload$signature_header$timestamp$public_key ''$tolerance self::DEFAULT_TOLERANCE)
    {
        
WebhookSignature::verifyHeader($payload$signature_header$timestamp$public_key$tolerance);

        
$data \json_decode($payloadtrue);
        
$jsonError \json_last_error();
        if (
null === $data && \JSON_ERROR_NONE !== $jsonError) {
            
$msg "Invalid payload: {$payload} "
              
"(json_last_error() was {$jsonError})";

            throw new 
Exception\UnexpectedValueException($msg);
        }

        return 
Event::constructFrom($data);
    }
}

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