Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
php-7.4.33 /
ext /
standard /
tests /
http /
Delete
Unzip
Name
Size
Permission
Date
Action
CONFLICTS
7
B
-rw-rw-r--
2022-10-31 11:36
bug38802.phpt
4.33
KB
-rw-rw-r--
2022-10-31 11:36
bug43510.phpt
661
B
-rw-rw-r--
2022-10-31 11:36
bug47021.phpt
2.2
KB
-rw-rw-r--
2022-10-31 11:36
bug48929.phpt
1.37
KB
-rw-rw-r--
2022-10-31 11:36
bug53198.phpt
1004
B
-rw-rw-r--
2022-10-31 11:36
bug60570.phpt
1.33
KB
-rw-rw-r--
2022-10-31 11:36
bug61548.phpt
2.22
KB
-rw-rw-r--
2022-10-31 11:36
bug65634.phpt
1.73
KB
-rw-rw-r--
2022-10-31 11:36
bug67430.phpt
1005
B
-rw-rw-r--
2022-10-31 11:36
bug69337.phpt
1.27
KB
-rw-rw-r--
2022-10-31 11:36
bug73297.phpt
654
B
-rw-rw-r--
2022-10-31 11:36
bug75535.phpt
637
B
-rw-rw-r--
2022-10-31 11:36
bug75981.phpt
600
B
-rw-rw-r--
2022-10-31 11:36
bug76342.phpt
734
B
-rw-rw-r--
2022-10-31 11:36
bug78719.phpt
740
B
-rw-rw-r--
2022-10-31 11:36
bug79265.phpt
900
B
-rw-rw-r--
2022-10-31 11:36
bug79265_2.phpt
811
B
-rw-rw-r--
2022-10-31 11:36
bug80838.phpt
838
B
-rw-rw-r--
2022-10-31 11:36
http_response_header_01.phpt
704
B
-rw-rw-r--
2022-10-31 11:36
http_response_header_02.phpt
916
B
-rw-rw-r--
2022-10-31 11:36
http_response_header_03.phpt
1.04
KB
-rw-rw-r--
2022-10-31 11:36
http_response_header_04.phpt
679
B
-rw-rw-r--
2022-10-31 11:36
http_response_header_05.phpt
644
B
-rw-rw-r--
2022-10-31 11:36
ignore_errors.phpt
2.53
KB
-rw-rw-r--
2022-10-31 11:36
server.inc
2.43
KB
-rw-rw-r--
2022-10-31 11:36
Save
Rename
<?php function http_server_skipif($socket_string) { if (!function_exists('pcntl_fork')) die('skip pcntl_fork() not available'); if (!function_exists('posix_kill')) die('skip posix_kill() not available'); if (!stream_socket_server($socket_string)) die('skip stream_socket_server() failed'); } function http_server_init($socket_string, &$output = null) { pcntl_alarm(60); $server = stream_socket_server($socket_string, $errno, $errstr); if (!$server) { return false; } if ($output === null) { $output = tmpfile(); if ($output === false) { return false; } } $pid = pcntl_fork(); if ($pid == -1) { die('could not fork'); } else if ($pid) { return $pid; } return $server; } /* Minimal HTTP server with predefined responses. * * $socket_string is the socket to create and listen on (e.g. tcp://127.0.0.1:1234) * $files is an array of files containing N responses for N expected requests. Server dies after N requests. * $output is a stream on which everything sent by clients is written to */ function http_server($socket_string, array $files, &$output = null) { if (!is_resource($server = http_server_init($socket_string, $output))) { return $server; } foreach($files as $file) { $sock = stream_socket_accept($server); if (!$sock) { exit(1); } // read headers $content_length = 0; stream_set_blocking($sock, 0); while (!feof($sock)) { list($r, $w, $e) = array(array($sock), null, null); if (!stream_select($r, $w, $e, 1)) continue; $line = stream_get_line($sock, 8192, "\r\n"); if ($line === '') { fwrite($output, "\r\n"); break; } else if ($line !== false) { fwrite($output, "$line\r\n"); if (preg_match('#^Content-Length\s*:\s*([[:digit:]]+)\s*$#i', $line, $matches)) { $content_length = (int) $matches[1]; } } } stream_set_blocking($sock, 1); // read content if ($content_length > 0) { stream_copy_to_stream($sock, $output, $content_length); } // send response $fd = fopen($file, 'rb'); stream_copy_to_stream($fd, $sock); fclose($sock); } exit(0); } function http_server_sleep($socket_string, $micro_seconds = 500000) { if (!is_resource($server = http_server_init($socket_string, $output))) { return $server; } $sock = stream_socket_accept($server); if (!$sock) { exit(1); } usleep($micro_seconds); fclose($sock); exit(0); } function http_server_kill($pid) { posix_kill($pid, SIGTERM); pcntl_waitpid($pid, $status); } ?>