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.22.62
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-websocket /
vendor /
react /
socket /
src /
Delete
Unzip
Name
Size
Permission
Date
Action
Connection.php
5.61
KB
-rw-r--r--
2018-10-01 12:20
ConnectionInterface.php
4.32
KB
-rw-r--r--
2018-10-01 12:20
Connector.php
4.2
KB
-rw-r--r--
2018-10-01 12:20
ConnectorInterface.php
2.01
KB
-rw-r--r--
2018-10-01 12:20
DnsConnector.php
4.41
KB
-rw-r--r--
2018-10-01 12:20
FixedUriConnector.php
1.02
KB
-rw-r--r--
2018-10-01 12:20
LimitingServer.php
6.39
KB
-rw-r--r--
2018-10-01 12:20
SecureConnector.php
2.98
KB
-rw-r--r--
2018-10-01 12:20
SecureServer.php
6.68
KB
-rw-r--r--
2018-10-01 12:20
Server.php
1.83
KB
-rw-r--r--
2018-10-01 12:20
ServerInterface.php
5.13
KB
-rw-r--r--
2018-10-01 12:20
StreamEncryption.php
5.4
KB
-rw-r--r--
2018-10-01 12:20
TcpConnector.php
4.25
KB
-rw-r--r--
2018-10-01 12:20
TcpServer.php
7.39
KB
-rw-r--r--
2018-10-01 12:20
TimeoutConnector.php
1.45
KB
-rw-r--r--
2018-10-01 12:20
UnixConnector.php
1.11
KB
-rw-r--r--
2018-10-01 12:20
UnixServer.php
4.11
KB
-rw-r--r--
2018-10-01 12:20
Save
Rename
<?php namespace React\Socket; use React\EventLoop\LoopInterface; use React\Promise; use BadMethodCallException; use InvalidArgumentException; use UnexpectedValueException; final class SecureConnector implements ConnectorInterface { private $connector; private $streamEncryption; private $context; public function __construct(ConnectorInterface $connector, LoopInterface $loop, array $context = array()) { $this->connector = $connector; $this->streamEncryption = new StreamEncryption($loop, false); $this->context = $context; } public function connect($uri) { if (!function_exists('stream_socket_enable_crypto')) { return Promise\reject(new BadMethodCallException('Encryption not supported on your platform (HHVM < 3.8?)')); // @codeCoverageIgnore } if (strpos($uri, '://') === false) { $uri = 'tls://' . $uri; } $parts = parse_url($uri); if (!$parts || !isset($parts['scheme']) || $parts['scheme'] !== 'tls') { return Promise\reject(new InvalidArgumentException('Given URI "' . $uri . '" is invalid')); } $uri = str_replace('tls://', '', $uri); $context = $this->context; $encryption = $this->streamEncryption; $connected = false; $promise = $this->connector->connect($uri)->then(function (ConnectionInterface $connection) use ($context, $encryption, $uri, &$promise, &$connected) { // (unencrypted) TCP/IP connection succeeded $connected = true; if (!$connection instanceof Connection) { $connection->close(); throw new UnexpectedValueException('Base connector does not use internal Connection class exposing stream resource'); } // set required SSL/TLS context options foreach ($context as $name => $value) { stream_context_set_option($connection->stream, 'ssl', $name, $value); } // try to enable encryption return $promise = $encryption->enable($connection)->then(null, function ($error) use ($connection, $uri) { // establishing encryption failed => close invalid connection and return error $connection->close(); throw new \RuntimeException( 'Connection to ' . $uri . ' failed during TLS handshake: ' . $error->getMessage(), $error->getCode() ); }); }); return new \React\Promise\Promise( function ($resolve, $reject) use ($promise) { $promise->then($resolve, $reject); }, function ($_, $reject) use (&$promise, $uri, &$connected) { if ($connected) { $reject(new \RuntimeException('Connection to ' . $uri . ' cancelled during TLS handshake')); } $promise->cancel(); $promise = null; } ); } }