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.15.147.225
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp_probe /
vendor /
react /
socket /
src /
Delete
Unzip
Name
Size
Permission
Date
Action
Connection.php
6.09
KB
-rw-r--r--
2020-08-28 12:49
ConnectionInterface.php
4.32
KB
-rw-r--r--
2020-08-28 12:49
Connector.php
4.43
KB
-rw-r--r--
2020-08-28 12:49
ConnectorInterface.php
2.02
KB
-rw-r--r--
2020-08-28 12:49
DnsConnector.php
4.38
KB
-rw-r--r--
2020-08-28 12:49
FixedUriConnector.php
1.05
KB
-rw-r--r--
2020-08-28 12:49
HappyEyeBallsConnectionBuilder.php
12.09
KB
-rw-r--r--
2020-08-28 12:49
HappyEyeBallsConnector.php
1.38
KB
-rw-r--r--
2020-08-28 12:49
LimitingServer.php
6.47
KB
-rw-r--r--
2020-08-28 12:49
SecureConnector.php
2.99
KB
-rw-r--r--
2020-08-28 12:49
SecureServer.php
6.92
KB
-rw-r--r--
2020-08-28 12:49
Server.php
1.83
KB
-rw-r--r--
2020-08-28 12:49
ServerInterface.php
5.15
KB
-rw-r--r--
2020-08-28 12:49
StreamEncryption.php
4.77
KB
-rw-r--r--
2020-08-28 12:49
TcpConnector.php
4.35
KB
-rw-r--r--
2020-08-28 12:49
TcpServer.php
7.66
KB
-rw-r--r--
2020-08-28 12:49
TimeoutConnector.php
1.45
KB
-rw-r--r--
2020-08-28 12:49
UnixConnector.php
1.12
KB
-rw-r--r--
2020-08-28 12:49
UnixServer.php
4.16
KB
-rw-r--r--
2020-08-28 12:49
Save
Rename
<?php namespace React\Socket; use React\Dns\Resolver\ResolverInterface; use React\Promise; use React\Promise\CancellablePromiseInterface; final class DnsConnector implements ConnectorInterface { private $connector; private $resolver; public function __construct(ConnectorInterface $connector, ResolverInterface $resolver) { $this->connector = $connector; $this->resolver = $resolver; } public function connect($uri) { if (\strpos($uri, '://') === false) { $parts = \parse_url('tcp://' . $uri); unset($parts['scheme']); } else { $parts = \parse_url($uri); } if (!$parts || !isset($parts['host'])) { return Promise\reject(new \InvalidArgumentException('Given URI "' . $uri . '" is invalid')); } $host = \trim($parts['host'], '[]'); $connector = $this->connector; // skip DNS lookup / URI manipulation if this URI already contains an IP if (false !== \filter_var($host, \FILTER_VALIDATE_IP)) { return $connector->connect($uri); } $promise = $this->resolver->resolve($host); $resolved = null; return new Promise\Promise( function ($resolve, $reject) use (&$promise, &$resolved, $uri, $connector, $host, $parts) { // resolve/reject with result of DNS lookup $promise->then(function ($ip) use (&$promise, &$resolved, $connector, $host, $parts) { $resolved = $ip; $uri = ''; // prepend original scheme if known if (isset($parts['scheme'])) { $uri .= $parts['scheme'] . '://'; } if (\strpos($ip, ':') !== false) { // enclose IPv6 addresses in square brackets before appending port $uri .= '[' . $ip . ']'; } else { $uri .= $ip; } // append original port if known if (isset($parts['port'])) { $uri .= ':' . $parts['port']; } // append orignal path if known if (isset($parts['path'])) { $uri .= $parts['path']; } // append original query if known if (isset($parts['query'])) { $uri .= '?' . $parts['query']; } // append original hostname as query if resolved via DNS and if // destination URI does not contain "hostname" query param already $args = array(); \parse_str(isset($parts['query']) ? $parts['query'] : '', $args); if ($host !== $ip && !isset($args['hostname'])) { $uri .= (isset($parts['query']) ? '&' : '?') . 'hostname=' . \rawurlencode($host); } // append original fragment if known if (isset($parts['fragment'])) { $uri .= '#' . $parts['fragment']; } return $promise = $connector->connect($uri); }, function ($e) use ($uri, $reject) { $reject(new \RuntimeException('Connection to ' . $uri .' failed during DNS lookup: ' . $e->getMessage(), 0, $e)); })->then($resolve, $reject); }, function ($_, $reject) use (&$promise, &$resolved, $uri) { // cancellation should reject connection attempt // reject DNS resolution with custom reason, otherwise rely on connection cancellation below if ($resolved === null) { $reject(new \RuntimeException('Connection to ' . $uri . ' cancelled during DNS lookup')); } // (try to) cancel pending DNS lookup / connection attempt if ($promise instanceof CancellablePromiseInterface) { // overwrite callback arguments for PHP7+ only, so they do not show // up in the Exception trace and do not cause a possible cyclic reference. $_ = $reject = null; $promise->cancel(); $promise = null; } } ); } }