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 /
3 /
react /
socket /
examples /
Delete
Unzip
Name
Size
Permission
Date
Action
01-echo-server.php
1.12
KB
-rw-r--r--
2018-10-01 09:00
02-chat-server.php
1.78
KB
-rw-r--r--
2018-10-01 09:00
03-http-server.php
2.04
KB
-rw-r--r--
2018-10-01 09:00
11-http-client.php
1.08
KB
-rw-r--r--
2018-10-01 09:00
12-https-client.php
1.09
KB
-rw-r--r--
2018-10-01 09:00
21-netcat-client.php
2.04
KB
-rw-r--r--
2018-10-01 09:00
22-http-client.php
1.95
KB
-rw-r--r--
2018-10-01 09:00
91-benchmark-server.php
2
KB
-rw-r--r--
2018-10-01 09:00
99-generate-self-signed.php
1.03
KB
-rw-r--r--
2018-10-01 09:00
localhost.pem
2.9
KB
-rw-r--r--
2018-10-01 09:00
localhost_swordfish.pem
3.03
KB
-rw-r--r--
2018-10-01 09:00
Save
Rename
<?php // Simple plaintext HTTP and secure HTTPS client example (for illustration purposes only). // This shows how an URI parameter can parsed to decide whether to establish // a plaintext TCP/IP or secure TLS connection and then send an // application level protocol message (HTTP). // Real applications should use react/http-client instead! // // Unlike examples #11 and #12, this example will actually take an optional URI // parameter and parse it to connect to the correct default port and use the // correct transport protocol. // // $ php examples/22-http-client.php // $ php examples/22-http-client.php https://reactphp.org/ use React\EventLoop\Factory; use React\Socket\ConnectionInterface; use React\Socket\Connector; use React\Stream\WritableResourceStream; require __DIR__ . '/../vendor/autoload.php'; $uri = isset($argv[1]) ? $argv[1] : 'www.google.com'; if (strpos($uri, '://') === false) { $uri = 'http://' . $uri; } $parts = parse_url($uri); if (!$parts || !isset($parts['scheme'], $parts['host'])) { fwrite(STDERR, 'Usage error: required argument <host:port>' . PHP_EOL); exit(1); } $loop = Factory::create(); $connector = new Connector($loop); if (!isset($parts['port'])) { $parts['port'] = $parts['scheme'] === 'https' ? 443 : 80; } $host = $parts['host']; if (($parts['scheme'] === 'http' && $parts['port'] !== 80) || ($parts['scheme'] === 'https' && $parts['port'] !== 443)) { $host .= ':' . $parts['port']; } $target = ($parts['scheme'] === 'https' ? 'tls' : 'tcp') . '://' . $parts['host'] . ':' . $parts['port']; $resource = isset($parts['path']) ? $parts['path'] : '/'; if (isset($parts['query'])) { $resource .= '?' . $parts['query']; } $stdout = new WritableResourceStream(STDOUT, $loop); $connector->connect($target)->then(function (ConnectionInterface $connection) use ($resource, $host, $stdout) { $connection->pipe($stdout); $connection->write("GET $resource HTTP/1.0\r\nHost: $host\r\n\r\n"); }, 'printf'); $loop->run();