Windows NT DGPENSV2LPKMN 10.0 build 14393 (Windows Server 2016) AMD64
Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.3.25
: 172.16.0.66 | : 172.16.0.254
Cant Read [ /etc/named.conf ]
7.3.25
SYSTEM
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
BLACK DEFEND!
README
+ Create Folder
+ Create File
[ A ]
[ C ]
[ D ]
C: /
xampp7 /
phpMyAdmin /
libraries /
classes /
[ HOME SHELL ]
Name
Size
Permission
Action
Charsets
[ DIR ]
drwxrwxrwx
Config
[ DIR ]
drwxrwxrwx
Controllers
[ DIR ]
drwxrwxrwx
Database
[ DIR ]
drwxrwxrwx
Dbi
[ DIR ]
drwxrwxrwx
Di
[ DIR ]
drwxrwxrwx
Display
[ DIR ]
drwxrwxrwx
Engines
[ DIR ]
drwxrwxrwx
Gis
[ DIR ]
drwxrwxrwx
Navigation
[ DIR ]
drwxrwxrwx
Plugins
[ DIR ]
drwxrwxrwx
Properties
[ DIR ]
drwxrwxrwx
Rte
[ DIR ]
drwxrwxrwx
Server
[ DIR ]
drwxrwxrwx
Setup
[ DIR ]
drwxrwxrwx
Twig
[ DIR ]
drwxrwxrwx
Utils
[ DIR ]
drwxrwxrwx
Advisor.php
19.56
KB
-rw-rw-rw-
Bookmark.php
10.74
KB
-rw-rw-rw-
BrowseForeigners.php
11.15
KB
-rw-rw-rw-
CentralColumns.php
44.19
KB
-rw-rw-rw-
Charsets.php
6.14
KB
-rw-rw-rw-
CheckUserPrivileges.php
12.59
KB
-rw-rw-rw-
Config.php
57.38
KB
-rw-rw-rw-
Console.php
3.69
KB
-rw-rw-rw-
Core.php
38.31
KB
-rw-rw-rw-
CreateAddField.php
17.91
KB
-rw-rw-rw-
DatabaseInterface.php
104.47
KB
-rw-rw-rw-
Encoding.php
8.68
KB
-rw-rw-rw-
Error.php
13.34
KB
-rw-rw-rw-
ErrorHandler.php
17.17
KB
-rw-rw-rw-
ErrorReport.php
8.92
KB
-rw-rw-rw-
Export.php
42.76
KB
-rw-rw-rw-
File.php
21.29
KB
-rw-rw-rw-
FileListing.php
2.83
KB
-rw-rw-rw-
Font.php
5.54
KB
-rw-rw-rw-
Footer.php
10.6
KB
-rw-rw-rw-
Header.php
21.87
KB
-rw-rw-rw-
Import.php
56.56
KB
-rw-rw-rw-
Index.php
24.5
KB
-rw-rw-rw-
IndexColumn.php
4.44
KB
-rw-rw-rw-
InsertEdit.php
129.31
KB
-rw-rw-rw-
InternalRelations.php
17.42
KB
-rw-rw-rw-
IpAllowDeny.php
9.57
KB
-rw-rw-rw-
Language.php
4.31
KB
-rw-rw-rw-
LanguageManager.php
23.71
KB
-rw-rw-rw-
Linter.php
5.21
KB
-rw-rw-rw-
ListAbstract.php
2.51
KB
-rw-rw-rw-
ListDatabase.php
4.34
KB
-rw-rw-rw-
Logging.php
2.6
KB
-rw-rw-rw-
Menu.php
22.36
KB
-rw-rw-rw-
Message.php
19.32
KB
-rw-rw-rw-
Mime.php
916
B
-rw-rw-rw-
MultSubmits.php
23.64
KB
-rw-rw-rw-
Normalization.php
40.41
KB
-rw-rw-rw-
OpenDocument.php
8.52
KB
-rw-rw-rw-
Operations.php
81.25
KB
-rw-rw-rw-
OutputBuffering.php
3.71
KB
-rw-rw-rw-
ParseAnalyze.php
2.55
KB
-rw-rw-rw-
Partition.php
7.27
KB
-rw-rw-rw-
Pdf.php
4.37
KB
-rw-rw-rw-
Plugins.php
22.95
KB
-rw-rw-rw-
RecentFavoriteTable.php
12.04
KB
-rw-rw-rw-
Relation.php
79.64
KB
-rw-rw-rw-
RelationCleanup.php
15
KB
-rw-rw-rw-
Replication.php
5.75
KB
-rw-rw-rw-
ReplicationGui.php
21.23
KB
-rw-rw-rw-
Response.php
16.14
KB
-rw-rw-rw-
Sanitize.php
14.51
KB
-rw-rw-rw-
SavedSearches.php
11.94
KB
-rw-rw-rw-
Scripts.php
3.65
KB
-rw-rw-rw-
Session.php
7.62
KB
-rw-rw-rw-
Sql.php
82.09
KB
-rw-rw-rw-
SqlQueryForm.php
17.63
KB
-rw-rw-rw-
StorageEngine.php
13.75
KB
-rw-rw-rw-
SubPartition.php
3.55
KB
-rw-rw-rw-
SysInfo.php
1.61
KB
-rw-rw-rw-
SysInfoBase.php
822
B
-rw-rw-rw-
SysInfoLinux.php
2.16
KB
-rw-rw-rw-
SysInfoSunOS.php
1.89
KB
-rw-rw-rw-
SysInfoWINNT.php
3.27
KB
-rw-rw-rw-
SystemDatabase.php
3.97
KB
-rw-rw-rw-
Table.php
94.87
KB
-rw-rw-rw-
TablePartitionDefinition.php
6.64
KB
-rw-rw-rw-
Template.php
4.02
KB
-rw-rw-rw-
Theme.php
8.62
KB
-rw-rw-rw-
ThemeManager.php
10.42
KB
-rw-rw-rw-
Tracker.php
30.13
KB
-rw-rw-rw-
Tracking.php
40.26
KB
-rw-rw-rw-
Transformations.php
16.27
KB
-rw-rw-rw-
TwoFactor.php
7.14
KB
-rw-rw-rw-
Types.php
24.93
KB
-rw-rw-rw-
Url.php
8.32
KB
-rw-rw-rw-
UserPassword.php
9
KB
-rw-rw-rw-
UserPreferences.php
8.62
KB
-rw-rw-rw-
UserPreferencesHeader.php
4.13
KB
-rw-rw-rw-
Util.php
168.02
KB
-rw-rw-rw-
VersionInformation.php
6.92
KB
-rw-rw-rw-
ZipExtension.php
10.25
KB
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Response.php
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * Manages the rendering of pages in PMA * * @package PhpMyAdmin */ declare(strict_types=1); namespace PhpMyAdmin; use PhpMyAdmin\Core; use PhpMyAdmin\Footer; use PhpMyAdmin\Header; use PhpMyAdmin\Message; use PhpMyAdmin\OutputBuffering; /** * Singleton class used to manage the rendering of pages in PMA * * @package PhpMyAdmin */ class Response { /** * Response instance * * @access private * @static * @var Response */ private static $_instance; /** * Header instance * * @access private * @var Header */ private $_header; /** * HTML data to be used in the response * * @access private * @var string */ private $_HTML; /** * An array of JSON key-value pairs * to be sent back for ajax requests * * @access private * @var array */ private $_JSON; /** * PhpMyAdmin\Footer instance * * @access private * @var Footer */ private $_footer; /** * Whether we are servicing an ajax request. * * @access private * @var bool */ private $_isAjax; /** * Whether response object is disabled * * @access private * @var bool */ private $_isDisabled; /** * Whether there were any errors during the processing of the request * Only used for ajax responses * * @access private * @var bool */ private $_isSuccess; /** * @var array<int, string> * @see http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml */ protected static $httpStatusMessages = [ // Informational 100 => 'Continue', 101 => 'Switching Protocols', 102 => 'Processing', 103 => 'Early Hints', // Success 200 => 'OK', 201 => 'Created', 202 => 'Accepted', 203 => 'Non-Authoritative Information', 204 => 'No Content', 205 => 'Reset Content', 206 => 'Partial Content', 207 => 'Multi-Status', 208 => 'Already Reported', 226 => 'IM Used', // Redirection 300 => 'Multiple Choices', 301 => 'Moved Permanently', 302 => 'Found', 303 => 'See Other', 304 => 'Not Modified', 305 => 'Use Proxy', 307 => 'Temporary Redirect', 308 => 'Permanent Redirect', // Client Error 400 => 'Bad Request', 401 => 'Unauthorized', 402 => 'Payment Required', 403 => 'Forbidden', 404 => 'Not Found', 405 => 'Method Not Allowed', 406 => 'Not Acceptable', 407 => 'Proxy Authentication Required', 408 => 'Request Timeout', 409 => 'Conflict', 410 => 'Gone', 411 => 'Length Required', 412 => 'Precondition Failed', 413 => 'Payload Too Large', 414 => 'URI Too Long', 415 => 'Unsupported Media Type', 416 => 'Range Not Satisfiable', 417 => 'Expectation Failed', 421 => 'Misdirected Request', 422 => 'Unprocessable Entity', 423 => 'Locked', 424 => 'Failed Dependency', 425 => 'Too Early', 426 => 'Upgrade Required', 427 => 'Unassigned', 428 => 'Precondition Required', 429 => 'Too Many Requests', 430 => 'Unassigned', 431 => 'Request Header Fields Too Large', 451 => 'Unavailable For Legal Reasons', // Server Error 500 => 'Internal Server Error', 501 => 'Not Implemented', 502 => 'Bad Gateway', 503 => 'Service Unavailable', 504 => 'Gateway Timeout', 505 => 'HTTP Version Not Supported', 506 => 'Variant Also Negotiates', 507 => 'Insufficient Storage', 508 => 'Loop Detected', 509 => 'Unassigned', 510 => 'Not Extended', 511 => 'Network Authentication Required', ]; /** * Creates a new class instance */ private function __construct() { if (! defined('TESTSUITE')) { $buffer = OutputBuffering::getInstance(); $buffer->start(); register_shutdown_function([$this, 'response']); } $this->_header = new Header(); $this->_HTML = ''; $this->_JSON = []; $this->_footer = new Footer(); $this->_isSuccess = true; $this->_isDisabled = false; $this->setAjax(! empty($_REQUEST['ajax_request'])); } /** * Set the ajax flag to indicate whether * we are servicing an ajax request * * @param bool $isAjax Whether we are servicing an ajax request * * @return void */ public function setAjax(bool $isAjax): void { $this->_isAjax = $isAjax; $this->_header->setAjax($this->_isAjax); $this->_footer->setAjax($this->_isAjax); } /** * Returns the singleton Response object * * @return Response object */ public static function getInstance() { if (empty(self::$_instance)) { self::$_instance = new Response(); } return self::$_instance; } /** * Set the status of an ajax response, * whether it is a success or an error * * @param bool $state Whether the request was successfully processed * * @return void */ public function setRequestStatus(bool $state): void { $this->_isSuccess = ($state === true); } /** * Returns true or false depending on whether * we are servicing an ajax request * * @return bool */ public function isAjax(): bool { return $this->_isAjax; } /** * Disables the rendering of the header * and the footer in responses * * @return void */ public function disable() { $this->_header->disable(); $this->_footer->disable(); $this->_isDisabled = true; } /** * Returns a PhpMyAdmin\Header object * * @return Header */ public function getHeader() { return $this->_header; } /** * Returns a PhpMyAdmin\Footer object * * @return Footer */ public function getFooter() { return $this->_footer; } /** * Add HTML code to the response * * @param string $content A string to be appended to * the current output buffer * * @return void */ public function addHTML($content) { if (is_array($content)) { foreach ($content as $msg) { $this->addHTML($msg); } } elseif ($content instanceof Message) { $this->_HTML .= $content->getDisplay(); } else { $this->_HTML .= $content; } } /** * Add JSON code to the response * * @param mixed $json Either a key (string) or an * array or key-value pairs * @param mixed $value Null, if passing an array in $json otherwise * it's a string value to the key * * @return void */ public function addJSON($json, $value = null) { if (is_array($json)) { foreach ($json as $key => $value) { $this->addJSON($key, $value); } } else { if ($value instanceof Message) { $this->_JSON[$json] = $value->getDisplay(); } else { $this->_JSON[$json] = $value; } } } /** * Renders the HTML response text * * @return string */ private function _getDisplay() { // The header may contain nothing at all, // if its content was already rendered // and, in this case, the header will be // in the content part of the request $retval = $this->_header->getDisplay(); $retval .= $this->_HTML; $retval .= $this->_footer->getDisplay(); return $retval; } /** * Sends an HTML response to the browser * * @return void */ private function _htmlResponse() { echo $this->_getDisplay(); } /** * Sends a JSON response to the browser * * @return void */ private function _ajaxResponse() { /* Avoid wrapping in case we're disabled */ if ($this->_isDisabled) { echo $this->_getDisplay(); return; } if (! isset($this->_JSON['message'])) { $this->_JSON['message'] = $this->_getDisplay(); } elseif ($this->_JSON['message'] instanceof Message) { $this->_JSON['message'] = $this->_JSON['message']->getDisplay(); } if ($this->_isSuccess) { $this->_JSON['success'] = true; } else { $this->_JSON['success'] = false; $this->_JSON['error'] = $this->_JSON['message']; unset($this->_JSON['message']); } if ($this->_isSuccess) { if (! isset($this->_JSON['title'])) { $this->addJSON('title', '<title>' . $this->getHeader()->getPageTitle() . '</title>'); } if (isset($GLOBALS['dbi'])) { $menuHash = $this->getHeader()->getMenu()->getHash(); $this->addJSON('menuHash', $menuHash); $hashes = []; if (isset($_REQUEST['menuHashes'])) { $hashes = explode('-', $_REQUEST['menuHashes']); } if (! in_array($menuHash, $hashes)) { $this->addJSON( 'menu', $this->getHeader() ->getMenu() ->getDisplay() ); } } $this->addJSON('scripts', $this->getHeader()->getScripts()->getFiles()); $this->addJSON('selflink', $this->getFooter()->getSelfUrl()); $this->addJSON('displayMessage', $this->getHeader()->getMessage()); $debug = $this->_footer->getDebugMessage(); if (empty($_REQUEST['no_debug']) && strlen($debug) > 0 ) { $this->addJSON('debug', $debug); } $errors = $this->_footer->getErrorMessages(); if (strlen($errors) > 0) { $this->addJSON('errors', $errors); } $promptPhpErrors = $GLOBALS['error_handler']->hasErrorsForPrompt(); $this->addJSON('promptPhpErrors', $promptPhpErrors); if (empty($GLOBALS['error_message'])) { // set current db, table and sql query in the querywindow // (this is for the bottom console) $query = ''; $maxChars = $GLOBALS['cfg']['MaxCharactersInDisplayedSQL']; if (isset($GLOBALS['sql_query']) && mb_strlen($GLOBALS['sql_query']) < $maxChars ) { $query = $GLOBALS['sql_query']; } $this->addJSON( 'reloadQuerywindow', [ 'db' => Core::ifSetOr($GLOBALS['db'], ''), 'table' => Core::ifSetOr($GLOBALS['table'], ''), 'sql_query' => $query, ] ); if (! empty($GLOBALS['focus_querywindow'])) { $this->addJSON('_focusQuerywindow', $query); } if (! empty($GLOBALS['reload'])) { $this->addJSON('reloadNavigation', 1); } $this->addJSON('params', $this->getHeader()->getJsParams()); } } // Set the Content-Type header to JSON so that jQuery parses the // response correctly. Core::headerJSON(); $result = json_encode($this->_JSON); if ($result === false) { switch (json_last_error()) { case JSON_ERROR_NONE: $error = 'No errors'; break; case JSON_ERROR_DEPTH: $error = 'Maximum stack depth exceeded'; break; case JSON_ERROR_STATE_MISMATCH: $error = 'Underflow or the modes mismatch'; break; case JSON_ERROR_CTRL_CHAR: $error = 'Unexpected control character found'; break; case JSON_ERROR_SYNTAX: $error = 'Syntax error, malformed JSON'; break; case JSON_ERROR_UTF8: $error = 'Malformed UTF-8 characters, possibly incorrectly encoded'; break; case JSON_ERROR_RECURSION: $error = 'One or more recursive references in the value to be encoded'; break; case JSON_ERROR_INF_OR_NAN: $error = 'One or more NAN or INF values in the value to be encoded'; break; case JSON_ERROR_UNSUPPORTED_TYPE: $error = 'A value of a type that cannot be encoded was given'; break; default: $error = 'Unknown error'; break; } echo json_encode([ 'success' => false, 'error' => 'JSON encoding failed: ' . $error, ]); } else { echo $result; } } /** * Sends an HTML response to the browser * * @return void */ public function response() { $buffer = OutputBuffering::getInstance(); if (empty($this->_HTML)) { $this->_HTML = $buffer->getContents(); } if ($this->isAjax()) { $this->_ajaxResponse(); } else { $this->_htmlResponse(); } $buffer->flush(); exit; } /** * Wrapper around PHP's header() function. * * @param string $text header string * * @return void */ public function header($text) { header($text); } /** * Wrapper around PHP's headers_sent() function. * * @return bool */ public function headersSent() { return headers_sent(); } /** * Wrapper around PHP's http_response_code() function. * * @param int $response_code will set the response code. * * @return void */ public function httpResponseCode($response_code) { http_response_code($response_code); } /** * Sets http response code. * * @param int $responseCode will set the response code. * * @return void */ public function setHttpResponseCode(int $responseCode): void { $this->httpResponseCode($responseCode); $header = 'status: ' . $responseCode . ' '; if (isset(static::$httpStatusMessages[$responseCode])) { $header .= static::$httpStatusMessages[$responseCode]; } else { $header .= 'Web server is down'; } if (PHP_SAPI !== 'cgi-fcgi') { $this->header($header); } } /** * Generate header for 303 * * @param string $location will set location to redirect. * * @return void */ public function generateHeader303($location) { $this->setHttpResponseCode(303); $this->header('Location: ' . $location); if (! defined('TESTSUITE')) { exit; } } /** * Configures response for the login page * * @return bool Whether caller should exit */ public function loginPage() { /* Handle AJAX redirection */ if ($this->isAjax()) { $this->setRequestStatus(false); // redirect_flag redirects to the login page $this->addJSON('redirect_flag', '1'); return true; } $this->getFooter()->setMinimal(); $header = $this->getHeader(); $header->setBodyId('loginform'); $header->setTitle('phpMyAdmin'); $header->disableMenuAndConsole(); $header->disableWarnings(); return false; } }
Close