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 : 216.73.216.203
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
vendor /
symfony /
flex /
src /
Delete
Unzip
Name
Size
Permission
Date
Action
Command
[ DIR ]
drwxrwxr-x
2022-08-07 09:39
Configurator
[ DIR ]
drwxrwxr-x
2022-08-07 09:39
Event
[ DIR ]
drwxrwxr-x
2022-08-07 09:39
Unpack
[ DIR ]
drwxrwxr-x
2022-08-07 09:39
Update
[ DIR ]
drwxrwxr-x
2022-08-07 09:39
Cache.php
5.28
KB
-rw-rw-r--
2022-08-07 09:39
ComposerRepository.php
1.49
KB
-rw-rw-r--
2022-08-07 09:39
Configurator.php
3.19
KB
-rw-rw-r--
2022-08-07 09:39
CurlDownloader.php
8.5
KB
-rw-rw-r--
2022-08-07 09:39
Downloader.php
18.51
KB
-rw-rw-r--
2022-08-07 09:39
Flex.php
43.66
KB
-rw-rw-r--
2022-08-07 09:39
GithubApi.php
6.04
KB
-rw-rw-r--
2022-08-07 09:39
InformationOperation.php
1.86
KB
-rw-rw-r--
2022-08-07 09:39
Lock.php
1.83
KB
-rw-rw-r--
2022-08-07 09:39
Options.php
2.29
KB
-rw-rw-r--
2022-08-07 09:39
PackageFilter.php
5.12
KB
-rw-rw-r--
2022-08-07 09:39
PackageJsonSynchronizer.php
8.98
KB
-rw-rw-r--
2022-08-07 09:39
PackageResolver.php
5.17
KB
-rw-rw-r--
2022-08-07 09:39
ParallelDownloader.php
9.29
KB
-rw-rw-r--
2022-08-07 09:39
Path.php
966
B
-rw-rw-r--
2022-08-07 09:39
Recipe.php
2.9
KB
-rw-rw-r--
2022-08-07 09:39
Response.php
1.95
KB
-rw-rw-r--
2022-08-07 09:39
ScriptExecutor.php
4.74
KB
-rw-rw-r--
2022-08-07 09:39
SymfonyBundle.php
3.67
KB
-rw-rw-r--
2022-08-07 09:39
TruncatedComposerRepository.php
1.51
KB
-rw-rw-r--
2022-08-07 09:39
Unpacker.php
8.61
KB
-rw-rw-r--
2022-08-07 09:39
Save
Rename
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Flex; use Composer\Downloader\TransportException; /** * @author Nicolas Grekas <p@tchwork.com> */ class CurlDownloader { private $multiHandle; private $shareHandle; private $jobs = []; private $exceptions = []; private static $options = [ 'http' => [ 'method' => \CURLOPT_CUSTOMREQUEST, 'content' => \CURLOPT_POSTFIELDS, ], 'ssl' => [ 'cafile' => \CURLOPT_CAINFO, 'capath' => \CURLOPT_CAPATH, ], ]; private static $timeInfo = [ 'total_time' => true, 'namelookup_time' => true, 'connect_time' => true, 'pretransfer_time' => true, 'starttransfer_time' => true, 'redirect_time' => true, ]; public function __construct() { $this->multiHandle = $mh = curl_multi_init(); curl_multi_setopt($mh, \CURLMOPT_PIPELINING, /*CURLPIPE_MULTIPLEX*/ 2); if (\defined('CURLMOPT_MAX_HOST_CONNECTIONS')) { curl_multi_setopt($mh, \CURLMOPT_MAX_HOST_CONNECTIONS, 8); } $this->shareHandle = $sh = curl_share_init(); curl_share_setopt($sh, \CURLSHOPT_SHARE, \CURL_LOCK_DATA_COOKIE); curl_share_setopt($sh, \CURLSHOPT_SHARE, \CURL_LOCK_DATA_DNS); curl_share_setopt($sh, \CURLSHOPT_SHARE, \CURL_LOCK_DATA_SSL_SESSION); } public function get($origin, $url, $context, $file) { $params = stream_context_get_params($context); $ch = curl_init(); $hd = fopen('php://temp/maxmemory:32768', 'w+b'); if ($file && !$fd = @fopen($file.'~', 'w+b')) { $file = null; } if (!$file) { $fd = @fopen('php://temp/maxmemory:524288', 'w+b'); } $headers = array_diff($params['options']['http']['header'], ['Connection: close']); if (!isset($params['options']['http']['protocol_version'])) { curl_setopt($ch, \CURLOPT_HTTP_VERSION, \CURL_HTTP_VERSION_1_0); } else { $headers[] = 'Connection: keep-alive'; if (0 === strpos($url, 'https://') && \defined('CURL_VERSION_HTTP2') && \defined('CURL_HTTP_VERSION_2_0') && (\CURL_VERSION_HTTP2 & curl_version()['features'])) { curl_setopt($ch, \CURLOPT_HTTP_VERSION, \CURL_HTTP_VERSION_2_0); } } curl_setopt($ch, \CURLOPT_URL, $url); curl_setopt($ch, \CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, \CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, \CURLOPT_DNS_USE_GLOBAL_CACHE, false); curl_setopt($ch, \CURLOPT_WRITEHEADER, $hd); curl_setopt($ch, \CURLOPT_FILE, $fd); curl_setopt($ch, \CURLOPT_SHARE, $this->shareHandle); foreach (self::$options as $type => $options) { foreach ($options as $name => $curlopt) { if (isset($params['options'][$type][$name])) { curl_setopt($ch, $curlopt, $params['options'][$type][$name]); } } } $progress = array_diff_key(curl_getinfo($ch), self::$timeInfo); $this->jobs[(int) $ch] = [ 'progress' => $progress, 'ch' => $ch, 'callback' => $params['notification'], 'file' => $file, 'fd' => $fd, ]; curl_multi_add_handle($this->multiHandle, $ch); $params['notification'](\STREAM_NOTIFY_RESOLVE, \STREAM_NOTIFY_SEVERITY_INFO, '', 0, 0, 0, false); $active = true; try { while ($active && isset($this->jobs[(int) $ch])) { curl_multi_exec($this->multiHandle, $active); curl_multi_select($this->multiHandle); while ($progress = curl_multi_info_read($this->multiHandle)) { if (!isset($this->jobs[$i = (int) $h = $progress['handle']])) { continue; } $progress = array_diff_key(curl_getinfo($h), self::$timeInfo); $job = $this->jobs[$i]; unset($this->jobs[$i]); curl_multi_remove_handle($this->multiHandle, $h); try { $this->onProgress($h, $job['callback'], $progress, $job['progress']); if ('' !== curl_error($h)) { throw new TransportException(curl_error($h)); } if ($job['file'] && \CURLE_OK === curl_errno($h) && !isset($this->exceptions[$i])) { fclose($job['fd']); rename($job['file'].'~', $job['file']); } } catch (TransportException $e) { $this->exceptions[$i] = $e; } } foreach ($this->jobs as $i => $h) { if (!isset($this->jobs[$i])) { continue; } $h = $this->jobs[$i]['ch']; $progress = array_diff_key(curl_getinfo($h), self::$timeInfo); if ($this->jobs[$i]['progress'] !== $progress) { $previousProgress = $this->jobs[$i]['progress']; $this->jobs[$i]['progress'] = $progress; try { $this->onProgress($h, $this->jobs[$i]['callback'], $progress, $previousProgress); } catch (TransportException $e) { unset($this->jobs[$i]); curl_multi_remove_handle($this->multiHandle, $h); $this->exceptions[$i] = $e; } } } } if ('' !== curl_error($ch) || \CURLE_OK !== curl_errno($ch)) { $this->exceptions[(int) $ch] = new TransportException(curl_error($ch), curl_getinfo($ch, \CURLINFO_HTTP_CODE) ?: 0); } if (isset($this->exceptions[(int) $ch])) { throw $this->exceptions[(int) $ch]; } } finally { if ($file && !isset($this->exceptions[(int) $ch])) { $fd = fopen($file, 'rb'); } $progress = array_diff_key(curl_getinfo($ch), self::$timeInfo); $this->finishProgress($ch, $params['notification'], $progress); unset($this->jobs[(int) $ch], $this->exceptions[(int) $ch]); curl_multi_remove_handle($this->multiHandle, $ch); curl_close($ch); rewind($hd); $headers = explode("\r\n", rtrim(stream_get_contents($hd))); fclose($hd); rewind($fd); $contents = stream_get_contents($fd); fclose($fd); } return [$headers, $contents]; } private function onProgress($ch, callable $notify, array $progress, array $previousProgress) { if (300 <= $progress['http_code'] && $progress['http_code'] < 400 || 0 > $progress['download_content_length']) { return; } if (!$previousProgress['http_code'] && $progress['http_code'] && $progress['http_code'] < 200 || 400 <= $progress['http_code']) { $code = 403 === $progress['http_code'] ? \STREAM_NOTIFY_AUTH_RESULT : \STREAM_NOTIFY_FAILURE; $notify($code, \STREAM_NOTIFY_SEVERITY_ERR, curl_error($ch), $progress['http_code'], 0, 0, false); } if ($previousProgress['download_content_length'] < $progress['download_content_length']) { $notify(\STREAM_NOTIFY_FILE_SIZE_IS, \STREAM_NOTIFY_SEVERITY_INFO, '', 0, 0, (int) $progress['download_content_length'], false); } if ($previousProgress['size_download'] < $progress['size_download']) { $notify(\STREAM_NOTIFY_PROGRESS, \STREAM_NOTIFY_SEVERITY_INFO, '', 0, (int) $progress['size_download'], (int) $progress['download_content_length'], false); } } private function finishProgress($ch, callable $notify, array $progress) { if ($progress['download_content_length'] < 0) { $notify(\STREAM_NOTIFY_FILE_SIZE_IS, \STREAM_NOTIFY_SEVERITY_INFO, '', 0, 0, (int) $progress['size_download'], false); $notify(\STREAM_NOTIFY_PROGRESS, \STREAM_NOTIFY_SEVERITY_INFO, '', 0, (int) $progress['size_download'], (int) $progress['size_download'], false); } } }