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


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

namespace Enlightn\Enlightn\Analyzers\Security;

class 
PHPIniAnalyzer extends SecurityAnalyzer
{
    
/**
     * The title describing the analyzer.
     *
     * @var string|null
     */
    
public $title 'Your PHP configuration is secure.';

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

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

    
/**
     * Determine whether the analyzer should be run in CI mode.
     *
     * @var bool
     */
    
public static $runInCI false;

    
/**
     * A collection of insecure PHP ini settings.
     *
     * @var \Illuminate\Support\Collection
     */
    
protected $insecureSettings;

    
/**
     * Get the error message describing the analyzer insights.
     *
     * @return string
     */
    
public function errorMessage()
    {
        return 
"Your application does not set secure php.ini configuration values. This may expose your application "
            
."to security vulnerabilities. Unless there is a very specific use case for your application, it is "
            
."recommended to set your php.ini configuration as follows: {$this->formatRecommendations()}.";
    }

    
/**
     * Execute the analyzer.
     *
     * @return void
     */
    
public function handle()
    {
        
$secureSettings config('enlightn.php_secure_settings', [
            
'allow_url_fopen' => false,
            
'allow_url_include' => false,
            
'expose_php' => false,
            
'display_errors' => false,
            
'display_startup_errors' => false,
            
'log_errors' => true,
            
'ignore_repeated_errors' => false,
        ]);

        
$this->insecureSettings collect($secureSettings)->filter(function ($expected$var) {
            return ! 
in_array(strtolower(ini_get($var)), $expected ? ['1''on''yes''true'] : ['0''off''''no''false']);
        });

        if (
$this->insecureSettings->count() > 0) {
            
$this->markFailed();
        }
    }

    
/**
     * Determine whether to skip the analyzer.
     *
     * @return bool
     */
    
public function skip()
    {
        
// Skip this analyzer if the app environment is local.
        
return $this->isLocalAndShouldSkip();
    }

    
/**
     * @return string
     */
    
protected function formatRecommendations()
    {
        return 
$this->insecureSettings->map(function ($result$var) {
            return 
"[{$var}: ".($result 'On or 1' 'Off or 0')."]";
        })->
join(', '' and ');
    }
}

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