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


Viewing file:     MultiTableQuery.php (3.55 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Handles DB Multi-table query
 */

declare(strict_types=1);

namespace 
PhpMyAdmin\Database;

use 
PhpMyAdmin\DatabaseInterface;
use 
PhpMyAdmin\Operations;
use 
PhpMyAdmin\ParseAnalyze;
use 
PhpMyAdmin\Relation;
use 
PhpMyAdmin\RelationCleanup;
use 
PhpMyAdmin\Sql;
use 
PhpMyAdmin\Template;
use 
PhpMyAdmin\Transformations;
use 
PhpMyAdmin\Url;
use function 
array_keys;
use function 
md5;

/**
 * Class to handle database Multi-table querying
 */
class MultiTableQuery
{
    
/**
     * DatabaseInterface instance
     *
     * @access private
     * @var DatabaseInterface
     */
    
private $dbi;

    
/**
     * Database name
     *
     * @access private
     * @var string
     */
    
private $db;

    
/**
     * Default number of columns
     *
     * @access private
     * @var int
     */
    
private $defaultNoOfColumns;

    
/**
     * Table names
     *
     * @access private
     * @var array
     */
    
private $tables;

    
/** @var Template */
    
public $template;

    
/**
     * @param DatabaseInterface $dbi                DatabaseInterface instance
     * @param Template          $template           Template instance
     * @param string            $dbName             Database name
     * @param int               $defaultNoOfColumns Default number of columns
     */
    
public function __construct(
        
DatabaseInterface $dbi,
        
Template $template,
        
$dbName,
        
$defaultNoOfColumns 3
    
) {
        
$this->dbi $dbi;
        
$this->db $dbName;
        
$this->defaultNoOfColumns $defaultNoOfColumns;

        
$this->template $template;

        
$this->tables $this->dbi->getTables($this->db);
    }

    
/**
     * Get Multi-Table query page HTML
     *
     * @return string Multi-Table query page HTML
     */
    
public function getFormHtml()
    {
        
$tables = [];
        foreach (
$this->tables as $table) {
            
$tables[$table]['hash'] = md5($table);
            
$tables[$table]['columns'] = array_keys(
                
$this->dbi->getColumns($this->db$table)
            );
        }

        return 
$this->template->render('database/multi_table_query/form', [
            
'db' => $this->db,
            
'tables' => $tables,
            
'default_no_of_columns' => $this->defaultNoOfColumns,
        ]);
    }

    
/**
     * Displays multi-table query results
     *
     * @param string $sqlQuery       The query to parse
     * @param string $db             The current database
     * @param string $themeImagePath Uri of the PMA theme image
     */
    
public static function displayResults($sqlQuery$db$themeImagePath): string
    
{
        global 
$dbi;

        [, 
$db] = ParseAnalyze::sqlQuery($sqlQuery$db);

        
$goto Url::getFromRoute('/database/multi-table-query');

        
$relation = new Relation($dbi);
        
$sql = new Sql(
            
$dbi,
            
$relation,
            new 
RelationCleanup($dbi$relation),
            new 
Operations($dbi$relation),
            new 
Transformations(),
            new 
Template()
        );

        return 
$sql->executeQueryAndSendQueryResponse(
            
null// analyzed_sql_results
            
false// is_gotofile
            
$db// db
            
null// table
            
null// find_real_end
            
null// sql_query_for_bookmark - see below
            
null// extra_data
            
null// message_to_show
            
null// sql_data
            
$goto// goto
            
$themeImagePath,
            
null// disp_query
            
null// disp_message
            
$sqlQuery// 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.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0031 ]--