!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/lampp/phpmyadmin/libraries/classes/Server/SysInfo/   drwxr-xr-x
Free 15.59 GB of 61.93 GB (25.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

declare(strict_types=1);

namespace 
PhpMyAdmin\Server\SysInfo;

use function 
explode;
use function 
is_readable;
use function 
shell_exec;
use function 
trim;

/**
 * SunOS based SysInfo class
 */
class SunOs extends Base
{
    
/**
     * The OS name
     *
     * @var string
     */
    
public $os 'SunOS';

    
/**
     * Read value from kstat
     *
     * @param string $key Key to read
     *
     * @return string with value
     */
    
private function kstat($key)
    {
        
/** @psalm-suppress ForbiddenCode */
        
$m shell_exec('kstat -p d ' $key);

        if (
$m) {
            [, 
$value] = explode("\t"trim($m), 2);

            return 
$value;
        }

        return 
'';
    }

    
/**
     * Gets load information
     *
     * @return array with load data
     */
    
public function loadavg()
    {
        
$load1 $this->kstat('unix:0:system_misc:avenrun_1min');

        return [
'loadavg' => $load1];
    }

    
/**
     * Checks whether class is supported in this environment
     */
    
public function supported(): bool
    
{
        return @
is_readable('/proc/meminfo');
    }

    
/**
     * Gets information about memory usage
     *
     * @return array with memory usage data
     */
    
public function memory()
    {
        
$pagesize = (int) $this->kstat('unix:0:seg_cache:slab_size');
        
$mem = [];
        
$mem['MemTotal'] = (int) $this->kstat('unix:0:system_pages:pagestotal') * $pagesize;
        
$mem['MemUsed'] = (int) $this->kstat('unix:0:system_pages:pageslocked') * $pagesize;
        
$mem['MemFree'] = (int) $this->kstat('unix:0:system_pages:pagesfree') * $pagesize;
        
$mem['SwapTotal'] = (int) $this->kstat('unix:0:vminfo:swap_avail') / 1024;
        
$mem['SwapUsed'] = (int) $this->kstat('unix:0:vminfo:swap_alloc') / 1024;
        
$mem['SwapFree'] = (int) $this->kstat('unix:0:vminfo:swap_free') / 1024;

        return 
$mem;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.2968 ]--