!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/public_html/phpmyadmin/vendor/web-auth/webauthn-lib/src/AttestationStatement/   drwxr-xr-x
Free 28.15 GB of 117.98 GB (23.86%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

declare(strict_types=1);

/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2014-2021 Spomky-Labs
 *
 * This software may be modified and distributed under the terms
 * of the MIT license.  See the LICENSE file for details.
 */

namespace Webauthn\AttestationStatement;

use function 
array_key_exists;
use 
Assert\Assertion;
use 
JsonSerializable;
use function 
Safe\sprintf;
use 
Webauthn\TrustPath\TrustPath;
use 
Webauthn\TrustPath\TrustPathLoader;

class 
AttestationStatement implements JsonSerializable
{
    public const 
TYPE_NONE 'none';
    public const 
TYPE_BASIC 'basic';
    public const 
TYPE_SELF 'self';
    public const 
TYPE_ATTCA 'attca';
    public const 
TYPE_ECDAA 'ecdaa';
    public const 
TYPE_ANONCA 'anonca';

    
/**
     * @var string
     */
    
private $fmt;

    
/**
     * @var mixed[]
     */
    
private $attStmt;

    
/**
     * @var TrustPath
     */
    
private $trustPath;

    
/**
     * @var string
     */
    
private $type;

    
/**
     * @param mixed[] $attStmt
     */
    
public function __construct(string $fmt, array $attStmtstring $typeTrustPath $trustPath)
    {
        
$this->fmt $fmt;
        
$this->attStmt $attStmt;
        
$this->type $type;
        
$this->trustPath $trustPath;
    }

    
/**
     * @param mixed[] $attStmt
     */
    
public static function createNone(string $fmt, array $attStmtTrustPath $trustPath): self
    
{
        return new 
self($fmt$attStmtself::TYPE_NONE$trustPath);
    }

    
/**
     * @param mixed[] $attStmt
     */
    
public static function createBasic(string $fmt, array $attStmtTrustPath $trustPath): self
    
{
        return new 
self($fmt$attStmtself::TYPE_BASIC$trustPath);
    }

    
/**
     * @param mixed[] $attStmt
     */
    
public static function createSelf(string $fmt, array $attStmtTrustPath $trustPath): self
    
{
        return new 
self($fmt$attStmtself::TYPE_SELF$trustPath);
    }

    
/**
     * @param mixed[] $attStmt
     */
    
public static function createAttCA(string $fmt, array $attStmtTrustPath $trustPath): self
    
{
        return new 
self($fmt$attStmtself::TYPE_ATTCA$trustPath);
    }

    
/**
     * @param mixed[] $attStmt
     */
    
public static function createEcdaa(string $fmt, array $attStmtTrustPath $trustPath): self
    
{
        return new 
self($fmt$attStmtself::TYPE_ECDAA$trustPath);
    }

    public static function 
createAnonymizationCA(string $fmt, array $attStmtTrustPath $trustPath): self
    
{
        return new 
self($fmt$attStmtself::TYPE_ANONCA$trustPath);
    }

    public function 
getFmt(): string
    
{
        return 
$this->fmt;
    }

    
/**
     * @return mixed[]
     */
    
public function getAttStmt(): array
    {
        return 
$this->attStmt;
    }

    public function 
has(string $key): bool
    
{
        return 
array_key_exists($key$this->attStmt);
    }

    
/**
     * @return mixed
     */
    
public function get(string $key)
    {
        
Assertion::true($this->has($key), sprintf('The attestation statement has no key "%s".'$key));

        return 
$this->attStmt[$key];
    }

    public function 
getTrustPath(): TrustPath
    
{
        return 
$this->trustPath;
    }

    public function 
getType(): string
    
{
        return 
$this->type;
    }

    
/**
     * @param mixed[] $data
     */
    
public static function createFromArray(array $data): self
    
{
        foreach ([
'fmt''attStmt''trustPath''type'] as $key) {
            
Assertion::keyExists($data$keysprintf('The key "%s" is missing'$key));
        }

        return new 
self(
            
$data['fmt'],
            
$data['attStmt'],
            
$data['type'],
            
TrustPathLoader::loadTrustPath($data['trustPath'])
        );
    }

    
/**
     * @return mixed[]
     */
    
public function jsonSerialize(): array
    {
        return [
            
'fmt' => $this->fmt,
            
'attStmt' => $this->attStmt,
            
'trustPath' => $this->trustPath->jsonSerialize(),
            
'type' => $this->type,
        ];
    }
}

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