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.143.215.114
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp /
vendor /
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 HTTP server example (for illustration purposes only). // This shows how a plaintext TCP/IP connection is accepted to then receive an // application level protocol message (HTTP request) and reply with an // application level protocol message (HTTP response) in return. // // This example exists for illustraion purposes only. It does not actually // parse incoming HTTP requests, so you can actually send *anything* and will // still respond with a valid HTTP response. // Real applications should use react/http instead! // // Just start this server and send a request to it: // // $ php examples/03-http-server.php 8000 // $ curl -v http://localhost:8000/ // $ ab -n1000 -c10 http://localhost:8000/ // $ docker run -it --rm --net=host jordi/ab ab -n1000 -c10 http://localhost:8000/ // // You can also run a secure HTTPS echo server like this: // // $ php examples/03-http-server.php tls://127.0.0.1:8000 examples/localhost.pem // $ curl -v --insecure https://localhost:8000/ // $ ab -n1000 -c10 https://localhost:8000/ // $ docker run -it --rm --net=host jordi/ab ab -n1000 -c10 https://localhost:8000/ // // You can also run a Unix domain socket (UDS) server like this: // // $ php examples/03-http-server.php unix:///tmp/server.sock // $ nc -U /tmp/server.sock use React\EventLoop\Factory; use React\Socket\Server; use React\Socket\ConnectionInterface; require __DIR__ . '/../vendor/autoload.php'; $loop = Factory::create(); $server = new Server(isset($argv[1]) ? $argv[1] : 0, $loop, array( 'tls' => array( 'local_cert' => isset($argv[2]) ? $argv[2] : (__DIR__ . '/localhost.pem') ) )); $server->on('connection', function (ConnectionInterface $conn) { $conn->once('data', function () use ($conn) { $body = "<html><h1>Hello world!</h1></html>\r\n"; $conn->end("HTTP/1.1 200 OK\r\nContent-Length: " . strlen($body) . "\r\nConnection: close\r\n\r\n" . $body); }); }); $server->on('error', 'printf'); echo 'Listening on ' . strtr($server->getAddress(), array('tcp:' => 'http:', 'tls:' => 'https:')) . PHP_EOL; $loop->run();