!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/cloud_campaign/vendor/laravel/framework/src/Illuminate/Auth/   drwxr-xr-x
Free 13.02 GB of 57.97 GB (22.46%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Auth;

use 
Illuminate\Contracts\Auth\Guard;
use 
Illuminate\Contracts\Auth\UserProvider;
use 
Illuminate\Http\Request;

class 
TokenGuard implements Guard
{
    use 
GuardHelpers;

    
/**
     * The request instance.
     *
     * @var \Illuminate\Http\Request
     */
    
protected $request;

    
/**
     * The name of the query string item from the request containing the API token.
     *
     * @var string
     */
    
protected $inputKey;

    
/**
     * The name of the token "column" in persistent storage.
     *
     * @var string
     */
    
protected $storageKey;

    
/**
     * Indicates if the API token is hashed in storage.
     *
     * @var bool
     */
    
protected $hash false;

    
/**
     * Create a new authentication guard.
     *
     * @param  \Illuminate\Contracts\Auth\UserProvider  $provider
     * @param  \Illuminate\Http\Request  $request
     * @param  string  $inputKey
     * @param  string  $storageKey
     * @param  bool  $hash
     * @return void
     */
    
public function __construct(
        
UserProvider $provider,
        
Request $request,
        
$inputKey 'api_token',
        
$storageKey 'api_token',
        
$hash false)
    {
        
$this->hash $hash;
        
$this->request $request;
        
$this->provider $provider;
        
$this->inputKey $inputKey;
        
$this->storageKey $storageKey;
    }

    
/**
     * Get the currently authenticated user.
     *
     * @return \Illuminate\Contracts\Auth\Authenticatable|null
     */
    
public function user()
    {
        
// If we've already retrieved the user for the current request we can just
        // return it back immediately. We do not want to fetch the user data on
        // every call to this method because that would be tremendously slow.
        
if (! is_null($this->user)) {
            return 
$this->user;
        }

        
$user null;

        
$token $this->getTokenForRequest();

        if (! empty(
$token)) {
            
$user $this->provider->retrieveByCredentials([
                
$this->storageKey => $this->hash hash('sha256'$token) : $token,
            ]);
        }

        return 
$this->user $user;
    }

    
/**
     * Get the token for the current request.
     *
     * @return string
     */
    
public function getTokenForRequest()
    {
        
$token $this->request->query($this->inputKey);

        if (empty(
$token)) {
            
$token $this->request->input($this->inputKey);
        }

        if (empty(
$token)) {
            
$token $this->request->bearerToken();
        }

        if (empty(
$token)) {
            
$token $this->request->getPassword();
        }

        return 
$token;
    }

    
/**
     * Validate a user's credentials.
     *
     * @param  array  $credentials
     * @return bool
     */
    
public function validate(array $credentials = [])
    {
        if (empty(
$credentials[$this->inputKey])) {
            return 
false;
        }

        
$credentials = [$this->storageKey => $credentials[$this->inputKey]];

        if (
$this->provider->retrieveByCredentials($credentials)) {
            return 
true;
        }

        return 
false;
    }

    
/**
     * Set the current request instance.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return $this
     */
    
public function setRequest(Request $request)
    {
        
$this->request $request;

        return 
$this;
    }
}

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