!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/EndpointV2/   drwxr-xr-x
Free 28.8 GB of 117.98 GB (24.41%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     EndpointDefinitionProvider.php (2.22 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Aws\EndpointV2;

/**
 * Provides Endpoint-related artifacts used for endpoint resolution
 * and testing.
 */
class EndpointDefinitionProvider
{
    public static function 
getEndpointRuleset($service$apiVersion$baseDir null)
    {
        return 
self::getData($service$apiVersion'ruleset'$baseDir);
    }

    public static function 
getEndpointTests($service$apiVersion$baseDir null)
    {
        return 
self::getData($service$apiVersion'tests'$baseDir);
    }

    public static function 
getPartitions()
    {
        
$basePath __DIR__ '/../data';
        
$file '/partitions.json';

        if (
file_exists($basePath $file '.php')) {
           return require(
$basePath $file '.php');
        } else {
            return 
json_decode(file_get_contents($basePath $file));
        }
    }

    private static function 
getData($service$apiVersion$type$baseDir)
    {
        
$basePath $baseDir $baseDir :  __DIR__ '/../data';
        
$serviceDir $basePath "/{$service}";
        if (!
is_dir($serviceDir)) {
            throw new 
\InvalidArgumentException(
                
'Invalid service name.'
            
);
        }

        if (
$apiVersion === 'latest') {
            
$apiVersion self::getLatest($service);
        }

        
$rulesetPath $serviceDir '/' $apiVersion;
        if (!
is_dir($rulesetPath)) {
            throw new 
\InvalidArgumentException(
                
'Invalid api version.'
            
);
        }
        
$fileName $type === 'tests' '/endpoint-tests-1' '/endpoint-rule-set-1';

        if (
file_exists($rulesetPath $fileName '.json.php')) {
            return require(
$rulesetPath $fileName '.json.php');
        } elseif (
file_exists($rulesetPath $fileName '.json')) {
            return 
json_decode(file_get_contents($rulesetPath $fileName '.json'), true);
        } else {
            throw new 
\InvalidArgumentException(
                
'Specified ' $type ' endpoint file for ' $service ' with api version ' $apiVersion ' does not exist.'
            
);
        }
    }

    private static function 
getLatest($service)
    {
        
$manifest \Aws\manifest();
        return 
$manifest[$service]['versions']['latest'];
    }
}

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