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


Viewing file:     GetFieldController.php (2.57 KB)      -rwxr-x---
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

declare(strict_types=1);

namespace 
PhpMyAdmin\Controllers\Table;

use 
PhpMyAdmin\Core;
use 
PhpMyAdmin\DatabaseInterface;
use 
PhpMyAdmin\Html\Generator;
use 
PhpMyAdmin\Mime;
use 
PhpMyAdmin\ResponseRenderer;
use 
PhpMyAdmin\Template;
use 
PhpMyAdmin\Util;

use function 
__;
use function 
htmlspecialchars;
use function 
ini_set;
use function 
sprintf;
use function 
strlen;

/**
 * Provides download to a given field defined in parameters.
 */
class GetFieldController extends AbstractController
{
    
/** @var DatabaseInterface */
    
private $dbi;

    public function 
__construct(
        
ResponseRenderer $response,
        
Template $template,
        
string $db,
        
string $table,
        
DatabaseInterface $dbi
    
) {
        
parent::__construct($response$template$db$table);
        
$this->dbi $dbi;
    }

    public function 
__invoke(): void
    
{
        global 
$db$table;

        
$this->response->disable();

        
/* Check parameters */
        
Util::checkParameters([
            
'db',
            
'table',
        ]);

        
/* Select database */
        
if (! $this->dbi->selectDb($db)) {
            
Generator::mysqlDie(
                
sprintf(__('\'%s\' database does not exist.'), htmlspecialchars($db)),
                
'',
                
false
            
);
        }

        
/* Check if table exists */
        
if (! $this->dbi->getColumns($db$table)) {
            
Generator::mysqlDie(__('Invalid table name'));
        }

        if (
            ! isset(
$_GET['where_clause'])
            || ! isset(
$_GET['where_clause_sign'])
            || ! 
Core::checkSqlQuerySignature($_GET['where_clause'], $_GET['where_clause_sign'])
        ) {
            
/* l10n: In case a SQL query did not pass a security check  */
            
Core::fatalError(__('There is an issue with your request.'));

            return;
        }

        
/* Grab data */
        
$sql 'SELECT ' Util::backquote($_GET['transform_key'])
            . 
' FROM ' Util::backquote($table)
            . 
' WHERE ' $_GET['where_clause'] . ';';
        
$result $this->dbi->fetchValue($sql);

        
/* Check return code */
        
if ($result === false) {
            
Generator::mysqlDie(
                
__('MySQL returned an empty result set (i.e. zero rows).'),
                
$sql
            
);

            return;
        }

        
/* Avoid corrupting data */
        
ini_set('url_rewriter.tags''');

        
Core::downloadHeader(
            
$table '-' $_GET['transform_key'] . '.bin',
            
Mime::detect($result),
            
strlen($result)
        );
        echo 
$result;
    }
}

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