!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/smabpro.picotech.app/public_html/vendor/aws/aws-sdk-php/src/S3/Crypto/   drwxr-xr-x
Free 28.7 GB of 117.98 GB (24.32%)
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 ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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