!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/dokan/script/vendor/laravel/framework/src/Illuminate/Auth/Middleware/   drwxrwxrwx
Free 13.05 GB of 57.97 GB (22.51%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Auth\Middleware;

use 
Closure;
use 
Illuminate\Contracts\Auth\Access\Gate;
use 
Illuminate\Database\Eloquent\Model;

class 
Authorize
{
    
/**
     * The gate instance.
     *
     * @var \Illuminate\Contracts\Auth\Access\Gate
     */
    
protected $gate;

    
/**
     * Create a new middleware instance.
     *
     * @param  \Illuminate\Contracts\Auth\Access\Gate  $gate
     * @return void
     */
    
public function __construct(Gate $gate)
    {
        
$this->gate $gate;
    }

    
/**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @param  string  $ability
     * @param  array|null  ...$models
     * @return mixed
     *
     * @throws \Illuminate\Auth\AuthenticationException
     * @throws \Illuminate\Auth\Access\AuthorizationException
     */
    
public function handle($requestClosure $next$ability, ...$models)
    {
        
$this->gate->authorize($ability$this->getGateArguments($request$models));

        return 
$next($request);
    }

    
/**
     * Get the arguments parameter for the gate.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  array|null  $models
     * @return \Illuminate\Database\Eloquent\Model|array|string
     */
    
protected function getGateArguments($request$models)
    {
        if (
is_null($models)) {
            return [];
        }

        return 
collect($models)->map(function ($model) use ($request) {
            return 
$model instanceof Model $model $this->getModel($request$model);
        })->
all();
    }

    
/**
     * Get the model to authorize.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  string  $model
     * @return \Illuminate\Database\Eloquent\Model|string
     */
    
protected function getModel($request$model)
    {
        if (
$this->isClassName($model)) {
            return 
trim($model);
        } else {
            return 
$request->route($modelnull) ?:
                ((
preg_match("/^['\"](.*)['\"]$/"trim($model), $matches)) ? $matches[1] : null);
        }
    }

    
/**
     * Checks if the given string looks like a fully qualified class name.
     *
     * @param  string  $value
     * @return bool
     */
    
protected function isClassName($value)
    {
        return 
strpos($value'\\') !== false;
    }
}

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