Linux ip-172-31-33-47 5.4.0-1045-aws #47~18.04.1-Ubuntu SMP Tue Apr 13 15:58:14 UTC 2021 x86_64
Apache/2.4.29 (Ubuntu)
: 172.31.33.47 | : 18.119.103.13
Cant Read [ /etc/named.conf ]
7.4.20
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
stage /
phpmyadmin /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
Advisory
[ DIR ]
drwxr-xr-x
Bookmarks
[ DIR ]
drwxr-xr-x
Charsets
[ DIR ]
drwxr-xr-x
Command
[ DIR ]
drwxr-xr-x
Config
[ DIR ]
drwxr-xr-x
ConfigStorage
[ DIR ]
drwxr-xr-x
Container
[ DIR ]
drwxr-xr-x
Controllers
[ DIR ]
drwxr-xr-x
Crypto
[ DIR ]
drwxr-xr-x
Database
[ DIR ]
drwxr-xr-x
Dbal
[ DIR ]
drwxr-xr-x
Display
[ DIR ]
drwxr-xr-x
Engines
[ DIR ]
drwxr-xr-x
Error
[ DIR ]
drwxr-xr-x
Exceptions
[ DIR ]
drwxr-xr-x
Export
[ DIR ]
drwxr-xr-x
Favorites
[ DIR ]
drwxr-xr-x
Gis
[ DIR ]
drwxr-xr-x
Html
[ DIR ]
drwxr-xr-x
Http
[ DIR ]
drwxr-xr-x
Identifiers
[ DIR ]
drwxr-xr-x
Image
[ DIR ]
drwxr-xr-x
Import
[ DIR ]
drwxr-xr-x
Navigation
[ DIR ]
drwxr-xr-x
Partitioning
[ DIR ]
drwxr-xr-x
Plugins
[ DIR ]
drwxr-xr-x
Properties
[ DIR ]
drwxr-xr-x
Providers
[ DIR ]
drwxr-xr-x
Query
[ DIR ]
drwxr-xr-x
Replication
[ DIR ]
drwxr-xr-x
Routing
[ DIR ]
drwxr-xr-x
Server
[ DIR ]
drwxr-xr-x
Setup
[ DIR ]
drwxr-xr-x
Table
[ DIR ]
drwxr-xr-x
Theme
[ DIR ]
drwxr-xr-x
Tracking
[ DIR ]
drwxr-xr-x
Triggers
[ DIR ]
drwxr-xr-x
Twig
[ DIR ]
drwxr-xr-x
Utils
[ DIR ]
drwxr-xr-x
WebAuthn
[ DIR ]
drwxr-xr-x
Cache.php
1.44
KB
-rw-r--r--
Charsets.php
7.08
KB
-rw-r--r--
Core.php
22.22
KB
-rw-r--r--
Current.php
228
B
-rw-r--r--
DatabaseInterface.php
66.01
KB
-rw-r--r--
DbTableExists.php
1.4
KB
-rw-r--r--
EditField.php
495
B
-rw-r--r--
Encoding.php
7.97
KB
-rw-r--r--
FieldMetadata.php
10.64
KB
-rw-r--r--
File.php
19.72
KB
-rw-r--r--
FlashMessages.php
1.23
KB
-rw-r--r--
Git.php
18.5
KB
-rw-r--r--
Header.php
19.81
KB
-rw-r--r--
IndexColumn.php
4.7
KB
-rw-r--r--
InsertEdit.php
73.25
KB
-rw-r--r--
InsertEditColumn.php
1.96
KB
-rw-r--r--
IpAllowDeny.php
9
KB
-rw-r--r--
Menu.php
19.9
KB
-rw-r--r--
Message.php
14.58
KB
-rw-r--r--
Mime.php
893
B
-rw-r--r--
OpenDocument.php
8.78
KB
-rw-r--r--
Plugins.php
22.28
KB
-rw-r--r--
Release.php
298
B
-rw-r--r--
ResponseRenderer.php
13.03
KB
-rw-r--r--
Scripts.php
3.7
KB
-rw-r--r--
Sql.php
60.06
KB
-rw-r--r--
StorageEngine.php
15.08
KB
-rw-r--r--
SystemDatabase.php
4.62
KB
-rw-r--r--
Template.php
3.98
KB
-rw-r--r--
Transformations.php
17.2
KB
-rw-r--r--
TwoFactor.php
7.61
KB
-rw-r--r--
UniqueCondition.php
8.26
KB
-rw-r--r--
Url.php
10.54
KB
-rw-r--r--
UrlRedirector.php
1.43
KB
-rw-r--r--
Util.php
68.74
KB
-rw-r--r--
Version.php
554
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : SystemDatabase.php
<?php declare(strict_types=1); namespace PhpMyAdmin; use PhpMyAdmin\ConfigStorage\Relation; use PhpMyAdmin\Dbal\ResultInterface; use function count; use function sprintf; class SystemDatabase { private Relation $relation; /** * Get instance of SystemDatabase * * @param DatabaseInterface $dbi Database interface for the system database */ public function __construct(protected DatabaseInterface $dbi) { $this->relation = new Relation($this->dbi); } /** * Get existing data on transformations applied for * columns in a particular table * * @param string $db Database name looking for * * @return ResultInterface|false Result of executed SQL query */ public function getExistingTransformationData(string $db): ResultInterface|false { $browserTransformationFeature = $this->relation->getRelationParameters()->browserTransformationFeature; if ($browserTransformationFeature === null) { return false; } // Get the existing transformation details of the same database // from pma__column_info table $transformationSql = sprintf( 'SELECT * FROM %s.%s WHERE `db_name` = %s', Util::backquote($browserTransformationFeature->database), Util::backquote($browserTransformationFeature->columnInfo), $this->dbi->quoteString($db), ); return $this->dbi->tryQuery($transformationSql); } /** * Get SQL query for store new transformation details of a VIEW * * @param ResultInterface $transformationData Result set of SQL execution * @param SystemColumn[] $columnMap Details of VIEW columns * @param string $viewName Name of the VIEW * @param string $db Database name of the VIEW * * @return string SQL query for new transformations */ public function getNewTransformationDataSql( ResultInterface $transformationData, array $columnMap, string $viewName, string $db, ): string { $browserTransformationFeature = $this->relation->getRelationParameters()->browserTransformationFeature; if ($browserTransformationFeature === null) { return ''; } // Need to store new transformation details for VIEW $newTransformationsSql = sprintf( 'INSERT INTO %s.%s (' . '`db_name`, `table_name`, `column_name`, ' . '`comment`, `mimetype`, `transformation`, ' . '`transformation_options`) VALUES', Util::backquote($browserTransformationFeature->database), Util::backquote($browserTransformationFeature->columnInfo), ); $columnCount = 0; $addComma = false; /** @infection-ignore-all */ while ($dataRow = $transformationData->fetchAssoc()) { foreach ($columnMap as $column) { if ( $dataRow['table_name'] != $column->tableName || $dataRow['column_name'] != $column->referringColumn ) { continue; } $newTransformationsSql .= sprintf( '%s (%s, %s, %s, %s, %s, %s, %s)', $addComma ? ', ' : '', $this->dbi->quoteString($db), $this->dbi->quoteString($viewName), $this->dbi->quoteString($column->realColumn ?? $column->referringColumn), $this->dbi->quoteString($dataRow['comment']), $this->dbi->quoteString($dataRow['mimetype']), $this->dbi->quoteString($dataRow['transformation']), $this->dbi->quoteString($dataRow['transformation_options']), ); $addComma = true; $columnCount++; break; } if ($columnCount === count($columnMap)) { break; } } return $columnCount > 0 ? $newTransformationsSql : ''; } /** * @param string[] $viewColumns * * @return SystemColumn[] * @psalm-return list<SystemColumn> */ public function getColumnMapFromSql(string $sqlQuery, array $viewColumns): array { $result = $this->dbi->tryQuery($sqlQuery); if ($result === false) { return []; } $columnMap = []; foreach ($this->dbi->getFieldsMeta($result) as $i => $field) { $columnMap[] = new SystemColumn($field->table, $field->name, $viewColumns[$i] ?? null); } return $columnMap; } }
Close