Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.148.217.66
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp /
public /
myadmin /
libraries /
classes /
Delete
Unzip
Name
Size
Permission
Date
Action
Charsets
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Config
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Controllers
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Database
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Dbi
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Di
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Display
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Engines
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Gis
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Navigation
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Plugins
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Properties
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Rte
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Server
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Setup
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Twig
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Utils
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Advisor.php
19.56
KB
-rw-r--r--
2021-02-05 18:26
Bookmark.php
10.74
KB
-rw-r--r--
2021-02-05 18:26
BrowseForeigners.php
11.15
KB
-rw-r--r--
2021-02-05 18:26
CentralColumns.php
44.19
KB
-rw-r--r--
2021-02-05 18:26
Charsets.php
6.14
KB
-rw-r--r--
2021-02-05 18:26
CheckUserPrivileges.php
12.59
KB
-rw-r--r--
2021-02-05 18:26
Config.php
57.38
KB
-rw-r--r--
2021-02-05 18:26
Console.php
3.69
KB
-rw-r--r--
2021-02-05 18:26
Core.php
38.31
KB
-rw-r--r--
2021-02-05 18:26
CreateAddField.php
17.91
KB
-rw-r--r--
2021-02-05 18:26
DatabaseInterface.php
104.47
KB
-rw-r--r--
2021-02-05 18:26
Encoding.php
8.68
KB
-rw-r--r--
2021-02-05 18:26
Error.php
13.34
KB
-rw-r--r--
2021-02-05 18:26
ErrorHandler.php
17.17
KB
-rw-r--r--
2021-02-05 18:26
ErrorReport.php
8.92
KB
-rw-r--r--
2021-02-05 18:26
Export.php
42.76
KB
-rw-r--r--
2021-02-05 18:26
File.php
21.29
KB
-rw-r--r--
2021-02-05 18:26
FileListing.php
2.83
KB
-rw-r--r--
2021-02-05 18:26
Font.php
5.54
KB
-rw-r--r--
2021-02-05 18:26
Footer.php
10.6
KB
-rw-r--r--
2021-02-05 18:26
Header.php
21.87
KB
-rw-r--r--
2021-02-05 18:26
Import.php
56.56
KB
-rw-r--r--
2021-02-05 18:26
Index.php
24.5
KB
-rw-r--r--
2021-02-05 18:26
IndexColumn.php
4.44
KB
-rw-r--r--
2021-02-05 18:26
InsertEdit.php
129.31
KB
-rw-r--r--
2021-02-05 18:26
InternalRelations.php
17.42
KB
-rw-r--r--
2021-02-05 18:26
IpAllowDeny.php
9.57
KB
-rw-r--r--
2021-02-05 18:26
Language.php
4.31
KB
-rw-r--r--
2021-02-05 18:26
LanguageManager.php
23.71
KB
-rw-r--r--
2021-02-05 18:26
Linter.php
5.21
KB
-rw-r--r--
2021-02-05 18:26
ListAbstract.php
2.51
KB
-rw-r--r--
2021-02-05 18:26
ListDatabase.php
4.34
KB
-rw-r--r--
2021-02-05 18:26
Logging.php
2.6
KB
-rw-r--r--
2021-02-05 18:26
Menu.php
22.36
KB
-rw-r--r--
2021-02-05 18:26
Message.php
19.32
KB
-rw-r--r--
2021-02-05 18:26
Mime.php
916
B
-rw-r--r--
2021-02-05 18:26
MultSubmits.php
23.64
KB
-rw-r--r--
2021-02-05 18:26
Normalization.php
40.41
KB
-rw-r--r--
2021-02-05 18:26
OpenDocument.php
8.52
KB
-rw-r--r--
2021-02-05 18:26
Operations.php
81.25
KB
-rw-r--r--
2021-02-05 18:26
OutputBuffering.php
3.71
KB
-rw-r--r--
2021-02-05 18:26
ParseAnalyze.php
2.55
KB
-rw-r--r--
2021-02-05 18:26
Partition.php
7.27
KB
-rw-r--r--
2021-02-05 18:26
Pdf.php
4.37
KB
-rw-r--r--
2021-02-05 18:26
Plugins.php
22.95
KB
-rw-r--r--
2021-02-05 18:27
RecentFavoriteTable.php
12.04
KB
-rw-r--r--
2021-02-05 18:27
Relation.php
79.64
KB
-rw-r--r--
2021-02-05 18:27
RelationCleanup.php
15
KB
-rw-r--r--
2021-02-05 18:27
Replication.php
5.75
KB
-rw-r--r--
2021-02-05 18:27
ReplicationGui.php
21.23
KB
-rw-r--r--
2021-02-05 18:27
Response.php
16.14
KB
-rw-r--r--
2021-02-05 18:27
Sanitize.php
14.51
KB
-rw-r--r--
2021-02-05 18:27
SavedSearches.php
11.94
KB
-rw-r--r--
2021-02-05 18:27
Scripts.php
3.65
KB
-rw-r--r--
2021-02-05 18:27
Session.php
7.62
KB
-rw-r--r--
2021-02-05 18:27
Sql.php
82.09
KB
-rw-r--r--
2021-02-05 18:27
SqlQueryForm.php
17.63
KB
-rw-r--r--
2021-02-05 18:27
StorageEngine.php
13.75
KB
-rw-r--r--
2021-02-05 18:27
SubPartition.php
3.55
KB
-rw-r--r--
2021-02-05 18:27
SysInfo.php
1.61
KB
-rw-r--r--
2021-02-05 18:27
SysInfoBase.php
822
B
-rw-r--r--
2021-02-05 18:27
SysInfoLinux.php
2.16
KB
-rw-r--r--
2021-02-05 18:27
SysInfoSunOS.php
1.89
KB
-rw-r--r--
2021-02-05 18:27
SysInfoWINNT.php
3.27
KB
-rw-r--r--
2021-02-05 18:27
SystemDatabase.php
3.97
KB
-rw-r--r--
2021-02-05 18:27
Table.php
94.87
KB
-rw-r--r--
2021-02-05 18:27
TablePartitionDefinition.php
6.64
KB
-rw-r--r--
2021-02-05 18:27
Template.php
4.02
KB
-rw-r--r--
2021-02-05 18:27
Theme.php
8.62
KB
-rw-r--r--
2021-02-05 18:27
ThemeManager.php
10.42
KB
-rw-r--r--
2021-02-05 18:27
Tracker.php
30.13
KB
-rw-r--r--
2021-02-05 18:27
Tracking.php
40.26
KB
-rw-r--r--
2021-02-05 18:27
Transformations.php
16.27
KB
-rw-r--r--
2021-02-05 18:27
TwoFactor.php
7.14
KB
-rw-r--r--
2021-02-05 18:27
Types.php
24.93
KB
-rw-r--r--
2021-02-05 18:27
Url.php
8.32
KB
-rw-r--r--
2021-02-05 18:27
UserPassword.php
9
KB
-rw-r--r--
2021-02-05 18:27
UserPreferences.php
8.62
KB
-rw-r--r--
2021-02-05 18:27
UserPreferencesHeader.php
4.13
KB
-rw-r--r--
2021-02-05 18:27
Util.php
168.02
KB
-rw-r--r--
2021-02-05 18:27
VersionInformation.php
6.92
KB
-rw-r--r--
2021-02-05 18:27
ZipExtension.php
10.25
KB
-rw-r--r--
2021-02-05 18:27
Save
Rename
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * This class includes various sanitization methods that can be called statically * * @package PhpMyAdmin */ declare(strict_types=1); namespace PhpMyAdmin; use PhpMyAdmin\Core; use PhpMyAdmin\Util; /** * This class includes various sanitization methods that can be called statically * * @package PhpMyAdmin */ class Sanitize { /** * Checks whether given link is valid * * @param string $url URL to check * @param boolean $http Whether to allow http links * @param boolean $other Whether to allow ftp and mailto links * * @return boolean True if string can be used as link */ public static function checkLink($url, $http = false, $other = false) { $url = strtolower($url); $valid_starts = [ 'https://', './url.php?url=https%3a%2f%2f', './doc/html/', // possible return values from Util::getScriptNameForOption './index.php?', './server_databases.php?', './server_status.php?', './server_variables.php?', './server_privileges.php?', './db_structure.php?', './db_sql.php?', './db_search.php?', './db_operations.php?', './tbl_structure.php?', './tbl_sql.php?', './tbl_select.php?', './tbl_change.php?', './sql.php?', // Hardcoded options in \PhpMyAdmin\Config\SpecialSchemaLinks './db_events.php?', './db_routines.php?', './server_privileges.php?', './tbl_structure.php?', ]; $is_setup = Sanitize::isSetup(); // Adjust path to setup script location if ($is_setup) { foreach ($valid_starts as $key => $value) { if (substr($value, 0, 2) === './') { $valid_starts[$key] = '.' . $value; } } } if ($other) { $valid_starts[] = 'mailto:'; $valid_starts[] = 'ftp://'; } if ($http) { $valid_starts[] = 'http://'; } if ($is_setup) { $valid_starts[] = '?page=form&'; $valid_starts[] = '?page=servers&'; } foreach ($valid_starts as $val) { if (substr($url, 0, strlen($val)) == $val) { return true; } } return false; } /** * Check if we are currently on a setup folder page * * @return bool */ public static function isSetup(): bool { return $GLOBALS['PMA_Config'] !== null && $GLOBALS['PMA_Config']->get('is_setup'); } /** * Callback function for replacing [a@link@target] links in bb code. * * @param array $found Array of preg matches * * @return string Replaced string */ public static function replaceBBLink(array $found) { /* Check for valid link */ if (! self::checkLink($found[1])) { return $found[0]; } /* a-z and _ allowed in target */ if (! empty($found[3]) && preg_match('/[^a-z_]+/i', $found[3])) { return $found[0]; } /* Construct target */ $target = ''; if (! empty($found[3])) { $target = ' target="' . $found[3] . '"'; if ($found[3] == '_blank') { $target .= ' rel="noopener noreferrer"'; } } /* Construct url */ if (substr($found[1], 0, 4) == 'http') { $url = Core::linkURL($found[1]); } else { $url = $found[1]; } return '<a href="' . $url . '"' . $target . '>'; } /** * Callback function for replacing [doc@anchor] links in bb code. * * @param array $found Array of preg matches * * @return string Replaced string */ public static function replaceDocLink(array $found) { if (count($found) >= 4) { /* doc@page@anchor pattern */ $page = $found[1]; $anchor = $found[3]; } else { /* doc@anchor pattern */ $anchor = $found[1]; if (strncmp('faq', $anchor, 3) == 0) { $page = 'faq'; } elseif (strncmp('cfg', $anchor, 3) == 0) { $page = 'config'; } else { /* Guess */ $page = 'setup'; } } $link = Util::getDocuLink($page, $anchor, Sanitize::isSetup() ? '../' : ''); return '<a href="' . $link . '" target="documentation">'; } /** * Sanitizes $message, taking into account our special codes * for formatting. * * If you want to include result in element attribute, you should escape it. * * Examples: * * <p><?php echo Sanitize::sanitizeMessage($foo); ?></p> * * <a title="<?php echo Sanitize::sanitizeMessage($foo, true); ?>">bar</a> * * @param string $message the message * @param boolean $escape whether to escape html in result * @param boolean $safe whether string is safe (can keep < and > chars) * * @return string the sanitized message */ public static function sanitizeMessage($message, $escape = false, $safe = false) { if (! $safe) { $message = strtr((string) $message, ['<' => '<', '>' => '>']); } /* Interpret bb code */ $replace_pairs = [ '[em]' => '<em>', '[/em]' => '</em>', '[strong]' => '<strong>', '[/strong]' => '</strong>', '[code]' => '<code>', '[/code]' => '</code>', '[kbd]' => '<kbd>', '[/kbd]' => '</kbd>', '[br]' => '<br>', '[/a]' => '</a>', '[/doc]' => '</a>', '[sup]' => '<sup>', '[/sup]' => '</sup>', // used in common.inc.php: '[conferr]' => '<iframe src="show_config_errors.php"><a href="show_config_errors.php">show_config_errors.php</a></iframe>', // used in libraries/Util.php '[dochelpicon]' => Util::getImage('b_help', __('Documentation')), ]; $message = strtr($message, $replace_pairs); /* Match links in bb code ([a@url@target], where @target is options) */ $pattern = '/\[a@([^]"@]*)(@([^]"]*))?\]/'; /* Find and replace all links */ $message = preg_replace_callback($pattern, function ($match) { return self::replaceBBLink($match); }, $message); /* Replace documentation links */ $message = preg_replace_callback( '/\[doc@([a-zA-Z0-9_-]+)(@([a-zA-Z0-9_-]*))?\]/', function ($match) { return self::replaceDocLink($match); }, $message ); /* Possibly escape result */ if ($escape) { $message = htmlspecialchars($message); } return $message; } /** * Sanitize a filename by removing anything besides legit characters * * Intended usecase: * When using a filename in a Content-Disposition header * the value should not contain ; or " * * When exporting, avoiding generation of an unexpected double-extension file * * @param string $filename The filename * @param boolean $replaceDots Whether to also replace dots * * @return string the sanitized filename * */ public static function sanitizeFilename($filename, $replaceDots = false) { $pattern = '/[^A-Za-z0-9_'; // if we don't have to replace dots if (! $replaceDots) { // then add the dot to the list of legit characters $pattern .= '.'; } $pattern .= '-]/'; $filename = preg_replace($pattern, '_', $filename); return $filename; } /** * Format a string so it can be a string inside JavaScript code inside an * eventhandler (onclick, onchange, on..., ). * This function is used to displays a javascript confirmation box for * "DROP/DELETE/ALTER" queries. * * @param string $a_string the string to format * @param boolean $add_backquotes whether to add backquotes to the string or not * * @return string the formatted string * * @access public */ public static function jsFormat($a_string = '', $add_backquotes = true) { $a_string = htmlspecialchars((string) $a_string); $a_string = self::escapeJsString($a_string); // Needed for inline javascript to prevent some browsers // treating it as a anchor $a_string = str_replace('#', '\\#', $a_string); return $add_backquotes ? Util::backquote($a_string) : $a_string; } // end of the 'jsFormat' function /** * escapes a string to be inserted as string a JavaScript block * enclosed by <![CDATA[ ... ]]> * this requires only to escape ' with \' and end of script block * * We also remove NUL byte as some browsers (namely MSIE) ignore it and * inserting it anywhere inside </script would allow to bypass this check. * * @param string $string the string to be escaped * * @return string the escaped string */ public static function escapeJsString($string) { return preg_replace( '@</script@i', '</\' + \'script', strtr( (string) $string, [ "\000" => '', '\\' => '\\\\', '\'' => '\\\'', '"' => '\"', "\n" => '\n', "\r" => '\r', ] ) ); } /** * Formats a value for javascript code. * * @param string $value String to be formatted. * * @return string formatted value. */ public static function formatJsVal($value) { if (is_bool($value)) { if ($value) { return 'true'; } return 'false'; } if (is_int($value)) { return (int) $value; } return '"' . self::escapeJsString($value) . '"'; } /** * Formats an javascript assignment with proper escaping of a value * and support for assigning array of strings. * * @param string $key Name of value to set * @param mixed $value Value to set, can be either string or array of strings * @param bool $escape Whether to escape value or keep it as it is * (for inclusion of js code) * * @return string Javascript code. */ public static function getJsValue($key, $value, $escape = true) { $result = $key . ' = '; if (! $escape) { $result .= $value; } elseif (is_array($value)) { $result .= '['; foreach ($value as $val) { $result .= self::formatJsVal($val) . ","; } $result .= "];\n"; } else { $result .= self::formatJsVal($value) . ";\n"; } return $result; } /** * Prints an javascript assignment with proper escaping of a value * and support for assigning array of strings. * * @param string $key Name of value to set * @param mixed $value Value to set, can be either string or array of strings * * @return void */ public static function printJsValue($key, $value) { echo self::getJsValue($key, $value); } /** * Formats javascript assignment for form validation api * with proper escaping of a value. * * @param string $key Name of value to set * @param string $value Value to set * @param boolean $addOn Check if $.validator.format is required or not * @param boolean $comma Check if comma is required * * @return string Javascript code. */ public static function getJsValueForFormValidation($key, $value, $addOn, $comma) { $result = $key . ': '; if ($addOn) { $result .= '$.validator.format('; } $result .= self::formatJsVal($value); if ($addOn) { $result .= ')'; } if ($comma) { $result .= ', '; } return $result; } /** * Prints javascript assignment for form validation api * with proper escaping of a value. * * @param string $key Name of value to set * @param string $value Value to set * @param boolean $addOn Check if $.validator.format is required or not * @param boolean $comma Check if comma is required * * @return void */ public static function printJsValueForFormValidation($key, $value, $addOn = false, $comma = true) { echo self::getJsValueForFormValidation($key, $value, $addOn, $comma); } /** * Removes all variables from request except whitelisted ones. * * @param string[] $whitelist list of variables to allow * * @return void * @access public */ public static function removeRequestVars(&$whitelist): void { // do not check only $_REQUEST because it could have been overwritten // and use type casting because the variables could have become // strings if (! isset($_REQUEST)) { $_REQUEST = []; } if (! isset($_GET)) { $_GET = []; } if (! isset($_POST)) { $_POST = []; } if (! isset($_COOKIE)) { $_COOKIE = []; } $keys = array_keys( array_merge((array) $_REQUEST, (array) $_GET, (array) $_POST, (array) $_COOKIE) ); foreach ($keys as $key) { if (! in_array($key, $whitelist)) { unset($_REQUEST[$key], $_GET[$key], $_POST[$key]); continue; } // allowed stuff could be compromised so escape it // we require it to be a string if (isset($_REQUEST[$key]) && ! is_string($_REQUEST[$key])) { unset($_REQUEST[$key]); } if (isset($_POST[$key]) && ! is_string($_POST[$key])) { unset($_POST[$key]); } if (isset($_COOKIE[$key]) && ! is_string($_COOKIE[$key])) { unset($_COOKIE[$key]); } if (isset($_GET[$key]) && ! is_string($_GET[$key])) { unset($_GET[$key]); } } } }