!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/vendor/guzzlehttp/streams/src/   drwxrwxr-x
Free 11.5 GB of 61.93 GB (18.57%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     GuzzleStreamWrapper.php (2.7 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace GuzzleHttp\Stream;

/**
 * Converts Guzzle streams into PHP stream resources.
 */
class GuzzleStreamWrapper
{
    
/** @var resource */
    
public $context;

    
/** @var StreamInterface */
    
private $stream;

    
/** @var string r, r+, or w */
    
private $mode;

    
/**
     * Returns a resource representing the stream.
     *
     * @param StreamInterface $stream The stream to get a resource for
     *
     * @return resource
     * @throws \InvalidArgumentException if stream is not readable or writable
     */
    
public static function getResource(StreamInterface $stream)
    {
        
self::register();

        if (
$stream->isReadable()) {
            
$mode $stream->isWritable() ? 'r+' 'r';
        } elseif (
$stream->isWritable()) {
            
$mode 'w';
        } else {
            throw new \
InvalidArgumentException('The stream must be readable, '
                
'writable, or both.');
        }

        return 
fopen('guzzle://stream'$modenullstream_context_create([
            
'guzzle' => ['stream' => $stream]
        ]));
    }

    
/**
     * Registers the stream wrapper if needed
     */
    
public static function register()
    {
        if (!
in_array('guzzle'stream_get_wrappers())) {
            
stream_wrapper_register('guzzle'__CLASS__);
        }
    }

    public function 
stream_open($path$mode$options, &$opened_path)
    {
        
$options stream_context_get_options($this->context);

        if (!isset(
$options['guzzle']['stream'])) {
            return 
false;
        }

        
$this->mode $mode;
        
$this->stream $options['guzzle']['stream'];

        return 
true;
    }

    public function 
stream_read($count)
    {
        return 
$this->stream->read($count);
    }

    public function 
stream_write($data)
    {
        return (int) 
$this->stream->write($data);
    }

    public function 
stream_tell()
    {
        return 
$this->stream->tell();
    }

    public function 
stream_eof()
    {
        return 
$this->stream->eof();
    }

    public function 
stream_seek($offset$whence)
    {
        return 
$this->stream->seek($offset$whence);
    }

    public function 
stream_stat()
    {
        static 
$modeMap = [
            
'r'  => 33060,
            
'r+' => 33206,
            
'w'  => 33188
        
];

        return [
            
'dev'     => 0,
            
'ino'     => 0,
            
'mode'    => $modeMap[$this->mode],
            
'nlink'   => 0,
            
'uid'     => 0,
            
'gid'     => 0,
            
'rdev'    => 0,
            
'size'    => $this->stream->getSize() ?: 0,
            
'atime'   => 0,
            
'mtime'   => 0,
            
'ctime'   => 0,
            
'blksize' => 0,
            
'blocks'  => 0
        
];
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.7905 ]--