!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

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


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

declare(strict_types=1);

namespace 
PhpMyAdmin\Server\SysInfo;

use 
COM;
use function 
class_exists;
use function 
count;
use function 
in_array;
use function 
is_string;
use function 
trim;

/**
 * Windows NT based SysInfo class
 */
class WindowsNt extends Base
{
    
/** @var COM|null */
    
private $wmi;

    
/**
     * The OS name
     *
     * @var string
     */
    
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
     */
    
public function loadavg()
    {
        
$sum 0;
        
$buffer $this->getWMI('Win32_Processor', ['LoadPercentage']);

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

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

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

    
/**
     * 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 = [])
    {
        
$arrData = [];

        
$objWEBM $this->wmi->Get($strClass);
        
$arrProp $objWEBM->Properties_;
        
$arrWEBMCol $objWEBM->Instances_();
        foreach (
$arrWEBMCol as $objItem) {
            
$arrInstance = [];
            foreach (
$arrProp as $propItem) {
                
$name $propItem->Name;
                if (! empty(
$strValue) && ! in_array($name$strValue)) {
                    continue;
                }

                
$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
     */
    
public function memory()
    {
        
$buffer $this->getWMI(
            
'Win32_OperatingSystem',
            [
                
'TotalVisibleMemorySize',
                
'FreePhysicalMemory',
            ]
        );
        
$mem = [];
        
$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.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0048 ]--