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


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

declare(strict_types=1);

namespace 
PhpMyAdmin\Controllers\Table\Structure;

use 
PhpMyAdmin\Controllers\Table\AbstractController;
use 
PhpMyAdmin\ParseAnalyze;
use 
PhpMyAdmin\ResponseRenderer;
use 
PhpMyAdmin\Sql;
use 
PhpMyAdmin\Template;
use 
PhpMyAdmin\Url;
use 
PhpMyAdmin\Util;

use function 
__;
use function 
implode;
use function 
sprintf;

final class 
BrowseController extends AbstractController
{
    
/** @var Sql */
    
private $sql;

    public function 
__construct(ResponseRenderer $responseTemplate $templatestring $dbstring $tableSql $sql)
    {
        
parent::__construct($response$template$db$table);
        
$this->sql $sql;
    }

    public function 
__invoke(): void
    
{
        if (empty(
$_POST['selected_fld'])) {
            
$this->response->setRequestStatus(false);
            
$this->response->addJSON('message'__('No column selected.'));

            return;
        }

        
$this->displayTableBrowseForSelectedColumns($GLOBALS['goto']);
    }

    
/**
     * Function to display table browse for selected columns
     *
     * @param string $goto goto page url
     */
    
private function displayTableBrowseForSelectedColumns($goto): void
    
{
        
$GLOBALS['active_page'] = Url::getFromRoute('/sql');
        
$fields = [];
        foreach (
$_POST['selected_fld'] as $sval) {
            
$fields[] = Util::backquote($sval);
        }

        
$sql_query sprintf(
            
'SELECT %s FROM %s.%s',
            
implode(', '$fields),
            
Util::backquote($this->db),
            
Util::backquote($this->table)
        );

        
// Parse and analyze the query
        
[$analyzed_sql_results$this->db] = ParseAnalyze::sqlQuery($sql_query$this->db);

        
$this->response->addHTML(
            
$this->sql->executeQueryAndGetQueryResponse(
                
$analyzed_sql_results ?? '',
                
false// is_gotofile
                
$this->db// db
                
$this->table// table
                
null// find_real_end
                
null// sql_query_for_bookmark
                
null// extra_data
                
null// message_to_show
                
null// sql_data
                
$goto// goto
                
null// disp_query
                
null// disp_message
                
$sql_query// sql_query
                
null // complete_query
            
)
        );
    }
}

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