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


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

declare(strict_types=1);

namespace 
PhpMyAdmin\Server;

use 
PhpMyAdmin\DatabaseInterface;

use function 
__;

class 
Plugins
{
    
/** @var DatabaseInterface */
    
private $dbi;

    
/**
     * @param DatabaseInterface $dbi DatabaseInterface instance
     */
    
public function __construct(DatabaseInterface $dbi)
    {
        
$this->dbi $dbi;
    }

    
/**
     * @return Plugin[]
     */
    
public function getAll(): array
    {
        global 
$cfg;

        
$sql 'SHOW PLUGINS';
        if (! 
$cfg['Server']['DisableIS']) {
            
$sql 'SELECT * FROM information_schema.PLUGINS ORDER BY PLUGIN_TYPE, PLUGIN_NAME';
        }

        
$result $this->dbi->query($sql);
        
$plugins = [];
        while (
$row $result->fetchAssoc()) {
            
$plugins[] = $this->mapRowToPlugin($row);
        }

        return 
$plugins;
    }

    
/**
     * @return array<int|string, string>
     */
    
public function getAuthentication(): array
    {
        
$result $this->dbi->query(
            
'SELECT `PLUGIN_NAME`, `PLUGIN_DESCRIPTION` FROM `information_schema`.`PLUGINS`'
                
' WHERE `PLUGIN_TYPE` = \'AUTHENTICATION\';'
        
);

        
$plugins = [];

        while (
$row $result->fetchAssoc()) {
            
$plugins[$row['PLUGIN_NAME']] = $this->getTranslatedDescription($row['PLUGIN_DESCRIPTION']);
        }

        return 
$plugins;
    }

    private function 
getTranslatedDescription(string $description): string
    
{
        
// mysql_native_password
        
if ($description === 'Native MySQL authentication') {
            return 
__('Native MySQL authentication');
        }

        
// sha256_password
        
if ($description === 'SHA256 password authentication') {
            return 
__('SHA256 password authentication');
        }

        
// caching_sha2_password
        
if ($description === 'Caching sha2 authentication') {
            return 
__('Caching sha2 authentication');
        }

        
// auth_socket || unix_socket
        
if ($description === 'Unix Socket based authentication') {
            return 
__('Unix Socket based authentication');
        }

        
// mysql_old_password
        
if ($description === 'Old MySQL-4.0 authentication') {
            return 
__('Old MySQL-4.0 authentication');
        }

        return 
$description;
    }

    
/**
     * @param array $row Row fetched from database
     */
    
private function mapRowToPlugin(array $row): Plugin
    
{
        return 
Plugin::fromState([
            
'name' => $row['PLUGIN_NAME'] ?? $row['Name'],
            
'version' => $row['PLUGIN_VERSION'] ?? null,
            
'status' => $row['PLUGIN_STATUS'] ?? $row['Status'],
            
'type' => $row['PLUGIN_TYPE'] ?? $row['Type'],
            
'typeVersion' => $row['PLUGIN_TYPE_VERSION'] ?? null,
            
'library' => $row['PLUGIN_LIBRARY'] ?? $row['Library'] ?? null,
            
'libraryVersion' => $row['PLUGIN_LIBRARY_VERSION'] ?? null,
            
'author' => $row['PLUGIN_AUTHOR'] ?? null,
            
'description' => $row['PLUGIN_DESCRIPTION'] ?? null,
            
'license' => $row['PLUGIN_LICENSE'] ?? $row['License'],
            
'loadOption' => $row['LOAD_OPTION'] ?? null,
            
'maturity' => $row['PLUGIN_MATURITY'] ?? null,
            
'authVersion' => $row['PLUGIN_AUTH_VERSION'] ?? null,
        ]);
    }
}

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