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.135.201.190
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-test /
vendor /
react /
socket /
examples /
Delete
Unzip
Name
Size
Permission
Date
Action
01-echo-server.php
1.12
KB
-rw-r--r--
2018-10-01 12:20
02-chat-server.php
1.78
KB
-rw-r--r--
2018-10-01 12:20
03-http-server.php
2.04
KB
-rw-r--r--
2018-10-01 12:20
11-http-client.php
1.08
KB
-rw-r--r--
2018-10-01 12:20
12-https-client.php
1.09
KB
-rw-r--r--
2018-10-01 12:20
21-netcat-client.php
2.04
KB
-rw-r--r--
2018-10-01 12:20
22-http-client.php
1.95
KB
-rw-r--r--
2018-10-01 12:20
91-benchmark-server.php
2
KB
-rw-r--r--
2018-10-01 12:20
99-generate-self-signed.php
1.03
KB
-rw-r--r--
2018-10-01 12:20
localhost.pem
2.9
KB
-rw-r--r--
2018-10-01 12:20
localhost_swordfish.pem
3.03
KB
-rw-r--r--
2018-10-01 12:20
Save
Rename
<?php // Just start this server and connect with any number of clients to it. // Everything a client sends will be broadcasted to all connected clients. // // $ php examples/02-chat-server.php 8000 // $ telnet localhost 8000 // // You can also run a secure TLS chat server like this: // // $ php examples/02-chat-server.php tls://127.0.0.1:8000 examples/localhost.pem // $ openssl s_client -connect localhost:8000 // // You can also run a Unix domain socket (UDS) server like this: // // $ php examples/02-chat-server.php unix:///tmp/server.sock // $ nc -U /tmp/server.sock use React\EventLoop\Factory; use React\Socket\Server; use React\Socket\ConnectionInterface; use React\Socket\LimitingServer; 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 = new LimitingServer($server, null); $server->on('connection', function (ConnectionInterface $client) use ($server) { // whenever a new message comes in $client->on('data', function ($data) use ($client, $server) { // remove any non-word characters (just for the demo) $data = trim(preg_replace('/[^\w\d \.\,\-\!\?]/u', '', $data)); // ignore empty messages if ($data === '') { return; } // prefix with client IP and broadcast to all connected clients $data = trim(parse_url($client->getRemoteAddress(), PHP_URL_HOST), '[]') . ': ' . $data . PHP_EOL; foreach ($server->getConnections() as $connection) { $connection->write($data); } }); }); $server->on('error', 'printf'); echo 'Listening on ' . $server->getAddress() . PHP_EOL; $loop->run();