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


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

namespace Enlightn\Enlightn\Analyzers\Reliability;

use 
Illuminate\Filesystem\Filesystem;
use 
Illuminate\Support\Str;

class 
DirectoryWritePermissionsAnalyzer extends ReliabilityAnalyzer
{
    
/**
     * The title describing the analyzer.
     *
     * @var string|null
     */
    
public $title 'Your storage and cache directories are writable.';

    
/**
     * The severity of the analyzer.
     *
     * @var string|null
     */
    
public $severity self::SEVERITY_CRITICAL;

    
/**
     * The time to fix in minutes.
     *
     * @var int|null
     */
    
public $timeToFix 5;

    
/**
     * The directories that are not writable.
     *
     * @var string
     */
    
protected $failedDirs;

    
/**
     * Get the error message describing the analyzer insights.
     *
     * @return string
     */
    
public function errorMessage()
    {
        return 
"Your application's storage and cache directories are not writable. This can cause issues "
            
."with your Laravel installation. The directories that are not writable include: {$this->failedDirs}";
    }

    
/**
     * Execute the analyzer.
     *
     * @param \Illuminate\Filesystem\Filesystem $files
     * @return void
     */
    
public function handle(Filesystem $files)
    {
        
$directoriesToCheck config('enlightn.writable_directories', [
            
storage_path(),
            
app()->bootstrapPath('cache'),
        ]);

        
$this->failedDirs collect($directoriesToCheck)->reject(function ($directory) use ($files) {
            return 
$files->isWritable($directory);
        })->
map(function ($path) {
            return 
Str::contains($pathbase_path())
                ? (
'['.trim(Str::after($pathbase_path()), '/').']') : '['.$path.']';
        })->
join(', '' and ');

        if (! empty(
$this->failedDirs)) {
            
$this->markFailed();
        }
    }
}

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